# C1.WPF.C1TreeViewPanel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_C1TreeViewPanel" data-uid="C1.WPF.C1TreeViewPanel" class="text-break">C1TreeViewPanel Class
</h1>
  <div class="markdown level0 summary"><p>Virtualizing stack panel.</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.panel">Panel</a></div>
    <div class="level7"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.virtualizingpanel">VirtualizingPanel</a></div>
    <div class="level8"><span class="xref">C1TreeViewPanel</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>
  <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_C1TreeViewPanel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1TreeViewPanel : VirtualizingPanel, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1TreeViewPanel
    Inherits VirtualizingPanel
    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_C1TreeViewPanel__ctor" data-uid="C1.WPF.C1TreeViewPanel.#ctor">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.-ctor.html#C1_WPF_C1TreeViewPanel__ctor">C1TreeViewPanel()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.C1TreeViewPanel.html">C1TreeViewPanel</a> class.</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_C1TreeViewPanel_MeasureSize" data-uid="C1.WPF.C1TreeViewPanel.MeasureSize">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.MeasureSize.html#C1_WPF_C1TreeViewPanel_MeasureSize">MeasureSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the size used to measure the items in the MeasureOverride method call.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_Owner" data-uid="C1.WPF.C1TreeViewPanel.Owner">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.Owner.html#C1_WPF_C1TreeViewPanel_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the items control which is parent of this panel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_Padding" data-uid="C1.WPF.C1TreeViewPanel.Padding">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.Padding.html#C1_WPF_C1TreeViewPanel_Padding">Padding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the padding of the list of items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_ScrollViewer" data-uid="C1.WPF.C1TreeViewPanel.ScrollViewer">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.ScrollViewer.html#C1_WPF_C1TreeViewPanel_ScrollViewer">ScrollViewer</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the scroll viewer associated with this panel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_TreeView" data-uid="C1.WPF.C1TreeViewPanel.TreeView">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.TreeView.html#C1_WPF_C1TreeViewPanel_TreeView">TreeView</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the parent <a class="xref" href="C1.WPF.C1TreeView.html">C1TreeView</a> of this panel.</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_C1TreeViewPanel_AfterItemMeasure_System_Int32_System_Windows_Size_System_Boolean_" data-uid="C1.WPF.C1TreeViewPanel.AfterItemMeasure(System.Int32,System.Windows.Size,System.Boolean)">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.AfterItemMeasure.html#C1_WPF_C1TreeViewPanel_AfterItemMeasure_System_Int32_System_Windows_Size_System_Boolean_">AfterItemMeasure(int, Size, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Called after an item is measured in order to update scrolling structures.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_AfterItemPrepared_C1_WPF_C1TreeViewItem_" data-uid="C1.WPF.C1TreeViewPanel.AfterItemPrepared(C1.WPF.C1TreeViewItem)">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.AfterItemPrepared.html#C1_WPF_C1TreeViewPanel_AfterItemPrepared_C1_WPF_C1TreeViewItem_">AfterItemPrepared(C1TreeViewItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Called after the item was prepared to be shown in the panel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_ArrangeOverride_System_Windows_Size_" data-uid="C1.WPF.C1TreeViewPanel.ArrangeOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.ArrangeOverride.html#C1_WPF_C1TreeViewPanel_ArrangeOverride_System_Windows_Size_">ArrangeOverride(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_BeforeItemRecycled_C1_WPF_C1TreeViewItem_" data-uid="C1.WPF.C1TreeViewPanel.BeforeItemRecycled(C1.WPF.C1TreeViewItem)">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.BeforeItemRecycled.html#C1_WPF_C1TreeViewPanel_BeforeItemRecycled_C1_WPF_C1TreeViewItem_">BeforeItemRecycled(C1TreeViewItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Called before the item is recycled.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_BringIndexIntoView_System_Int32_" data-uid="C1.WPF.C1TreeViewPanel.BringIndexIntoView(System.Int32)">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.BringIndexIntoView.html#C1_WPF_C1TreeViewPanel_BringIndexIntoView_System_Int32_">BringIndexIntoView(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Bring the index into viewport.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_CalculateExtentSize" data-uid="C1.WPF.C1TreeViewPanel.CalculateExtentSize">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.CalculateExtentSize.html#C1_WPF_C1TreeViewPanel_CalculateExtentSize">CalculateExtentSize()</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the extent size which determine the size of the panel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_GetIndexAt_System_Windows_Point_" data-uid="C1.WPF.C1TreeViewPanel.GetIndexAt(System.Windows.Point)">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.GetIndexAt.html#C1_WPF_C1TreeViewPanel_GetIndexAt_System_Windows_Point_">GetIndexAt(Point)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the item index at the specified position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_MeasureOverride_System_Windows_Size_" data-uid="C1.WPF.C1TreeViewPanel.MeasureOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.MeasureOverride.html#C1_WPF_C1TreeViewPanel_MeasureOverride_System_Windows_Size_">MeasureOverride(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_OnClearChildren" data-uid="C1.WPF.C1TreeViewPanel.OnClearChildren">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.OnClearChildren.html#C1_WPF_C1TreeViewPanel_OnClearChildren">OnClearChildren()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the collection of child elements is cleared by the base <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.panel">Panel</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_OnItemsChanged_System_Object_System_Windows_Controls_Primitives_ItemsChangedEventArgs_" data-uid="C1.WPF.C1TreeViewPanel.OnItemsChanged(System.Object,System.Windows.Controls.Primitives.ItemsChangedEventArgs)">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.OnItemsChanged.html#C1_WPF_C1TreeViewPanel_OnItemsChanged_System_Object_System_Windows_Controls_Primitives_ItemsChangedEventArgs_">OnItemsChanged(object, ItemsChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.itemscontrol.items">Items</a> collection that is associated with the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.itemscontrol">ItemsControl</a> for this <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.panel">Panel</a> changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_C1TreeViewPanel_Refresh" data-uid="C1.WPF.C1TreeViewPanel.Refresh">
          <a class="xref" href="C1.WPF.C1TreeViewPanel.Refresh.html#C1_WPF_C1TreeViewPanel_Refresh">Refresh()</a>
        </td>
        <td class="markdown level1 summary"><p>Refreshes this instance by removing all the children and creating them again.</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>
