Select TreeView Node on right click before displaying ContextMenu

后端 未结 11 2004
鱼传尺愫
鱼传尺愫 2020-11-29 19:39

I would like to select a WPF TreeView Node on right click, right before the ContextMenu displayed.

For WinForms I could use code like this Find node clicked under co

11条回答
  •  既然无缘
    2020-11-29 20:26

    You can select it with the on mouse down event. That will trigger the select before the context menu kicks in.

提交回复
热议问题