Won't Fix
Last Updated: 31 May 2016 14:48 by ADMIN
ADMIN
Kalin
Created on: 28 Nov 2014 09:39
Category: Docking
Type: Bug Report
3
Showing ContextMenu inside of unpinned Pane closes it immediately when the element inside the Pane could not be focused.

		
1 comment
ADMIN
Kalin
Posted on: 31 May 2016 14:46
Hi,

For such scenarios the recommended approach is to hook to the ContextMenu Opening event and manually active the need Pane in order to keep it open. Please check the following snippet that demonstrates how this can be achieved using RadContextMenu:

private void OnRadContextMenuOpening(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
    var clicked = (sender as RadContextMenu).GetClickedElement<FrameworkElement>();
    var pane = clicked.GetParentPane();
    if (pane != null)
    {
        pane.IsActive = true;
    }
}

Regards,
Kalin