# C1.WPF.C1ListViewerItem

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_C1ListViewerItem" data-uid="C1.WPF.C1ListViewerItem" class="text-break">C1ListViewerItem Class
</h1>
  <div class="markdown level0 summary"><p>Visual element used inside a <a class="xref" href="C1.WPF.C1ListViewer.html">C1ListViewer</a>.</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.contentcontrol">ContentControl</a></div>
    <div class="level8"><span class="xref">C1ListViewerItem</span></div>
      <div class="level9"><a class="xref" href="C1.WPF.C1ListBoxItem.html">C1ListBoxItem</a></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>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.html">C1.WPF</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.4.6.2.dll</h6>
  <h5 id="C1_WPF_C1ListViewerItem_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplateVisualState(Name = &quot;Preview&quot;, GroupName = &quot;PreviewStates&quot;)]
[TemplateVisualState(Name = &quot;Full&quot;, GroupName = &quot;PreviewStates&quot;)]
[TemplateVisualState(Name = &quot;Normal&quot;, GroupName = &quot;CommonStates&quot;)]
[TemplateVisualState(Name = &quot;Disabled&quot;, GroupName = &quot;CommonStates&quot;)]
public class C1ListViewerItem : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplateVisualState(Name:=&quot;Preview&quot;, GroupName:=&quot;PreviewStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Full&quot;, GroupName:=&quot;PreviewStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Normal&quot;, GroupName:=&quot;CommonStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Disabled&quot;, GroupName:=&quot;CommonStates&quot;)&gt;
Public Class C1ListViewerItem
    Inherits ContentControl
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</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_C1ListViewerItem__ctor" data-uid="C1.WPF.C1ListViewerItem.#ctor">
          <a class="xref" href="C1.WPF.C1ListViewerItem.-ctor.html#C1_WPF_C1ListViewerItem__ctor">C1ListViewerItem()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.C1ListViewerItem.html">C1ListViewerItem</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_C1ListViewerItem_PreviewContentProperty" data-uid="C1.WPF.C1ListViewerItem.PreviewContentProperty">
          <a class="xref" href="C1.WPF.C1ListViewerItem.PreviewContentProperty.html">PreviewContentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.C1ListViewerItem.PreviewContent.html#C1_WPF_C1ListViewerItem_PreviewContent">PreviewContent</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1ListViewerItem_PreviewContentTemplateProperty" data-uid="C1.WPF.C1ListViewerItem.PreviewContentTemplateProperty">
          <a class="xref" href="C1.WPF.C1ListViewerItem.PreviewContentTemplateProperty.html">PreviewContentTemplateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.C1ListViewerItem.PreviewContentTemplate.html#C1_WPF_C1ListViewerItem_PreviewContentTemplate">PreviewContentTemplate</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1ListViewerItem_StateProperty" data-uid="C1.WPF.C1ListViewerItem.StateProperty">
          <a class="xref" href="C1.WPF.C1ListViewerItem.StateProperty.html">StateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.C1ListViewerItem.State.html#C1_WPF_C1ListViewerItem_State">State</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_C1ListViewerItem_PreviewContent" data-uid="C1.WPF.C1ListViewerItem.PreviewContent">
          <a class="xref" href="C1.WPF.C1ListViewerItem.PreviewContent.html#C1_WPF_C1ListViewerItem_PreviewContent">PreviewContent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the content of the preview state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1ListViewerItem_PreviewContentTemplate" data-uid="C1.WPF.C1ListViewerItem.PreviewContentTemplate">
          <a class="xref" href="C1.WPF.C1ListViewerItem.PreviewContentTemplate.html#C1_WPF_C1ListViewerItem_PreviewContentTemplate">PreviewContentTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the DataTemplate used when in preview state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1ListViewerItem_State" data-uid="C1.WPF.C1ListViewerItem.State">
          <a class="xref" href="C1.WPF.C1ListViewerItem.State.html#C1_WPF_C1ListViewerItem_State">State</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the state of the item, which can be Preview or Full.</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_C1ListViewerItem_ChangeVisualStateCommon_System_Boolean_" data-uid="C1.WPF.C1ListViewerItem.ChangeVisualStateCommon(System.Boolean)">
          <a class="xref" href="C1.WPF.C1ListViewerItem.ChangeVisualStateCommon.html#C1_WPF_C1ListViewerItem_ChangeVisualStateCommon_System_Boolean_">ChangeVisualStateCommon(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Updates the current visual state of the Common visual state group to match the object's properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1ListViewerItem_ChangeVisualStatePreview_System_Boolean_" data-uid="C1.WPF.C1ListViewerItem.ChangeVisualStatePreview(System.Boolean)">
          <a class="xref" href="C1.WPF.C1ListViewerItem.ChangeVisualStatePreview.html#C1_WPF_C1ListViewerItem_ChangeVisualStatePreview_System_Boolean_">ChangeVisualStatePreview(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Updates the current visual state of the Preview visual state group to match the object's properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1ListViewerItem_OnApplyTemplate" data-uid="C1.WPF.C1ListViewerItem.OnApplyTemplate">
          <a class="xref" href="C1.WPF.C1ListViewerItem.OnApplyTemplate.html#C1_WPF_C1ListViewerItem_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.C1ListViewerItem.html">C1ListViewerItem</a> control when a new template is applied.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="C1.WPF.Extensions.FindParent.html#C1_WPF_Extensions_FindParent__1_System_Windows_FrameworkElement_">Extensions.FindParent&lt;T&gt;(FrameworkElement)</a>
  </div>
  <div>
      <a class="xref" href="C1.WPF.Extensions.GetAllParents.html#C1_WPF_Extensions_GetAllParents_System_Windows_FrameworkElement_">Extensions.GetAllParents(FrameworkElement)</a>
  </div>
  <div>
      <a class="xref" href="C1.WPF.Extensions.GetVisualStateGroup.html#C1_WPF_Extensions_GetVisualStateGroup_System_Windows_FrameworkElement_System_String_">Extensions.GetVisualStateGroup(FrameworkElement, string)</a>
  </div>
  <div>
      <a class="xref" href="C1.WPF.Extensions.SetBinding.html#C1_WPF_Extensions_SetBinding__1_System_Windows_FrameworkElement_System_Windows_DependencyProperty___0_System_Linq_Expressions_Expression_System_Func___0_System_Object___">Extensions.SetBinding&lt;T&gt;(FrameworkElement, DependencyProperty, T, Expression&lt;Func&lt;T, object&gt;&gt;)</a>
  </div>
  <div>
      <a class="xref" href="C1.WPF.Extensions.SetBinding.html#C1_WPF_Extensions_SetBinding__1_System_Windows_FrameworkElement_System_Windows_DependencyProperty___0_System_Linq_Expressions_Expression_System_Func___0_System_Object___System_Windows_Data_IValueConverter_">Extensions.SetBinding&lt;T&gt;(FrameworkElement, DependencyProperty, T, Expression&lt;Func&lt;T, object&gt;&gt;, IValueConverter)</a>
  </div>
  <div>
      <a class="xref" href="C1.WPF.Extensions.C1TransformToVisual.html#C1_WPF_Extensions_C1TransformToVisual_System_Windows_UIElement_System_Windows_UIElement_">Extensions.C1TransformToVisual(UIElement, UIElement)</a>
  </div>

</div>
