Silverlight: Force Canvas to Invalidate or Repaint itself? -


I have a silverlight application on which it has canvas on it, I dynamically have a bunch of stuff "color "I do, but add control to the canvas.

I have a button outside the canvas area that clears content. Objects have been removed (successfully) However, the canvas area is not immediately refreshed; Currently a mouseover or other event is required for canvas.

What is the easiest way to cancel the canvas of external objects? I'm sure I'm missing something simple!

It's a bit messy, but you can try to change the 'visible' of the canvas (though it Already has visibility), therefore:

  myCanvas.Visibility = Visibility Visible;  

We've found that this force is in the form of redraw, even if the actual value of my Kanvaaz has changed. Awesome ...

Let it go, this Only one ship which can cure things, though I hope that if you are removing things from it then the canvas will have to be recreated again.


Comments