Back to Devexpress

CollectionDefinition Class

wpf-devexpress-dot-xpf-dot-propertygrid-70cccdfa.md

latest3.1 KB
Original Source

CollectionDefinition Class

Represents a collection definition.

Namespace : DevExpress.Xpf.PropertyGrid

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

NuGet Package : DevExpress.Wpf.PropertyGrid

Declaration

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

Remarks

To learn more, see Collection Definitions.

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

xml
<dxprg:CollectionDefinition Path="Suppliers"
                            NewItemInitializer="{StaticResource xamlInitializer}" >

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>

Inheritance

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement PropertyDefinitionBase PropertyDefinition CollectionDefinition

See Also

CollectionDefinition Members

PropertyDefinition

DevExpress.Xpf.PropertyGrid Namespace