[]
        
(Showing Draft Content)

C1.WPF.PropertyGrid.CollectionEditorControl

CollectionEditorControl Class

Default editor used by C1PropertyGrid to edit lists of values.

Inheritance
CollectionEditorControl
Namespace: C1.WPF.PropertyGrid
Assembly: C1.WPF.PropertyGrid.dll
Syntax
[StyleTypedProperty(Property = "EditorStyle", StyleTargetType = typeof(C1PropertyGrid))]
[StyleTypedProperty(Property = "SelectorStyle", StyleTargetType = typeof(ListBox))]
[TemplatePart(Name = "ItemsEditor", Type = typeof(C1PropertyGrid))]
[TemplatePart(Name = "ItemsSelector", Type = typeof(C1ListView))]
[TemplatePart(Name = "UpButton", Type = typeof(Button))]
[TemplatePart(Name = "DownButton", Type = typeof(Button))]
[TemplatePart(Name = "AddButton", Type = typeof(Button))]
[TemplatePart(Name = "RemoveButton", Type = typeof(Button))]
public class CollectionEditorControl : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable

Constructors

Name Description
CollectionEditorControl()

Initializes a new instance of the CollectionEditorControl class.

Fields

Name Description
CanUserAddItemsProperty

Identifies the CanUserAddItems dependency property.

CanUserRemoveItemsProperty

Identifies the CanUserRemoveItems dependency property.

CanUserSortItemsProperty

Identifies the CanUserSortItems dependency property.

EditorStyleProperty

Identifies the EditorStyle dependency property.

ItemsEditorProperty

Identifies the ItemsEditor dependency property.

ItemsSelectorProperty

Identifies the ItemsSelector dependency property.

ItemsSourceProperty

Identifies the ItemsSource dependency property.

SelectorStyleProperty

Identifies the SelectorStyle dependency property.

ShowResetButtonProperty

Identifies the ShowResetButton dependency property.

Properties

Name Description
AvailableEditors

Gets or sets the available editors for the CollectionEditorControl.

CanUserAddItems

Gets or sets a value indicating whether the user can add items to the edited collection.

CanUserRemoveItems

Gets or sets a value indicating whether the user can remove items from the edited collection.

CanUserSortItems

Gets or sets a value indicating whether the user can sort items in the edited collection.

DataCollection

Gets the C1.DataCollection.IDataCollection<> generated from ItemsSource.

EditorStyle

Gets or sets the style applied to the collection editor's PropertyGrid.

IsDisposed

Gets whether this instance is disposed.

ItemsEditor

Gets the C1PropertyGrid used to edit the properties of the currently selected item.

ItemsSelector

Gets the ListBox used to show the list of items.

ItemsSource

Gets or sets the list to be edited by the control.

PropertyAttributes

Gets or sets the property attributes for the CollectionEditorControl.

SelectorStyle

Gets or sets the style applied to the advanced editor's ListBox.

ShowResetButton

Gets or sets whether the reset button is shown in the properties editor.

Methods

Name Description
Dispose()
Dispose(bool)
Finalize()

Finalizes this instance of the CollectionEditorControl class.

OnApplyTemplate()