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

Declaration

public DataTemplate GlyphTemplate { get; set; }
Public Property GlyphTemplate As DataTemplate

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