Back to Devexpress

DXTabControl.BackgroundTemplate Property

wpf-devexpress-dot-xpf-dot-core-dot-dxtabcontrol-fee0016d.md

latest2.4 KB
Original Source

DXTabControl.BackgroundTemplate Property

Gets or sets the template to the visualize background appearance of the DXTabControl. This is a dependency property.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public DataTemplate BackgroundTemplate { get; set; }
vb
Public Property BackgroundTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

A System.Windows.DataTemplate object that specifies the corresponding template.

|

Remarks

Refer to the following topic for more information: How to: Change Tab Appearance in DXTabControl when a Tab Is Selected, Focused Or Hovered.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BackgroundTemplate property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-tabcontrol-customize-background-based-on-tab-state/CS/DXTabControlExample/MainWindow.xaml#L34

xml
<Grid>
    <dx:DXTabControl Name="tabControl" BackgroundTemplate="{StaticResource TabControlBackground}">
        <dx:DXTabControl.ItemContainerStyle>

See Also

DXTabControl Class

DXTabControl Members

DevExpress.Xpf.Core Namespace