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.
在 WPF 中的 2 个菜单项之间放置一点分隔符/行的最简单方法是什么?
<MenuItem Header="Item 1" IsCheckable="true"/> <Separator/> <MenuItem Header="Item 2" IsCheckable="true">
只需在 MenuItems 之间放置一个分隔符。