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?
anakincn said:Then, what do you think is the best way to implement WPF features in a UltraGrid?
What WPF features are you referring to? Animation in a cell? There's really no good way to do that in the WinGrid grid.
Thanks, Mike!
Then, what do you think is the best way to implement WPF features in a UltraGrid?
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.