Back to Devexpress

PropertyGridControl.ExpandCategoriesWhenSelectedObjectChanged Property

wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertygridcontrol-13a2bb2c.md

latest2.7 KB
Original Source

PropertyGridControl.ExpandCategoriesWhenSelectedObjectChanged Property

Gets or sets whether to automatically expand all categories when changing the selected object. This is a dependency property.

Namespace : DevExpress.Xpf.PropertyGrid

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

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public bool ExpandCategoriesWhenSelectedObjectChanged { get; set; }
vb
Public Property ExpandCategoriesWhenSelectedObjectChanged As Boolean

Property Value

TypeDescription
Boolean

true, to expand all categories when changing the selected object; otherwise, false.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the ExpandCategoriesWhenSelectedObjectChanged 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-property-grid-apply-data-annotation-attributes/CS/MainWindow.xaml#L13

xml
</Window.Resources>
    <dxprg:PropertyGridControl SelectedObject="{Binding Path=.}" ExpandCategoriesWhenSelectedObjectChanged="True"/>
</Window>

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

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

See Also

PropertyGridControl Class

PropertyGridControl Members

DevExpress.Xpf.PropertyGrid Namespace