wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertygridcontrol-9e6210e1.md
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
public CategoriesShowMode ShowCategories { get; set; }
Public Property ShowCategories As CategoriesShowMode
| Type | Description |
|---|---|
| CategoriesShowMode |
A CategoriesShowMode enumeration value that specifies the way the categories are displayed.
|
Available values:
| Name | Description |
|---|---|
| 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.
|
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
<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
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
<dxprg:PropertyGridControl x:Name="propertyGrid"
ShowCategories="Hidden"
CollectionButtonsVisibility="OnCollectionButtonsVisibility"
<dxprg:PropertyGridControl ExpandCategoriesWhenSelectedObjectChanged="True"
ShowCategories="False"
ShowEditorButtons="True"
wpf-diagram-mdi/CS/MainWindow.xaml#L147
SelectedObject="{Binding Path=(dxdo:DockLayoutManager.DockLayoutManager).ActiveDockItem.(dxdiag:DiagramControl.Diagram).SelectionModel, RelativeSource={RelativeSource Self}}"
ShowCategories="False" />
</dxdo:LayoutPanel>
See Also