# C1.WPF.Input.C1CheckList

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Input_C1CheckList" data-uid="C1.WPF.Input.C1CheckList" class="text-break">C1CheckList Class
</h1>
  <div class="markdown level0 summary"><p>A list-based control with optional check boxes for each item, different selection modes and ability to select/unselect all items.</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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.itemscontrol">ItemsControl</a></div>
    <div class="level8"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.selector">Selector</a></div>
    <div class="level9"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.listbox">ListBox</a></div>
    <div class="level10"><span class="xref">C1CheckList</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.windows.markup.iaddchild">IAddChild</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.icontainitemstorage">IContainItemStorage</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Input.html">C1.WPF.Input</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Input.4.6.2.dll</h6>
  <h5 id="C1_WPF_Input_C1CheckList_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[StyleTypedProperty(Property = &quot;ItemContainerStyle&quot;, StyleTargetType = typeof(C1CheckListItem))]
[TemplatePart(Name = &quot;Caption&quot;, Type = typeof(CheckBox))]
[TemplatePart(Name = &quot;ScrollViewer&quot;, Type = typeof(ScrollViewer))]
[TemplateVisualState(Name = &quot;ShowEnableCaption&quot;, GroupName = &quot;ShowCaptionStateStates&quot;)]
[TemplateVisualState(Name = &quot;ShowDisableCaption&quot;, GroupName = &quot;ShowCaptionStateStates&quot;)]
[TemplateVisualState(Name = &quot;HideCaption&quot;, GroupName = &quot;ShowCaptionStateStates&quot;)]
public class C1CheckList : ListBox, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;StyleTypedProperty(Property:=&quot;ItemContainerStyle&quot;, StyleTargetType:=GetType(C1CheckListItem))&gt;
&lt;TemplatePart(Name:=&quot;Caption&quot;, Type:=GetType(CheckBox))&gt;
&lt;TemplatePart(Name:=&quot;ScrollViewer&quot;, Type:=GetType(ScrollViewer))&gt;
&lt;TemplateVisualState(Name:=&quot;ShowEnableCaption&quot;, GroupName:=&quot;ShowCaptionStateStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;ShowDisableCaption&quot;, GroupName:=&quot;ShowCaptionStateStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;HideCaption&quot;, GroupName:=&quot;ShowCaptionStateStates&quot;)&gt;
Public Class C1CheckList
    Inherits ListBox
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage</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_Input_C1CheckList__ctor" data-uid="C1.WPF.Input.C1CheckList.#ctor">
          <a class="xref" href="C1.WPF.Input.C1CheckList.-ctor.html#C1_WPF_Input_C1CheckList__ctor">C1CheckList()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Input.C1CheckList.html">C1CheckList</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_Input_C1CheckList_CaptionStyleProperty" data-uid="C1.WPF.Input.C1CheckList.CaptionStyleProperty">
          <a class="xref" href="C1.WPF.Input.C1CheckList.CaptionStyleProperty.html">CaptionStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1CheckList.CaptionStyle.html#C1_WPF_Input_C1CheckList_CaptionStyle">CaptionStyle</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_CheckedMemberPathProperty" data-uid="C1.WPF.Input.C1CheckList.CheckedMemberPathProperty">
          <a class="xref" href="C1.WPF.Input.C1CheckList.CheckedMemberPathProperty.html">CheckedMemberPathProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1CheckList.CheckedMemberPath.html#C1_WPF_Input_C1CheckList_CheckedMemberPath">CheckedMemberPath</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_DisabledMemberPathProperty" data-uid="C1.WPF.Input.C1CheckList.DisabledMemberPathProperty">
          <a class="xref" href="C1.WPF.Input.C1CheckList.DisabledMemberPathProperty.html">DisabledMemberPathProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1CheckList.DisabledMemberPath.html#C1_WPF_Input_C1CheckList_DisabledMemberPath">DisabledMemberPath</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_MouseOverBrushProperty" data-uid="C1.WPF.Input.C1CheckList.MouseOverBrushProperty">
          <a class="xref" href="C1.WPF.Input.C1CheckList.MouseOverBrushProperty.html">MouseOverBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1CheckList.MouseOverBrush.html#C1_WPF_Input_C1CheckList_MouseOverBrush">MouseOverBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_SelectAllCaptionProperty" data-uid="C1.WPF.Input.C1CheckList.SelectAllCaptionProperty">
          <a class="xref" href="C1.WPF.Input.C1CheckList.SelectAllCaptionProperty.html">SelectAllCaptionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1CheckList.SelectAllCaption.html#C1_WPF_Input_C1CheckList_SelectAllCaption">SelectAllCaption</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_SelectedBackgroundProperty" data-uid="C1.WPF.Input.C1CheckList.SelectedBackgroundProperty">
          <a class="xref" href="C1.WPF.Input.C1CheckList.SelectedBackgroundProperty.html">SelectedBackgroundProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1CheckList.SelectedBackground.html#C1_WPF_Input_C1CheckList_SelectedBackground">SelectedBackground</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_ShowCheckBoxesProperty" data-uid="C1.WPF.Input.C1CheckList.ShowCheckBoxesProperty">
          <a class="xref" href="C1.WPF.Input.C1CheckList.ShowCheckBoxesProperty.html">ShowCheckBoxesProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1CheckList.ShowCheckBoxes.html#C1_WPF_Input_C1CheckList_ShowCheckBoxes">ShowCheckBoxes</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_ShowSelectAllProperty" data-uid="C1.WPF.Input.C1CheckList.ShowSelectAllProperty">
          <a class="xref" href="C1.WPF.Input.C1CheckList.ShowSelectAllProperty.html">ShowSelectAllProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1CheckList.ShowSelectAll.html#C1_WPF_Input_C1CheckList_ShowSelectAll">ShowSelectAll</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_UnSelectAllCaptionProperty" data-uid="C1.WPF.Input.C1CheckList.UnSelectAllCaptionProperty">
          <a class="xref" href="C1.WPF.Input.C1CheckList.UnSelectAllCaptionProperty.html">UnSelectAllCaptionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1CheckList.UnSelectAllCaption.html#C1_WPF_Input_C1CheckList_UnSelectAllCaption">UnSelectAllCaption</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_Input_C1CheckList_CaptionStyle" data-uid="C1.WPF.Input.C1CheckList.CaptionStyle">
          <a class="xref" href="C1.WPF.Input.C1CheckList.CaptionStyle.html#C1_WPF_Input_C1CheckList_CaptionStyle">CaptionStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a style used for caption CheckBox.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_CheckedMemberPath" data-uid="C1.WPF.Input.C1CheckList.CheckedMemberPath">
          <a class="xref" href="C1.WPF.Input.C1CheckList.CheckedMemberPath.html#C1_WPF_Input_C1CheckList_CheckedMemberPath">CheckedMemberPath</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the property used to control the checkboxes placed next to each item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_DisabledMemberPath" data-uid="C1.WPF.Input.C1CheckList.DisabledMemberPath">
          <a class="xref" href="C1.WPF.Input.C1CheckList.DisabledMemberPath.html#C1_WPF_Input_C1CheckList_DisabledMemberPath">DisabledMemberPath</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the property used to control the enable or disable status to each item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_MouseOverBrush" data-uid="C1.WPF.Input.C1CheckList.MouseOverBrush">
          <a class="xref" href="C1.WPF.Input.C1CheckList.MouseOverBrush.html#C1_WPF_Input_C1CheckList_MouseOverBrush">MouseOverBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to highlight the control when it has the mouse over.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_SelectAllCaption" data-uid="C1.WPF.Input.C1CheckList.SelectAllCaption">
          <a class="xref" href="C1.WPF.Input.C1CheckList.SelectAllCaption.html#C1_WPF_Input_C1CheckList_SelectAllCaption">SelectAllCaption</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the caption for checkbox when execute SelectAll.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_SelectedBackground" data-uid="C1.WPF.Input.C1CheckList.SelectedBackground">
          <a class="xref" href="C1.WPF.Input.C1CheckList.SelectedBackground.html#C1_WPF_Input_C1CheckList_SelectedBackground">SelectedBackground</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to highlight the control when it is selected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_ShowCheckBoxes" data-uid="C1.WPF.Input.C1CheckList.ShowCheckBoxes">
          <a class="xref" href="C1.WPF.Input.C1CheckList.ShowCheckBoxes.html#C1_WPF_Input_C1CheckList_ShowCheckBoxes">ShowCheckBoxes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether to show the checkboxes for items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_ShowSelectAll" data-uid="C1.WPF.Input.C1CheckList.ShowSelectAll">
          <a class="xref" href="C1.WPF.Input.C1CheckList.ShowSelectAll.html#C1_WPF_Input_C1CheckList_ShowSelectAll">ShowSelectAll</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether show select all UI or not.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_UnSelectAllCaption" data-uid="C1.WPF.Input.C1CheckList.UnSelectAllCaption">
          <a class="xref" href="C1.WPF.Input.C1CheckList.UnSelectAllCaption.html#C1_WPF_Input_C1CheckList_UnSelectAllCaption">UnSelectAllCaption</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the caption for checkbox when execute UnSelectAll.</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_Input_C1CheckList_ChangeVisualStateShowCaptionState_System_Boolean_" data-uid="C1.WPF.Input.C1CheckList.ChangeVisualStateShowCaptionState(System.Boolean)">
          <a class="xref" href="C1.WPF.Input.C1CheckList.ChangeVisualStateShowCaptionState.html#C1_WPF_Input_C1CheckList_ChangeVisualStateShowCaptionState_System_Boolean_">ChangeVisualStateShowCaptionState(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Updates the current visual state of the ShowCaptionState visual state group to match the object's properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_GetContainerForItemOverride" data-uid="C1.WPF.Input.C1CheckList.GetContainerForItemOverride">
          <a class="xref" href="C1.WPF.Input.C1CheckList.GetContainerForItemOverride.html#C1_WPF_Input_C1CheckList_GetContainerForItemOverride">GetContainerForItemOverride()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_IsItemItsOwnContainerOverride_System_Object_" data-uid="C1.WPF.Input.C1CheckList.IsItemItsOwnContainerOverride(System.Object)">
          <a class="xref" href="C1.WPF.Input.C1CheckList.IsItemItsOwnContainerOverride.html#C1_WPF_Input_C1CheckList_IsItemItsOwnContainerOverride_System_Object_">IsItemItsOwnContainerOverride(object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_OnApplyTemplate" data-uid="C1.WPF.Input.C1CheckList.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Input.C1CheckList.OnApplyTemplate.html#C1_WPF_Input_C1CheckList_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.Input.C1CheckList.html">C1CheckList</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_PrepareContainerForItemOverride_System_Windows_DependencyObject_System_Object_" data-uid="C1.WPF.Input.C1CheckList.PrepareContainerForItemOverride(System.Windows.DependencyObject,System.Object)">
          <a class="xref" href="C1.WPF.Input.C1CheckList.PrepareContainerForItemOverride.html#C1_WPF_Input_C1CheckList_PrepareContainerForItemOverride_System_Windows_DependencyObject_System_Object_">PrepareContainerForItemOverride(DependencyObject, object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_SelectAll" data-uid="C1.WPF.Input.C1CheckList.SelectAll">
          <a class="xref" href="C1.WPF.Input.C1CheckList.SelectAll.html#C1_WPF_Input_C1CheckList_SelectAll">SelectAll()</a>
        </td>
        <td class="markdown level1 summary"><p>Selects all the items in a <a class="xref" href="C1.WPF.Input.C1CheckList.html">C1CheckList</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1CheckList_UnselectAll" data-uid="C1.WPF.Input.C1CheckList.UnselectAll">
          <a class="xref" href="C1.WPF.Input.C1CheckList.UnselectAll.html#C1_WPF_Input_C1CheckList_UnselectAll">UnselectAll()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears all the selection in a <a class="xref" href="C1.WPF.Input.C1CheckList.html">C1CheckList</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
