Here is what you do: you create a single instance of control; its reference is
testcontrol
. Then you move it on canvas in 5 different positions. No wonder, the result of first moves is forgotten, you leave the control in the last position. Only the last (left bottom) position counts and will be shown.
What would you expect?
One line is unclear:
this.c1.Children.Add(t);
As
t
definition is not shown in your code sample, I don't know what is it; and don't even know if this code compiles. If it compiles, this is a variable or a member declared somewhere else. Anyway, adding some
UIElement
to the same parent element in
logical tree should not work…
—SA