开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜