WPF ContextMenu: How can I tell who launched it?
I have a ContextMenu that can be opened from 2 different StackPanel's, how can I tell which panel actually launched the menu?
Un开发者_运维百科der WinForms I could consult the SourceControl of the ContextMenuStrip to find this information.
TIA, Martin.
I think, what you're looking for is the PlacementTarget
-property of the ContextMenu.
精彩评论