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.
我在行标题上右键单击鼠标来实现 a ContextMenuon a WPF DataGrid。
ContextMenu
WPF DataGrid
但是,如果我选择了多行,则鼠标右键单击将仅导致被单击的行被选中。
我怎样才能防止这种情况?我想在 ContextMenu 上实现适用于所有选定项目的命令。