# C1.WPF.Docking.PreviewAdorner

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Docking_PreviewAdorner" data-uid="C1.WPF.Docking.PreviewAdorner" class="text-break">PreviewAdorner Class
</h1>
  <div class="markdown level0 summary"><p>To show the line preview when C1DockSplitter drag event</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.media.visual">Visual</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.documents.adorner">Adorner</a></div>
    <div class="level5"><span class="xref">PreviewAdorner</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>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Docking.html">C1.WPF.Docking</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Docking.dll</h6>
  <h5 id="C1_WPF_Docking_PreviewAdorner_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PreviewAdorner : Adorner, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PreviewAdorner
    Inherits Adorner
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</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_Docking_PreviewAdorner__ctor_System_Windows_UIElement_" data-uid="C1.WPF.Docking.PreviewAdorner.#ctor(System.Windows.UIElement)">
          <a class="xref" href="C1.WPF.Docking.PreviewAdorner.-ctor.html#C1_WPF_Docking_PreviewAdorner__ctor_System_Windows_UIElement_">PreviewAdorner(UIElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies by default</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_Docking_PreviewAdorner_IsHorizontal" data-uid="C1.WPF.Docking.PreviewAdorner.IsHorizontal">
          <a class="xref" href="C1.WPF.Docking.PreviewAdorner.IsHorizontal.html#C1_WPF_Docking_PreviewAdorner_IsHorizontal">IsHorizontal</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies Direction of preview</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Docking_PreviewAdorner_Left" data-uid="C1.WPF.Docking.PreviewAdorner.Left">
          <a class="xref" href="C1.WPF.Docking.PreviewAdorner.Left.html#C1_WPF_Docking_PreviewAdorner_Left">Left</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies Left position of Horizontal preview</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Docking_PreviewAdorner_Top" data-uid="C1.WPF.Docking.PreviewAdorner.Top">
          <a class="xref" href="C1.WPF.Docking.PreviewAdorner.Top.html#C1_WPF_Docking_PreviewAdorner_Top">Top</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies Top position of Vertical preview</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_Docking_PreviewAdorner_OnRender_System_Windows_Media_DrawingContext_" data-uid="C1.WPF.Docking.PreviewAdorner.OnRender(System.Windows.Media.DrawingContext)">
          <a class="xref" href="C1.WPF.Docking.PreviewAdorner.OnRender.html#C1_WPF_Docking_PreviewAdorner_OnRender_System_Windows_Media_DrawingContext_">OnRender(DrawingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Draw a rectangle to show preview</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
