Back to Devexpress

PropertyDefinition.TypeMatchMode Property

wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertydefinition-0eab6e05.md

latest2.1 KB
Original Source

PropertyDefinition.TypeMatchMode Property

Defines the rules of type matching between the properties in the data source and the PropertyGrid’s property definitions.

Namespace : DevExpress.Xpf.PropertyGrid

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

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public TypeMatchMode TypeMatchMode { get; set; }
vb
Public Property TypeMatchMode As TypeMatchMode

Property Value

TypeDescription
TypeMatchMode

A TypeMatchMode enumeration value.

|

Available values:

NameDescription
Direct

Property definition of type T is linked to a data source’s property of type T.

| | Extended |

Property definition of type T is linked to a data source’s property that can be assigned to T.

|

Remarks

When you link a property definition to a data source using a PropertyDefinition.Type property, you can define the rules of type matching using the TypeMatchMode property.

Note

Property definition of type T can be linked to data source’s property of type Nullable< T >. However, if property grid contains property definitions of type T and of type Nullable< T >, the latter has higher priority.

See Also

Type

Property Definitions

PropertyDefinition Class

PropertyDefinition Members

DevExpress.Xpf.PropertyGrid Namespace