Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一个树视图,其节点绑定到用户控件,这些用户控件是在选择时使用视图注入加载的。此时控件的视觉偏移设置为 (0,0)。有没有办法我以后可以改变这个视觉偏移。O 取消选择此控件时,如何从视觉树中卸载此控件,以便将此视觉偏移设置为默认值。
每次我想更改视觉偏移时,我都会重新创建用户控件。