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.
我在 msdn 中没有看到 ToolBarItem 类,我注意到在我的派生 ToolBar 类上没有调用 GetContainerForItemOverride()。有人知道如何自定义 ToolBarItems 吗?
WPF 中的AToolbar派生自ItemsControl. 这意味着您可以将任意项目添加到工具栏,您不需要从特定类(除了UIElement)派生。
Toolbar
ItemsControl
UIElement