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
I moved the ContextMenu to the ItemContainerStyle and it's now working properly.
Please close,