Back to Devexpress

PropertyGridControl.ShowCategories Property

wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertygridcontrol-9e6210e1.md

latest5.1 KB
Original Source

PropertyGridControl.ShowCategories Property

Gets or sets the categories show mode. This is a dependency property.

Namespace : DevExpress.Xpf.PropertyGrid

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

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public CategoriesShowMode ShowCategories { get; set; }
vb
Public Property ShowCategories As CategoriesShowMode

Property Value

TypeDescription
CategoriesShowMode

A CategoriesShowMode enumeration value that specifies the way the categories are displayed.

|

Available values:

NameDescription
Hidden

Shows data fields from all categories without grouping.

| | Visible |

Shows the expandable/collapsible category rows by default.

| | Tabbed |

Shows each category in a separate tab.

|

Remarks

If the ShowCategories property is set to Tabbed, you can use the CategoryDefinition.Glyph property to specify a glyph for the category header.

Refer to the following help topic for more information: Property Categories.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowCategories property.

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.

wpf-propertygrid-add-an-item-to-a-collection-or-a-dictionary/CS/Dictionary/MainWindow.xaml#L15

xml
<dxprg:PropertyGridControl Name="pGrid" SelectedObject="{Binding Path=CurrentItem, ElementName=grid}" Grid.Column="1"
                           ShowCategories="False" CellValueChanged="pGrid_CellValueChanged" >
</dxprg:PropertyGridControl>

wpf-property-grid-show-tooltips-in-new-item-menu/CS/PropertyGridMenuOpening/MainWindow.xaml#L8

xml
Title="MainWindow" Height="800" Width="1000">
    <dxprg:PropertyGridControl x:Name="propertyGrid" ShowCategories="Hidden" MenuOpening="OnMenuOpening"/>
</dx:ThemedWindow>

wpf-property-grid-specify-custom-collection-edit-actions/CS/MainWindow.xaml#L9

xml
<dxprg:PropertyGridControl x:Name="propertyGrid"
                           ShowCategories="Hidden"
                           CollectionButtonsVisibility="OnCollectionButtonsVisibility"

wpf-property-grid-use-data-annotations-to-define-property-editor/CS/PropertyGridEditorAttribute/MainWindow.xaml#L58

xml
<dxprg:PropertyGridControl ExpandCategoriesWhenSelectedObjectChanged="True"
                           ShowCategories="False"
                           ShowEditorButtons="True"

wpf-diagram-mdi/CS/MainWindow.xaml#L147

xml
SelectedObject="{Binding Path=(dxdo:DockLayoutManager.DockLayoutManager).ActiveDockItem.(dxdiag:DiagramControl.Diagram).SelectionModel, RelativeSource={RelativeSource Self}}"
        ShowCategories="False" />
</dxdo:LayoutPanel>

See Also

PropertyGridControl Class

PropertyGridControl Members

DevExpress.Xpf.PropertyGrid Namespace