Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Wpf.Ribbon

#Declaration

public Style TabPaneStyle { get; set; }

#Property Value

Type Description
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:

DevExpress BackstageViewControl for WPF - Tab pane with a red frame

<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