# GrapeCity.ActiveReports.Framework.Implementation.TreeViewHelper

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_Framework_Implementation_TreeViewHelper" data-uid="GrapeCity.ActiveReports.Framework.Implementation.TreeViewHelper" class="text-break">TreeViewHelper Class
</h1>
  <div class="markdown level0 summary"><p>Represents a helper class that provides improvements, hacks, and workarounds for <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.treeview">TreeView</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"><span class="xref">TreeViewHelper</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Framework.Implementation.html">GrapeCity.ActiveReports.Framework.Implementation</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Viewer.Wpf.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Framework_Implementation_TreeViewHelper_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class TreeViewHelper</code></pre>
  </div>
  <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="GrapeCity_ActiveReports_Framework_Implementation_TreeViewHelper_SelectedItemProperty" data-uid="GrapeCity.ActiveReports.Framework.Implementation.TreeViewHelper.SelectedItemProperty">
          <a class="xref" href="GrapeCity.ActiveReports.Framework.Implementation.TreeViewHelper.SelectedItemProperty.html">SelectedItemProperty</a>
        </td>
        <td class="markdown level1 summary"><p>This is a two-way replacement for the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.treeview">TreeView</a> <code>SelectedItem</code> property.</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="GrapeCity_ActiveReports_Framework_Implementation_TreeViewHelper_GetSelectedItem_System_Windows_DependencyObject_" data-uid="GrapeCity.ActiveReports.Framework.Implementation.TreeViewHelper.GetSelectedItem(System.Windows.DependencyObject)">
          <a class="xref" href="GrapeCity.ActiveReports.Framework.Implementation.TreeViewHelper.GetSelectedItem.html#GrapeCity_ActiveReports_Framework_Implementation_TreeViewHelper_GetSelectedItem_System_Windows_DependencyObject_">GetSelectedItem(DependencyObject)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the selected item.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Framework_Implementation_TreeViewHelper_SetSelectedItem_System_Windows_DependencyObject_System_Object_" data-uid="GrapeCity.ActiveReports.Framework.Implementation.TreeViewHelper.SetSelectedItem(System.Windows.DependencyObject,System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.Framework.Implementation.TreeViewHelper.SetSelectedItem.html#GrapeCity_ActiveReports_Framework_Implementation_TreeViewHelper_SetSelectedItem_System_Windows_DependencyObject_System_Object_">SetSelectedItem(DependencyObject, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the selected item.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
