Is there a way to move controls in the visual tree? (WPF)

后端 未结 2 1322
庸人自扰
庸人自扰 2021-01-22 22:26

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?
相关标签:
2条回答
  • 2021-01-22 23:18

    Yes, you can use Insert, this way you are able to choose exactly where its index is in the visual tree.

    0 讨论(0)
  • 2021-01-22 23:21

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

    0 讨论(0)
提交回复
热议问题