I have a canvas in the middle of my application with controls around it. I have a socket that recieves Points and saves them in a list.
I draw small 4x4 rectangles on th
Use Rendering event
CompositionTarget.Rendering += UpdateRectangles;
...
protected void UpdateRectangles(object sender, EventArgs e) { // here some stuff Canvas.SetLeft(rectangle, location); }
Consider using CacheMode="BitmapCache" for them.