Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
When a ContextMenu on XamRibbon ApplicationMenu is displayed, the menu closes
posted

Support,

When a ContextMenu on XamRibbon ApplicationMenu is displayed, the ApplicationMenu closes. 

How do I keep the ApplicationMenu visible while the custom ContextMenu is also displayed?  

The built-in, default ContextMenu stays open, however, when I use a custom ContextMenu, the ApplicationMenu closes when I right click the ApplicationMenu.

XAML snippet showing custom ContextMenu:

<igRibbon:XamRibbon.ApplicationMenu>

    <igRibbon:ApplicationMenu ItemsSource="{Binding Path=ApplicationMenuItems}" ItemsPanel="{DynamicResource ApplicationMenuItemsPanelTemplate}" Caption="File" Prism:RegionManager.RegionName="{x:Static Common:GlobalRegionNames.ApplicationMenuContent}">

        <igRibbon:ApplicationMenu.ItemContainerStyle>

            <Style TargetType="igRibbon:ToolMenuItem">

                <Setter Property="Header" Value="{Binding Path=Caption}"/>

                <Setter Property="Icon" Value="{Binding LargeImage, Converter={StaticResource StaticResourceConverter}}"/>

                <Setter Property="ItemsSource" Value="{Binding Path=ChildItems}"/>

                <Setter Property="Command" Value="{Binding Source={StaticResource DataContextSpy}, Path=DataContext.ApplicationMenuNavigateCommand}" />

                <Setter Property="CommandParameter" Value="{Binding}" />

            </Style>

        </igRibbon:ApplicationMenu.ItemContainerStyle>

        <igRibbon:ApplicationMenu.ContextMenu>

            <ContextMenu>

                <MenuItem Header="Add to Home programs" Command="{Binding Path=AddToHomeProgramsCommand}" CommandParameter="{Binding}" />

            </ContextMenu>

        </igRibbon:ApplicationMenu.ContextMenu>

 

Thank you,

Karl

 

Parents
No Data
Reply Children
No Data