Hi everybody.
I want to build some sort of browser window using the WpfTreeView. My problem now is, that I wnat to add a ContextMenu (Right click) to the Items, just like the Menus in e.g. the Layout browser. I added a context menu in the .xaml of the usercontrol, but I want to show the ContextMenu only on the childnodes of my rootnode.
So how can I add the Menu only to the childnodes and not to the whole treeview?
<rs:WpfTreeView.ContextMenu>
<ContextMenu Background="WhiteSmoke">
<MenuItem Header="Remove" Click="ContextMenuRemove_Click"/>
</ContextMenu>
</rs:WpfTreeView.ContextMenu>