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.v24.1.dll
NuGet Package: 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>
See Also