Back to Devexpress

BackstageViewControl.TabPaneStyle Property

wpf-devexpress-dot-xpf-dot-ribbon-dot-backstageviewcontrol-98536754.md

latest2.6 KB
Original Source

BackstageViewControl.TabPaneStyle Property

Gets or sets a style applied to the area where item captions are displayed. This is a dependency property.

Namespace : DevExpress.Xpf.Ribbon

Assembly : DevExpress.Xpf.Ribbon.v25.2.dll

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public Style TabPaneStyle { get; set; }
vb
Public Property TabPaneStyle As Style

Property Value

TypeDescription
Style

A Style object, applied to the area where item captions are displayed.

|

Remarks

Target Type : ContentControl.

The following example adds a red frame to a BackstageViewControl’s tab pane:

xaml
<dxr:RibbonControl.ApplicationMenu>
    <dxr:BackstageViewControl>
        <dxr:BackstageButtonItem Content="New" Glyph="{dx:DXImage Image=New_16x16.png}"/>
        <dxr:BackstageButtonItem Content="Open" Glyph="{dx:DXImage Image=Open_16x16.png}" />
        <dxr:BackstageTabItem Content="Recent">
            <dxr:BackstageTabItem.ControlPane>
                <ContentControl/>
            </dxr:BackstageTabItem.ControlPane>
        </dxr:BackstageTabItem>
        <dxr:BackstageButtonItem Content="Close" Glyph="{dx:DXImage Image=Close_16x16.png}" />
        <dxr:BackstageViewControl.TabPaneStyle>
            <Style TargetType="ContentControl">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="ContentControl">
                            <Border BorderBrush="Red" BorderThickness="2">
                                <ContentPresenter/>
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </dxr:BackstageViewControl.TabPaneStyle>
    </dxr:BackstageViewControl>
</dxr:RibbonControl.ApplicationMenu>

See Also

BackstageViewControl Class

BackstageViewControl Members

DevExpress.Xpf.Ribbon Namespace