tags:

views:

216

answers:

1

I want to relocate some controls from one part in the visual tree to another.

  • can I do this?
  • and direction or hint on how to?
+1  A: 

Simply remove the control from its parent, and then add it to the new parent.

HTH, Kent

Kent Boogaart
Yeah, that was my guess to, but I somehow seem to miss a good way how. I'm probably using the wrong types...
Inferis
You can remove and add items through a panel's Children collection, if it's a button or something else, then through Content. Also, if your element's aren't named for easy access then you can use the VisualTreeHelper to help you obtain the children/parent you want to move/move from: http://msdn.microsoft.com/en-us/library/system.windows.media.visualtreehelper.aspx
rmoore