Back to Devexpress

PropertyGridControl Class

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

latest5.1 KB
Original Source

PropertyGridControl Class

The property grid control.

Namespace : DevExpress.Xpf.PropertyGrid

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

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
[DXLicenseWpf]
public class PropertyGridControl :
    Control,
    INavigationSupport
vb
<DXLicenseWpf>
Public Class PropertyGridControl
    Inherits Control
    Implements INavigationSupport

The following members return PropertyGridControl objects:

Remarks

The DevExpress WPF Property Grid Control is a data bound control that allows you to display and edit an object’s properties. This control offers multiple features such as a built-in search control, a wide array of cell editors, the capability to switch the object in runtime, flexible property definitions, and more.

Run Demo: Property Grid - Layout Customization

View Example: Property Grid - Display Object Properties

The following code snippets (auto-collected from DevExpress Examples) contain references to the PropertyGridControl 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.

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

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

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-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#L8

xml
Title="MainWindow" Height="800" Width="1000">
<dxprg:PropertyGridControl x:Name="propertyGrid"
                           ShowCategories="Hidden"

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

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

Inheritance

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control PropertyGridControl

See Also

PropertyGridControl Members

DevExpress.Xpf.PropertyGrid Namespace