DXTabItem.GlyphTemplate Property
Gets or sets a template for the current DXTabItem object’s DXTabItem.Glyph. This is a dependency property.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
DataTemplate | A DataTemplate object specifying a template for the current DXTabItem object’s DXTabItem.Glyph. |
Remarks
To specify a custom GlyphTemplate, see the example below.
<DataTemplate x:Key="TabItemDefaultGlyphTemplate">
<Image x:Name="icon" Source="{Binding}" Stretch="None" Margin="0,0,4,0"/>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding}" Value="{x:Null}">
<Setter TargetName="icon" Property="Visibility" Value="Collapsed"/>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GlyphTemplate 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.