# C1.WPF.Extended.PropertyGrid.CollectionEditorControl

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl" class="text-break">CollectionEditorControl Class
</h1>
  <div class="markdown level0 summary"><p>Default editor used by C1PropertyGrid to edit lists of values.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level7"><span class="xref">CollectionEditorControl</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Extended.PropertyGrid.html">C1.WPF.Extended.PropertyGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Extended.4.6.2.dll</h6>
  <h5 id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;ItemsEditor&quot;, Type = typeof(C1PropertyGrid))]
[TemplatePart(Name = &quot;ItemsSelector&quot;, Type = typeof(ListBox))]
[TemplatePart(Name = &quot;UpButton&quot;, Type = typeof(Button))]
[TemplatePart(Name = &quot;DownButton&quot;, Type = typeof(Button))]
[TemplatePart(Name = &quot;AddButton&quot;, Type = typeof(Button))]
[TemplatePart(Name = &quot;RemoveButton&quot;, Type = typeof(Button))]
[TemplatePart(Name = &quot;AcceptButton&quot;, Type = typeof(Button))]
[TemplatePart(Name = &quot;CancelButton&quot;, Type = typeof(Button))]
[StyleTypedProperty(Property = &quot;EditorStyle&quot;, StyleTargetType = typeof(C1PropertyGrid))]
[StyleTypedProperty(Property = &quot;SelectorStyle&quot;, StyleTargetType = typeof(ListBox))]
public class CollectionEditorControl : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;ItemsEditor&quot;, Type:=GetType(C1PropertyGrid))&gt;
&lt;TemplatePart(Name:=&quot;ItemsSelector&quot;, Type:=GetType(ListBox))&gt;
&lt;TemplatePart(Name:=&quot;UpButton&quot;, Type:=GetType(Button))&gt;
&lt;TemplatePart(Name:=&quot;DownButton&quot;, Type:=GetType(Button))&gt;
&lt;TemplatePart(Name:=&quot;AddButton&quot;, Type:=GetType(Button))&gt;
&lt;TemplatePart(Name:=&quot;RemoveButton&quot;, Type:=GetType(Button))&gt;
&lt;TemplatePart(Name:=&quot;AcceptButton&quot;, Type:=GetType(Button))&gt;
&lt;TemplatePart(Name:=&quot;CancelButton&quot;, Type:=GetType(Button))&gt;
&lt;StyleTypedProperty(Property:=&quot;EditorStyle&quot;, StyleTargetType:=GetType(C1PropertyGrid))&gt;
&lt;StyleTypedProperty(Property:=&quot;SelectorStyle&quot;, StyleTargetType:=GetType(ListBox))&gt;
Public Class CollectionEditorControl
    Inherits Control
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl__ctor" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.#ctor">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.-ctor.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl__ctor">CollectionEditorControl()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.html">CollectionEditorControl</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_CanUserAddItemsProperty" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserAddItemsProperty">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserAddItemsProperty.html">CanUserAddItemsProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserAddItems.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_CanUserAddItems">CanUserAddItems</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_CanUserRemoveItemsProperty" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserRemoveItemsProperty">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserRemoveItemsProperty.html">CanUserRemoveItemsProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserRemoveItems.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_CanUserRemoveItems">CanUserRemoveItems</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_CanUserSortItemsProperty" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserSortItemsProperty">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserSortItemsProperty.html">CanUserSortItemsProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserSortItems.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_CanUserSortItems">CanUserSortItems</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_EditorStyleProperty" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.EditorStyleProperty">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.EditorStyleProperty.html">EditorStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.EditorStyle.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_EditorStyle">EditorStyle</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ItemsEditorProperty" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsEditorProperty">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsEditorProperty.html">ItemsEditorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsEditor.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ItemsEditor">ItemsEditor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ItemsSelectorProperty" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsSelectorProperty">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsSelectorProperty.html">ItemsSelectorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsSelector.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ItemsSelector">ItemsSelector</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ItemsSourceProperty" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsSourceProperty">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsSourceProperty.html">ItemsSourceProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsSource.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ItemsSource">ItemsSource</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_SelectorStyleProperty" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.SelectorStyleProperty">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.SelectorStyleProperty.html">SelectorStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.SelectorStyle.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_SelectorStyle">SelectorStyle</a> dependency property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_AvailableEditors" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.AvailableEditors">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.AvailableEditors.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_AvailableEditors">AvailableEditors</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the available editors for the CollectionEditorControl.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_CanUserAddItems" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserAddItems">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserAddItems.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_CanUserAddItems">CanUserAddItems</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the user can add items to the edited collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_CanUserRemoveItems" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserRemoveItems">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserRemoveItems.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_CanUserRemoveItems">CanUserRemoveItems</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the user can remove items from the edited collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_CanUserSortItems" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserSortItems">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.CanUserSortItems.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_CanUserSortItems">CanUserSortItems</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the user can sort items in the edited collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_EditorStyle" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.EditorStyle">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.EditorStyle.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_EditorStyle">EditorStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style applied to the collection editor's PropertyGrid.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ItemsEditor" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsEditor">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsEditor.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ItemsEditor">ItemsEditor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the C1PropertyGrid used to edit the properties of the currently selected item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ItemsSelector" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsSelector">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsSelector.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ItemsSelector">ItemsSelector</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the ListBox used to show the list of items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ItemsSource" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsSource">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ItemsSource.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ItemsSource">ItemsSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the list to be edited by the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_MethodAttributes" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.MethodAttributes">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.MethodAttributes.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_MethodAttributes">MethodAttributes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the method attributes for the CollectionEditorControl.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_PropertyAttributes" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.PropertyAttributes">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.PropertyAttributes.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_PropertyAttributes">PropertyAttributes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the property attributes for the CollectionEditorControl.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_SelectorStyle" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.SelectorStyle">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.SelectorStyle.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_SelectorStyle">SelectorStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style applied to the advanced editor's ListBox.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_OnApplyTemplate" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.OnApplyTemplate.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.html">CollectionEditorControl</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ReloadItems" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ReloadItems">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ReloadItems.html#C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ReloadItems">ReloadItems()</a>
        </td>
        <td class="markdown level1 summary"><p>Reloads the collection items in the control.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ValueChanged" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ValueChanged">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ValueChanged.html">ValueChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Fired when the bound value of the editor has changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Extended_PropertyGrid_CollectionEditorControl_ValueChanging" data-uid="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ValueChanging">
          <a class="xref" href="C1.WPF.Extended.PropertyGrid.CollectionEditorControl.ValueChanging.html">ValueChanging</a>
        </td>
        <td class="markdown level1 summary"><p>Fired before the bound value is changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
