Back to Devexpress

CategoryDefinition.Glyph Property

wpf-devexpress-dot-xpf-dot-propertygrid-dot-categorydefinition.md

latest2.3 KB
Original Source

CategoryDefinition.Glyph Property

Gets or sets an image displayed within a category header. This is a dependency property.

Namespace : DevExpress.Xpf.PropertyGrid

Assembly : DevExpress.Xpf.PropertyGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public ImageSource Glyph { get; set; }
vb
Public Property Glyph As ImageSource

Property Value

TypeDescription
ImageSource

An ImageSource object that specifies the image displayed within a category header.

|

Remarks

Use the Glyph property to display a custom image in a category header. The Glyph property is in effect if the PropertyGridControl.ShowCategories property is set to Tabbed.

xaml
<Window ...
        xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core">
...
<dxprg:PropertyGridControl SelectedObject="{Binding DemoSupplier}" ShowProperties="All" ShowCategories="Tabbed">
    <dxprg:CategoryDefinition Path="Style" Glyph="{dx:DXImage Image=Customization_32x32.png}"/>
    <dxprg:CategoryDefinition Path="Effects" Glyph="{dx:DXImage Image=Effects_32x32.png}"/>
    <dxprg:CategoryDefinition Path="SeriesOptions" Glyph="{dx:DXImage Image=SeriesOptions_32x32.png}"/>
</dxprg:PropertyGridControl>

See Also

ShowCategories

CategoryDefinition Class

CategoryDefinition Members

DevExpress.Xpf.PropertyGrid Namespace