I have 2 canvas components and I want these to be synchronized at all times. Once i add a rectangle to canvas 1, I also add it to canvas 2. I remove the rectangle within canvas 1 in the following way:
Rectangle rec = Mouse.DirectlyOver as Rectangle;
if (rec != null)
{
drawCanvas.Children.Remove(rec);
drawCanvas.UpdateLayout();
}
How would i delete the rectangle at the same position within canvas 2?