バージョン

NavigationPaneToggleButtonStyleKey フィールド

選択された OutlookBarGroup のコンテンツをポップアップで表示する System.Windows.Controls.Primitives.ToggleButton のスタイルを識別するキー。
シンタックス
'宣言
 
Public Shared ReadOnly NavigationPaneToggleButtonStyleKey As ResourceKey
public static readonly ResourceKey NavigationPaneToggleButtonStyleKey
使用例
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>
参照