# C1.WPF.Schedule.AppointmentWrapPanel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Schedule_AppointmentWrapPanel" data-uid="C1.WPF.Schedule.AppointmentWrapPanel" class="text-break">AppointmentWrapPanel Class
</h1>
  <div class="markdown level0 summary"><p>Positions child elements in sequential position from left to right,
breaking content to the next line at the edge of the containing box.
Subsequent ordering happens sequentially from top to bottom or from right to left,
depending on the value of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.orientation">Orientation</a> property.
If <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.orientation">Orientation</a> property is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.orientation#system-windows-controls-orientation-vertical">Vertical</a>
this panel behaves as the base class.
If <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.orientation">Orientation</a> property is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.orientation#system-windows-controls-orientation-horizontal">Horizontal</a>
then <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.html">AppointmentWrapPanel</a> tries to position child elements in
available space. For example, it doesn't wrap the child to the next line if
the next line invisible. Instead, it shows as much as possible in
the last visible line.
When user clicks on the panel it tries to find and focus child element
with x:Name=&quot;PART_Subject&quot;. It is used for switching appointment element
into in-place editing mode.</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.controls.panel">Panel</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.wrappanel">WrapPanel</a></div>
    <div class="level6"><span class="xref">AppointmentWrapPanel</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><span class="xref">IWeakEventListener</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Schedule.html">C1.WPF.Schedule</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Schedule.dll</h6>
  <h5 id="C1_WPF_Schedule_AppointmentWrapPanel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;PART_Subject&quot;, Type = typeof(TextBox))]
public class AppointmentWrapPanel : WrapPanel, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IWeakEventListener</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;PART_Subject&quot;, Type:=GetType(TextBox))&gt;
Public Class AppointmentWrapPanel
    Inherits WrapPanel
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IWeakEventListener</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_Schedule_AppointmentWrapPanel__ctor" data-uid="C1.WPF.Schedule.AppointmentWrapPanel.#ctor">
          <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.-ctor.html#C1_WPF_Schedule_AppointmentWrapPanel__ctor">AppointmentWrapPanel()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the new instance of the <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.html">AppointmentWrapPanel</a> class.</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_Schedule_AppointmentWrapPanel_DockLastChildToEndProperty" data-uid="C1.WPF.Schedule.AppointmentWrapPanel.DockLastChildToEndProperty">
          <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.DockLastChildToEndProperty.html">DockLastChildToEndProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.DockLastChildToEnd.html#C1_WPF_Schedule_AppointmentWrapPanel_DockLastChildToEnd">DockLastChildToEnd</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_AppointmentWrapPanel_IsReadOnlyProperty" data-uid="C1.WPF.Schedule.AppointmentWrapPanel.IsReadOnlyProperty">
          <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.IsReadOnlyProperty.html">IsReadOnlyProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.IsReadOnly.html#C1_WPF_Schedule_AppointmentWrapPanel_IsReadOnly">IsReadOnly</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_Schedule_AppointmentWrapPanel_DockLastChildToEnd" data-uid="C1.WPF.Schedule.AppointmentWrapPanel.DockLastChildToEnd">
          <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.DockLastChildToEnd.html#C1_WPF_Schedule_AppointmentWrapPanel_DockLastChildToEnd">DockLastChildToEnd</a>
        </td>
        <td class="markdown level1 summary"><p>The DockLastChildToEnd property determines whether the last child element should be docked
to the bottom right corner of the <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.html">AppointmentWrapPanel</a>.
The default value is False. This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_AppointmentWrapPanel_IsReadOnly" data-uid="C1.WPF.Schedule.AppointmentWrapPanel.IsReadOnly">
          <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.IsReadOnly.html#C1_WPF_Schedule_AppointmentWrapPanel_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value that indicates whether
the <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.html">AppointmentWrapPanel</a> is read-only to a user interacting with the control.
This is a dependency 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="C1_WPF_Schedule_AppointmentWrapPanel_ArrangeOverride_System_Windows_Size_" data-uid="C1.WPF.Schedule.AppointmentWrapPanel.ArrangeOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.ArrangeOverride.html#C1_WPF_Schedule_AppointmentWrapPanel_ArrangeOverride_System_Windows_Size_">ArrangeOverride(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Arranges the content of a <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.html">AppointmentWrapPanel</a> element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_AppointmentWrapPanel_MeasureOverride_System_Windows_Size_" data-uid="C1.WPF.Schedule.AppointmentWrapPanel.MeasureOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.MeasureOverride.html#C1_WPF_Schedule_AppointmentWrapPanel_MeasureOverride_System_Windows_Size_">MeasureOverride(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Measures the child elements of a <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.html">AppointmentWrapPanel</a> in anticipation
of arranging them during the <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.ArrangeOverride.html#C1_WPF_Schedule_AppointmentWrapPanel_ArrangeOverride_System_Windows_Size_">ArrangeOverride(Size)</a> pass.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_AppointmentWrapPanel_OnKeyUp_System_Windows_Input_KeyEventArgs_" data-uid="C1.WPF.Schedule.AppointmentWrapPanel.OnKeyUp(System.Windows.Input.KeyEventArgs)">
          <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.OnKeyUp.html#C1_WPF_Schedule_AppointmentWrapPanel_OnKeyUp_System_Windows_Input_KeyEventArgs_">OnKeyUp(KeyEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_AppointmentWrapPanel_OnMouseLeave_System_Windows_Input_MouseEventArgs_" data-uid="C1.WPF.Schedule.AppointmentWrapPanel.OnMouseLeave(System.Windows.Input.MouseEventArgs)">
          <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.OnMouseLeave.html#C1_WPF_Schedule_AppointmentWrapPanel_OnMouseLeave_System_Windows_Input_MouseEventArgs_">OnMouseLeave(MouseEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_AppointmentWrapPanel_OnMouseLeftButtonDown_System_Windows_Input_MouseButtonEventArgs_" data-uid="C1.WPF.Schedule.AppointmentWrapPanel.OnMouseLeftButtonDown(System.Windows.Input.MouseButtonEventArgs)">
          <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.OnMouseLeftButtonDown.html#C1_WPF_Schedule_AppointmentWrapPanel_OnMouseLeftButtonDown_System_Windows_Input_MouseButtonEventArgs_">OnMouseLeftButtonDown(MouseButtonEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_AppointmentWrapPanel_OnToolTipOpening_System_Windows_Controls_ToolTipEventArgs_" data-uid="C1.WPF.Schedule.AppointmentWrapPanel.OnToolTipOpening(System.Windows.Controls.ToolTipEventArgs)">
          <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.OnToolTipOpening.html#C1_WPF_Schedule_AppointmentWrapPanel_OnToolTipOpening_System_Windows_Controls_ToolTipEventArgs_">OnToolTipOpening(ToolTipEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>If appointment text is not clipped, sets e.Handled to true in order to do not show tooltip.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_AppointmentWrapPanel_ReceiveWeakEvent_System_Type_System_Object_System_EventArgs_" data-uid="C1.WPF.Schedule.AppointmentWrapPanel.ReceiveWeakEvent(System.Type,System.Object,System.EventArgs)">
          <a class="xref" href="C1.WPF.Schedule.AppointmentWrapPanel.ReceiveWeakEvent.html#C1_WPF_Schedule_AppointmentWrapPanel_ReceiveWeakEvent_System_Type_System_Object_System_EventArgs_">ReceiveWeakEvent(Type, object, EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Receives events from the centralized event manager.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
