Back to Devexpress

PropertyDefinition Class

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

latest3.7 KB
Original Source

PropertyDefinition Class

Represents a property definition.

Namespace : DevExpress.Xpf.PropertyGrid

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

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public class PropertyDefinition :
    PropertyDefinitionBase
vb
Public Class PropertyDefinition
    Inherits PropertyDefinitionBase

The following members return PropertyDefinition objects:

Remarks

To learn more, see Property Definitions.

The following code snippets (auto-collected from DevExpress Examples) contain references to the PropertyDefinition 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/MainWindow.xaml#L21

xml
ShowProperties="WithPropertyDefinitions" ShowCategories="False" CellValueChanged="pGrid_CellValueChanged" >
<dxprg:PropertyDefinition Path="ProductName" />
<dxprg:PropertyDefinition Path="City" />

wpf-property-grid-apply-data-annotation-attributes/CS/MainWindow.xaml#L15

xml
<DataTemplate x:Key="ImageTemplate">
    <dxprg:PropertyDefinition Path="Photo" AllowExpanding="Never">
        <dxprg:PropertyDefinition.CellTemplate>

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

xml
<DataTemplate x:Key="PropertyTemplate">
    <dxprg:PropertyDefinition Header="Full Address" HeaderShowMode="OnlyHeader"/>
</DataTemplate>

Inheritance

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement PropertyDefinitionBase PropertyDefinition CollectionDefinition

See Also

PropertyDefinition Members

CollectionDefinition

DevExpress.Xpf.PropertyGrid Namespace