Hello!
Since the Telerik documentation having this "How to" referring to adding a menu item to RadPane's menu is obsolete because is using the CustomMenuCommand I have a question for you.
I am adding a RadMenuItem to the template I use for all the radpanes as follows:
In RadMenuHeaderChange_Click method I need to get somehow the RadPane that owns the RadContextMenu that has been opened.
How can I achieve that?
Thank you!
Roxana
Since the Telerik documentation having this "How to" referring to adding a menu item to RadPane's menu is obsolete because is using the CustomMenuCommand I have a question for you.
I am adding a RadMenuItem to the template I use for all the radpanes as follows:
<
DataTemplate
x:Key
=
"PaneContextMenuTemplate"
>
<
telerik:RadContextMenu
InheritDataContext
=
"False"
>
<
telerik:RadMenuItem
IsChecked
=
"{Binding IsInDocumentHost}"
Command
=
"telerikDocking:RadDockingCommands.TabbedDocument"
CommandParameter
=
"{Binding}"
CommandTarget
=
"{Binding}"
Header
=
"{Binding Command.Text, RelativeSource={RelativeSource Self}}"
/>
<
telerik:RadMenuItem
IsCheckable
=
"False"
Header
=
"Change header name"
Click
=
"RadMenuHeaderChange_Click"
/>
</
telerik:RadContextMenu
>
</
DataTemplate
>
In RadMenuHeaderChange_Click method I need to get somehow the RadPane that owns the RadContextMenu that has been opened.
How can I achieve that?
Thank you!
Roxana