Back to Devexpress

PropertyDefinition.AllowExpanding Property

wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertydefinition-5d5ef1e5.md

latest3.0 KB
Original Source

PropertyDefinition.AllowExpanding Property

Gets or sets whether the end-user is allowed to expand the property to get access to its nested properties. This is a dependency property.

Namespace : DevExpress.Xpf.PropertyGrid

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

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public AllowExpandingMode? AllowExpanding { get; set; }
vb
Public Property AllowExpanding As AllowExpandingMode?

Property Value

TypeDescription
Nullable<AllowExpandingMode>

An AllowExpandingMode enumeration value.

|

Available values:

NameDescription
Default

Expands properties according to their type converters.

| | Never |

Doesn’t expand any property.

| | ForceIfNoTypeConverter |

Expands all properties that don’t have a type converter.

| | Force |

Expands all properties.

|

Remarks

If the AllowExpanding property is set to null , the property grid’s PropertyGridControl.AllowExpanding property specifies whether the end-user is allowed to expand the property.

If the AllowExpanding property is set to AllowExpandingMode.Default, the end-user is allowed to expand the property if it contains child properties.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowExpanding 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#L15

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

See Also

PropertyDefinition Class

PropertyDefinition Members

DevExpress.Xpf.PropertyGrid Namespace