I'm trying to place a control that I have created on my Canvas
. The idea is to be able to dynamically add them on the fly. Like on a button click or at the end of a DispatchTimer
. I have the following, but it doesn't work:
FirstCircleControl mc = new FirstCircleControl();
Canvas.SetLeft(mc, 100);
Canvas.SetTop(mc, 100);
I don't see any control appear...
You need to add the control to the Canvas
first.
yourCanvas.Children.Add(mc)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With