Version

NavigationPaneOptionsControlStyle Property

Returns/set the style of NavigationPaneOptionsControl. This is a dependency property.
Syntax
'Declaration
 
Public Property NavigationPaneOptionsControlStyle As Style
public Style NavigationPaneOptionsControlStyle {get; set;}
Example
Private Sub XOBinit()

        Dim optionsStyle As Style = New Style(GetType(NavigationPaneOptionsControl))
        optionsStyle.Setters.Add(New Setter(BackgroundProperty, New SolidColorBrush(Colors.LightGreen)))
        xamOutlookBar1.NavigationPaneOptionsControlStyle = optionsStyle

        Dim popupButtonStyle As Style = New Style(GetType(ToggleButton))
        popupButtonStyle.Setters.Add(New Setter(ContentProperty, "Show popup"))
        Me.Resources.Add(XamOutlookBar.NavigationPaneToggleButtonStyleKey, popupButtonStyle)

End Sub
public IG_XamOutlookBar_Properties()
{
    InitializeComponent();
    
    Style optionsStyle = new Style(typeof(NavigationPaneOptionsControl));
    optionsStyle.Setters.Add(new Setter(BackgroundProperty, new SolidColorBrush(Colors.LightGreen)));
    xamOutlookBar1.NavigationPaneOptionsControlStyle = optionsStyle;

    Style popupButtonStyle = new Style(typeof(ToggleButton));
    popupButtonStyle.Setters.Add(new Setter(ContentProperty, "Show popup"));
    this.Resources.Add(XamOutlookBar.NavigationPaneToggleButtonStyleKey, popupButtonStyle);
}
<Window x:Class="XamOutlookBarApp.IG_XamOutlookBar_Properties"
    
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    
xmlns:igOutlookBar="http://infragistics.com/OutlookBar"
    
Title="IG_XamOutlookBar_Properties" Height="300" Width="300">
    
<Window.Resources>
        
<Style x:Key="xobOptions" TargetType="{x:Type igOutlookBar:NavigationPaneOptionsControl}">
            
<Setter Property="Background" Value="LightBlue"/>
        
</Style>
    
</Window.Resources>
    
<StackPanel Orientation="Horizontal">
        
<igOutlookBar:XamOutlookBar Name="xamOutlookBar1" Width="144" 
                                    
NavigationPaneOptionsControlStyle="{StaticResource xobOptions}">
            
<igOutlookBar:OutlookBarGroup Header="Group 1" Content="Group 1"/>
            
<igOutlookBar:OutlookBarGroup Header="Group 2" Content="Group 2"/>
            
<igOutlookBar:XamOutlookBar.Resources>
                
<Style x:Key="{x:Static igOutlookBar:XamOutlookBar.HorizontalSplitterStyleKey}" TargetType="{x:Type Thumb}">
                    
<Setter Property="Height" Value="10"/>
                    
<Setter Property="Template">
                        
<Setter.Value>
                            
<ControlTemplate TargetType="{x:Type Thumb}">
                                
<Grid VerticalAlignment="Stretch">
                                    
<Rectangle Margin="15,4,15,4" Fill="#55111111"/>
                                
</Grid>
                            
</ControlTemplate>
                        
</Setter.Value>
                    
</Setter>
                
</Style>
                
<Style x:Key="{x:Static igOutlookBar:XamOutlookBar.NavigationPaneToggleButtonStyleKey}" TargetType="{x:Type ToggleButton}" BasedOn="{x:Null}">
                    
<Setter Property="Content"    Value="XOB is minimized"/>
                
</Style>
                
<Style x:Key= "{x:Static igOutlookBar:XamOutlookBar.MinimizeToggleButtonStyleKey}" TargetType="ToggleButton">
                    <Setter Property="Content" Value="&lt;&lt;"/>

                    
<Style.Triggers>
                        <Trigger Property="IsChecked" Value="True">
                            <S
etter Property="Content" Value="&gt;&gt;"/>
                        </Trigger>
                    </Style.Triggers>
                </Style>

            </igOutlookBar:XamOutlookBar.Resources>
        </igOutlookBar:XamOutlookBar>
    </StackP
anel>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also