This question is locked. New answers and comments are not allowed.
Hi there,
So there is a way to open Context menu on specific event. (http://www.telerik.com/help/silverlight/radcontextmenu-features-opening-on-specific-event.html) That is really useful.
Now I want to do the same but only if control is in focus. My example:
I have DataGrid control with it's own template. I also have DataGridRowTemplate in place. DataGridCellsPresenter have context menu. Right now I have EventName="MouseMove" I want to open context menu only if mouse move over selected row. Currently it will open context menu fo any row even if it is not selected.
So there is a way to open Context menu on specific event. (http://www.telerik.com/help/silverlight/radcontextmenu-features-opening-on-specific-event.html) That is really useful.
Now I want to do the same but only if control is in focus. My example:
I have DataGrid control with it's own template. I also have DataGridRowTemplate in place. DataGridCellsPresenter have context menu. Right now I have EventName="MouseMove" I want to open context menu only if mouse move over selected row. Currently it will open context menu fo any row even if it is not selected.
<dataPrimitives:DataGridCellsPresenter x:Name="CellsPresenter" Grid.Column="1" dataPrimitives:DataGridFrozenGrid.IsFrozen="True"> <telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu IconColumnWidth="36" ShowDelay="0:0:1" EventName="MouseMove" > <telerik:RadMenuItem Header="Add/Edit Tag" Command="{Binding ContextMenuClick}" CommandParameter="Add/Edit" > <telerik:RadMenuItem.Icon> <Image Source="/Scorecard.Common.Silverlight.Controls;component/Resources/TagAdd.png" Stretch="Fill"/> </telerik:RadMenuItem.Icon> </telerik:RadMenuItem> <telerik:RadMenuItem Header="Remove Tag" Command="{Binding ContextMenuClick}" CommandParameter="Remove" > <telerik:RadMenuItem.Icon> <Image Source="/Scorecard.Common.Silverlight.Controls;component/Resources/TagRemove.png" Stretch="Fill"/> </telerik:RadMenuItem.Icon> </telerik:RadMenuItem> </telerik:RadContextMenu> </telerik:RadContextMenu.ContextMenu> </dataPrimitives:DataGridCellsPresenter>