This question is locked. New answers and comments are not allowed.
I have a treeview with an attached context menu. The context menu items have commands which are pointing to the view model, like so (shortened version):
Now what I'd like to do is set the current treeview item to IsInEditMode=true - basically like pressing F2, but raised by the context menu item click, and in a MVVM context.
I can set my property from MVVM, but how to bind/reference the clicked tree view item?
I suppose I should pass a command parameter but I just can't figure it out.
Your help much appreciated - thx.
<
telerik:RadContextMenu.ContextMenu
>
<
telerik:RadContextMenu
x:Name
=
"ContextMenu"
Opened
=
"ContextMenuOpened"
>
<
telerik:RadMenuItem
Header
=
"Edit Group"
Command
=
"{Binding EditCommand}"
Name
=
"EditNode"
/>
</
telerik:RadContextMenu
>
</
telerik:RadContextMenu.ContextMenu
>
Now what I'd like to do is set the current treeview item to IsInEditMode=true - basically like pressing F2, but raised by the context menu item click, and in a MVVM context.
I can set my property from MVVM, but how to bind/reference the clicked tree view item?
I suppose I should pass a command parameter but I just can't figure it out.
Your help much appreciated - thx.