# C1.WPF.PropertyGrid.CollectionEditorControl

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_PropertyGrid_CollectionEditorControl" data-uid="C1.WPF.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.media.visual">Visual</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level5"><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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.PropertyGrid.html">C1.WPF.PropertyGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PropertyGrid.dll</h6>
  <h5 id="C1_WPF_PropertyGrid_CollectionEditorControl_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[StyleTypedProperty(Property = &quot;EditorStyle&quot;, StyleTargetType = typeof(C1PropertyGrid))]
[StyleTypedProperty(Property = &quot;SelectorStyle&quot;, StyleTargetType = typeof(ListBox))]
[TemplatePart(Name = &quot;ItemsEditor&quot;, Type = typeof(C1PropertyGrid))]
[TemplatePart(Name = &quot;ItemsSelector&quot;, Type = typeof(C1ListView))]
[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))]
public class CollectionEditorControl : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;StyleTypedProperty(Property:=&quot;EditorStyle&quot;, StyleTargetType:=GetType(C1PropertyGrid))&gt;
&lt;StyleTypedProperty(Property:=&quot;SelectorStyle&quot;, StyleTargetType:=GetType(ListBox))&gt;
&lt;TemplatePart(Name:=&quot;ItemsEditor&quot;, Type:=GetType(C1PropertyGrid))&gt;
&lt;TemplatePart(Name:=&quot;ItemsSelector&quot;, Type:=GetType(C1ListView))&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;
Public Class CollectionEditorControl
    Inherits Control
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable</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_PropertyGrid_CollectionEditorControl__ctor" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.#ctor">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.-ctor.html#C1_WPF_PropertyGrid_CollectionEditorControl__ctor">CollectionEditorControl()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.html">CollectionEditorControl</a> class.</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_PropertyGrid_CollectionEditorControl_CanUserAddItemsProperty" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserAddItemsProperty">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserAddItemsProperty.html">CanUserAddItemsProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserAddItems.html#C1_WPF_PropertyGrid_CollectionEditorControl_CanUserAddItems">CanUserAddItems</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_CanUserRemoveItemsProperty" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserRemoveItemsProperty">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserRemoveItemsProperty.html">CanUserRemoveItemsProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserRemoveItems.html#C1_WPF_PropertyGrid_CollectionEditorControl_CanUserRemoveItems">CanUserRemoveItems</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_CanUserSortItemsProperty" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserSortItemsProperty">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserSortItemsProperty.html">CanUserSortItemsProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserSortItems.html#C1_WPF_PropertyGrid_CollectionEditorControl_CanUserSortItems">CanUserSortItems</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_EditorStyleProperty" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.EditorStyleProperty">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.EditorStyleProperty.html">EditorStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.EditorStyle.html#C1_WPF_PropertyGrid_CollectionEditorControl_EditorStyle">EditorStyle</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_ItemsEditorProperty" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsEditorProperty">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsEditorProperty.html">ItemsEditorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsEditor.html#C1_WPF_PropertyGrid_CollectionEditorControl_ItemsEditor">ItemsEditor</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_ItemsSelectorProperty" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsSelectorProperty">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsSelectorProperty.html">ItemsSelectorProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsSelector.html#C1_WPF_PropertyGrid_CollectionEditorControl_ItemsSelector">ItemsSelector</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_ItemsSourceProperty" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsSourceProperty">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsSourceProperty.html">ItemsSourceProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsSource.html#C1_WPF_PropertyGrid_CollectionEditorControl_ItemsSource">ItemsSource</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_SelectorStyleProperty" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.SelectorStyleProperty">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.SelectorStyleProperty.html">SelectorStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.SelectorStyle.html#C1_WPF_PropertyGrid_CollectionEditorControl_SelectorStyle">SelectorStyle</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_ShowResetButtonProperty" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.ShowResetButtonProperty">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.ShowResetButtonProperty.html">ShowResetButtonProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.ShowResetButton.html#C1_WPF_PropertyGrid_CollectionEditorControl_ShowResetButton">ShowResetButton</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_PropertyGrid_CollectionEditorControl_AvailableEditors" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.AvailableEditors">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.AvailableEditors.html#C1_WPF_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_PropertyGrid_CollectionEditorControl_CanUserAddItems" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserAddItems">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserAddItems.html#C1_WPF_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_PropertyGrid_CollectionEditorControl_CanUserRemoveItems" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserRemoveItems">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserRemoveItems.html#C1_WPF_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_PropertyGrid_CollectionEditorControl_CanUserSortItems" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserSortItems">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.CanUserSortItems.html#C1_WPF_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_PropertyGrid_CollectionEditorControl_DataCollection" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.DataCollection">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.DataCollection.html#C1_WPF_PropertyGrid_CollectionEditorControl_DataCollection">DataCollection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <span class="xref">C1.DataCollection.IDataCollection&lt;&gt;</span> generated from <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsSource.html#C1_WPF_PropertyGrid_CollectionEditorControl_ItemsSource">ItemsSource</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_EditorStyle" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.EditorStyle">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.EditorStyle.html#C1_WPF_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_PropertyGrid_CollectionEditorControl_IsDisposed" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.IsDisposed">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.IsDisposed.html#C1_WPF_PropertyGrid_CollectionEditorControl_IsDisposed">IsDisposed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this instance is disposed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_ItemsEditor" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsEditor">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsEditor.html#C1_WPF_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_PropertyGrid_CollectionEditorControl_ItemsSelector" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsSelector">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsSelector.html#C1_WPF_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_PropertyGrid_CollectionEditorControl_ItemsSource" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsSource">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.ItemsSource.html#C1_WPF_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_PropertyGrid_CollectionEditorControl_PropertyAttributes" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.PropertyAttributes">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.PropertyAttributes.html#C1_WPF_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_PropertyGrid_CollectionEditorControl_SelectorStyle" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.SelectorStyle">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.SelectorStyle.html#C1_WPF_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>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_ShowResetButton" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.ShowResetButton">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.ShowResetButton.html#C1_WPF_PropertyGrid_CollectionEditorControl_ShowResetButton">ShowResetButton</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the reset button is shown in the properties editor.</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_PropertyGrid_CollectionEditorControl_Dispose" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.Dispose">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.Dispose.html#C1_WPF_PropertyGrid_CollectionEditorControl_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_Dispose_System_Boolean_" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.Dispose.html#C1_WPF_PropertyGrid_CollectionEditorControl_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_Finalize" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.Finalize">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.Finalize.html#C1_WPF_PropertyGrid_CollectionEditorControl_Finalize">Finalize()</a>
        </td>
        <td class="markdown level1 summary"><p>Finalizes this instance of the <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.html">CollectionEditorControl</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PropertyGrid_CollectionEditorControl_OnApplyTemplate" data-uid="C1.WPF.PropertyGrid.CollectionEditorControl.OnApplyTemplate">
          <a class="xref" href="C1.WPF.PropertyGrid.CollectionEditorControl.OnApplyTemplate.html#C1_WPF_PropertyGrid_CollectionEditorControl_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
