I'm using the ribbon ContextMenu with a wpf TreeView control and the menu popup is being displayed at the top left corner of the screen rather than where the mouse cursor is located.
I'm creating the ContextMenu in the TreeView's ContextMenuOpening event handler, with the event's original source being a treeviewitem. The ContextMenuClosing event also isn't being fired.
Both the menu placement and the ContextMenuClosing event are correct when using the standard Wpf ContextMenu control.
Am I just missing something obvious when creating the contextmenu or is this a bug?
Cheers
I'm creating the ContextMenu in the TreeView's ContextMenuOpening event handler, with the event's original source being a treeviewitem. The ContextMenuClosing event also isn't being fired.
Both the menu placement and the ContextMenuClosing event are correct when using the standard Wpf ContextMenu control.
Am I just missing something obvious when creating the contextmenu or is this a bug?
Cheers