# GrapeCity.ActiveReports.Framework.Behaviors.Behavior-1

## Content

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



  <h1 id="GrapeCity_ActiveReports_Framework_Behaviors_Behavior_1" data-uid="GrapeCity.ActiveReports.Framework.Behaviors.Behavior`1" class="text-break">Behavior&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Represents an abstract behavior implementation.</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"><span class="xref">Behavior&lt;T&gt;</span></div>
      <div class="level4"><a class="xref" href="GrapeCity.ActiveReports.Framework.Implementation.MapTreeSelectedItem.html">MapTreeSelectedItem</a></div>
      <div class="level4"><a class="xref" href="GrapeCity.ActiveReports.Framework.Implementation.ScrollBehavior.html">ScrollBehavior</a></div>
      <div class="level4"><a class="xref" href="GrapeCity.ActiveReports.Framework.Implementation.UpdateSourceOnKeyPress.html">UpdateSourceOnKeyPress</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.ActiveReports.Framework.Behaviors.IBehavior.html">IBehavior</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Framework.Behaviors.html">GrapeCity.ActiveReports.Framework.Behaviors</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Viewer.Wpf.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Framework_Behaviors_Behavior_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class Behavior&lt;T&gt; : DependencyObject, IBehavior where T : DependencyObject</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <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="GrapeCity_ActiveReports_Framework_Behaviors_Behavior_1__ctor" data-uid="GrapeCity.ActiveReports.Framework.Behaviors.Behavior`1.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.Framework.Behaviors.Behavior-1.-ctor.html#GrapeCity_ActiveReports_Framework_Behaviors_Behavior_1__ctor">Behavior()</a>
        </td>
        <td class="markdown level1 summary"></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="GrapeCity_ActiveReports_Framework_Behaviors_Behavior_1_HostObject" data-uid="GrapeCity.ActiveReports.Framework.Behaviors.Behavior`1.HostObject">
          <a class="xref" href="GrapeCity.ActiveReports.Framework.Behaviors.Behavior-1.HostObject.html#GrapeCity_ActiveReports_Framework_Behaviors_Behavior_1_HostObject">HostObject</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the object the behavior is attached to.</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_Behaviors_Behavior_1_Attach__0_" data-uid="GrapeCity.ActiveReports.Framework.Behaviors.Behavior`1.Attach(`0)">
          <a class="xref" href="GrapeCity.ActiveReports.Framework.Behaviors.Behavior-1.Attach.html#GrapeCity_ActiveReports_Framework_Behaviors_Behavior_1_Attach__0_">Attach(T)</a>
        </td>
        <td class="markdown level1 summary"><p>Attaches the behavior to specified host.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Framework_Behaviors_Behavior_1_Detach__0_" data-uid="GrapeCity.ActiveReports.Framework.Behaviors.Behavior`1.Detach(`0)">
          <a class="xref" href="GrapeCity.ActiveReports.Framework.Behaviors.Behavior-1.Detach.html#GrapeCity_ActiveReports_Framework_Behaviors_Behavior_1_Detach__0_">Detach(T)</a>
        </td>
        <td class="markdown level1 summary"><p>Detaches the behavior from specified host.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
