Back to Devexpress

DXTabItem.HoverBackgroundTemplate Property

wpf-devexpress-dot-xpf-dot-core-dot-dxtabitem-89d86ca6.md

latest2.4 KB
Original Source

DXTabItem.HoverBackgroundTemplate Property

Gets or sets the template to visualize the appearance of the header of the DXTabItem when it is under a mouse pointer. 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 HoverBackgroundTemplate { get; set; }
vb
Public Property HoverBackgroundTemplate 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 HoverBackgroundTemplate 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#L37

xml
<Style TargetType="dx:DXTabItem">
    <Setter Property="HoverBackgroundTemplate" Value="{StaticResource TabItemHoverBackground}"/>
    <Setter Property="NormalBackgroundTemplate" Value="{StaticResource TabItemNormalBackground}"/>

See Also

DXTabItem Class

DXTabItem Members

DevExpress.Xpf.Core Namespace