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.1.dll
NuGet Package: DevExpress.Wpf.Ribbon
Declaration
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:
<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