Skip to main content

CheckEditSettings.IndeterminateGlyph Property

Gets or sets a glyph used to visualize the CheckEdit’s indeterminate state. This is a dependency property.

Namespace: DevExpress.Xpf.Editors.Settings

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public ImageSource IndeterminateGlyph { get; set; }

Property Value

Type Description
ImageSource

An ImageSource object that represents the CheckEdit’s glyph.

Remarks

To make the CheckEdit display custom glyphs instead of the standard ones, pass the ImageCheckEditStyleSettings object to the CheckEdit‘s StyleSettings property.

Use the CheckedGlyph, IndeterminateGlyph, and UncheckedGlyph properties to specify glyphs for all the CheckEdit’s states.

<dxe:CheckEditSettings
  CheckedGlyph="TrafficLightGreen.png"
  UncheckedGlyph="TrafficLightRed.png"
  IndeterminateGlyph="TrafficLightYellow.png"
  IsThreeState="True">
  <dxe:CheckEditSettings.StyleSettings>
      <dxe:ImageCheckEditStyleSettings />
  </dxe:CheckEditSettings.StyleSettings>
</dxe:CheckEditSettings>

The CheckEdit control scales the specified glyphs to 16px. To customize the rendered image size, pass a custom data template to the GlyphTemplate property like in the code sample below.

<dxe:CheckEditSettings
    CheckedGlyph="TrafficLightGreen.png"
    UncheckedGlyph="TrafficLightRed.png"
    IndeterminateGlyph="TrafficLightYellow.png"
    IsThreeState="True">
    <dxe:CheckEditSettings.GlyphTemplate>
        <DataTemplate>
            <Image Source="{Binding}" Height="32" Width="72"/>
        </DataTemplate>
    </dxe:CheckEditSettings.GlyphTemplate>
    <dxe:CheckEditSettings.StyleSettings>
        <dxe:ImageCheckEditStyleSettings />
    </dxe:CheckEditSettings.StyleSettings>
</dxe:CheckEditSettings>
See Also