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

☆樱花仙子☆ 提交于 2019-12-02 05:46:52

问题


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:


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




回答2:


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



来源:https://stackoverflow.com/questions/1074922/is-there-a-way-to-move-controls-in-the-visual-tree-wpf

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!