Back to Devexpress

PropertyGridControl.ShowProperties Property

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

latest2.8 KB
Original Source

PropertyGridControl.ShowProperties Property

Gets or sets whether rows should be created automatically for all fields in the underlying data source. This is a dependency property.

Namespace : DevExpress.Xpf.PropertyGrid

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

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public ShowPropertiesMode ShowProperties { get; set; }
vb
Public Property ShowProperties As ShowPropertiesMode

Property Value

TypeDescription
ShowPropertiesMode

An ShowPropertiesMode enumeration value that specifies the way rows are generated.

|

Available values:

NameDescription
All

Display all properties in the underlying data source.

| | WithPropertyDefinitions |

Display only properties that are defined in XAML.

|

Remarks

Set the ShowProperties property to ShowPropertiesMode.WithPropertyDefinitions to prevent properties that are not defined in XAML from being displayed.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowProperties 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/MainWindow.xaml#L20

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

See Also

PropertyGridControl Class

PropertyGridControl Members

DevExpress.Xpf.PropertyGrid Namespace