ImageCheckEditStyleSettings Class
Defines the appearance and behavior of a checkbox editor with custom glyphs instead of standard check glyph.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v23.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
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:CheckEdit
Content="CheckEdit"
CheckedGlyph="TrafficLightGreen.png"
UncheckedGlyph="TrafficLightRed.png"
IndeterminateGlyph="TrafficLightYellow.png"
IsThreeState="True">
<dxe:CheckEdit.StyleSettings>
<dxe:ImageCheckEditStyleSettings />
</dxe:CheckEdit.StyleSettings>
</dxe:CheckEdit>
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:CheckEdit
Content="CheckEdit"
CheckedGlyph="TrafficLightGreen.png"
UncheckedGlyph="TrafficLightRed.png"
IndeterminateGlyph="TrafficLightYellow.png"
IsThreeState="True">
<dxe:CheckEdit.GlyphTemplate>
<DataTemplate>
<Image Source="{Binding}" Height="32" Width="72"/>
</DataTemplate>
</dxe:CheckEdit.GlyphTemplate>
<dxe:CheckEdit.StyleSettings>
<dxe:ImageCheckEditStyleSettings />
</dxe:CheckEdit.StyleSettings>
</dxe:CheckEdit>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ImageCheckEditStyleSettings class.
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.