How can I remove this context menu completely? The application will have a set of buttons on load and that should not be modified. Does this come under navigation pane options, groups or buttons? Can you suggest any options for this?
Hello,
You can use the OverflowMenuButtonStyleKey to style the menu item which opens the menu as follows:
<igOB:XamOutlookBar x:Name="myOutlookBar" >
<igOB:XamOutlookBar.Resources>
<Style x:Key="{x:Static igOutlookBar:XamOutlookBar.OverflowMenuButtonStyleKey}" TargetType="MenuItem">
<Setter Property="Visibility" Value="Collapsed"/>
</Style>
</igOB:XamOutlookBar.Resources>
Sincerely,
Valerie
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hi I was trying to do this via code behind as I cannot have it in my xaml. If I create a new style targeting MenuItem it still doesn't work.
Is this right?
Style style = new Style(typeof (MenuItem)); style.Setters.Add(new Setter(MenuItem.VisibilityProperty, Visibility.Collapsed));
outlookBar.Resources.Add(style)