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.
有人知道如何从应用于所述 ItemsControl 的 ItemTemplate 的 DataTemplate 中激活 ItemsControl 的名称范围内的视觉状态吗?
您显然无法从 Blend 中选择目标。我想知道我是否遗漏了一些明显的漏洞。
您也许可以创建自己的派生 DataTemplate 可以执行特殊逻辑,想想名为 VisualStateDataTemplate 的东西?
刚想,没试过。