Back to Devexpress

CollectionDefinition.AllowRemoveItems Property

wpf-devexpress-dot-xpf-dot-propertygrid-dot-collectiondefinition-10d2610f.md

latest2.3 KB
Original Source

CollectionDefinition.AllowRemoveItems Property

Gets or sets whether users can remove collection items. This is a dependency property.

Namespace : DevExpress.Xpf.PropertyGrid

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

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

csharp
public bool AllowRemoveItems { get; set; }
vb
Public Property AllowRemoveItems As Boolean

Property Value

TypeDescription
Boolean

true to allow users to remove collection items; otherwise, false.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowRemoveItems 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-use-data-annotations-to-define-property-editor/CS/PropertyGridEditorAttribute/MainWindow.xaml#L50

xml
<DataTemplate x:Key="CollectionDefinitionTemplate">
    <dxprg:CollectionDefinition HeaderShowMode="OnlyHeader" AllowRemoveItems="False"/>
</DataTemplate>

See Also

AllowRemoveItemsWithoutNewItemInitializer

CollectionDefinition Class

CollectionDefinition Members

DevExpress.Xpf.PropertyGrid Namespace