Hi,
I have a grid that hosts some UIElements.
I remove one of the elements, and change its state (it used to have a frame
around it and I removed it).
Then, I add it again.
When it is being added, it is not rerendered, and it seems that the bitmap
of this UIElement is taken from somewhere and being used. As a result, my
UIElement is displayed with a frame around it.
I have a timer that refreshes the UIElement and only when timer tick is
called - the UIElement is refreshed and the frame disappears.
It there any way for me to tell the UIElement to invalidate and make it
refresh when it is added to the grid again?
I tried to use UIElement.Invalidate* but it didn't help.
Thanks,
Alon.
|