Back to Devexpress

DXTabItem.SelectedBackgroundTemplate Property

wpf-devexpress-dot-xpf-dot-core-dot-dxtabitem-43e42f94.md

latest2.4 KB
Original Source

DXTabItem.SelectedBackgroundTemplate Property

Gets or sets the template to visualize the appearance of the header of the selected DXTabItem.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 SelectedBackgroundTemplate { get; set; }
vb
Public Property SelectedBackgroundTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

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

|

Remarks

Refer to the Appearance Customization topic to learn more.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectedBackgroundTemplate 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#L39

xml
<Setter Property="NormalBackgroundTemplate" Value="{StaticResource TabItemNormalBackground}"/>
<Setter Property="SelectedBackgroundTemplate" Value="{StaticResource TabItemSelectedBackground}"/>
<Setter Property="FocusedBackgroundTemplate" Value="{StaticResource TabItemFocusedBackground}"/>

See Also

DXTabItem Class

DXTabItem Members

DevExpress.Xpf.Core Namespace