I have a context menu as shared resource.
<Window>
<Window.Resources>
<!-- Context Menu -->
<!-- Enabling/Disabling of menu items is controlled by ContextMenuExtensions.OnContextMenuOpened -->
<Navigation:RadContextMenu x:Key="ViewMenu" x:Shared="true"
Model:ContextMenuExtensions.NotifyOnMenuOpen="True"
ItemClick="MenuViewItemClick">
<Navigation:RadMenuItem/>
</Navigation:RadContextMenu >
<Window.Resources>
<Grid>
<Dock:RadPane>
<Grid Navigation:RadContextMenu.ContextMenu="{StaticResource ViewMenu}">
<Border>
<RadGridView/>
</Border>
</Grid>
</Dock:RadPane>
<Dock:RadPane>
<Grid Navigation:RadContextMenu.ContextMenu="{StaticResource ViewMenu}">
</Grid>
</Dock:RadPane>
And a floating radpane
The RadGridView has RowDetailsTemplate defined.
Depending on where the mouse is click the contextmenu is shown, and I use the contextmenu.GetClickedElement method.
If I rightclick on the radgridview without opening the floating pane the GetClickedElement is correct. But if I open the floating pane and then rightclick on the radgridview the GetClickedItem is not returned corectly. The Floating Pane is returned even though I clicked on radgridview details.
What could be a possible issue with this?
<Window>
<Window.Resources>
<!-- Context Menu -->
<!-- Enabling/Disabling of menu items is controlled by ContextMenuExtensions.OnContextMenuOpened -->
<Navigation:RadContextMenu x:Key="ViewMenu" x:Shared="true"
Model:ContextMenuExtensions.NotifyOnMenuOpen="True"
ItemClick="MenuViewItemClick">
<Navigation:RadMenuItem/>
</Navigation:RadContextMenu >
<Window.Resources>
<Grid>
<Dock:RadPane>
<Grid Navigation:RadContextMenu.ContextMenu="{StaticResource ViewMenu}">
<Border>
<RadGridView/>
</Border>
</Grid>
</Dock:RadPane>
<Dock:RadPane>
<Grid Navigation:RadContextMenu.ContextMenu="{StaticResource ViewMenu}">
</Grid>
</Dock:RadPane>
And a floating radpane
The RadGridView has RowDetailsTemplate defined.
Depending on where the mouse is click the contextmenu is shown, and I use the contextmenu.GetClickedElement method.
If I rightclick on the radgridview without opening the floating pane the GetClickedElement is correct. But if I open the floating pane and then rightclick on the radgridview the GetClickedItem is not returned corectly. The Floating Pane is returned even though I clicked on radgridview details.
What could be a possible issue with this?