Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1640
How come the WPF animation doesn't refresh in column's EditorComponent?
posted

my column's EditorComponent is a UltraControlContainerEditor.

in the UltraControlContainerEditor is two myWinformControl, myWinformControl1 as the RenderingControl and myWinformControl2 the EditingControl

in the myWinformControl is a WPF ElementHost, in which is a WPF Control with animations

when the grid is filled, the WPF animation doesn't refresh automatically. Sometimes I can make them refresh just one frame by mouse hover over cell, but in most circumstances I can't. How can I make them refresh automatically and countinously?

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    The way it works is that the grid takes a snapshot of the RenderingControl and paints it into the cell any time the cell paints.

    Neither the grid nor the UltraControlContainerEditor have any way of knowing that your control needs to be refreshed constantly. So the cells in the grid are only refreshed when they need to be, like when the value of the cell changes.

    You could try refreshing the entire grid or even Invalidating the column periodically, like on a timer. But I suspect this will not work correctly as the grid is using the same control for every cell in the column. This means than the cells will be painted in order and there will be skips and timing issues with the animation.

    So basically, I don't think this will work.

Children