# C1.WPF.PopupUtil

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_PopupUtil" data-uid="C1.WPF.PopupUtil" class="text-break">PopupUtil Class
</h1>
  <div class="markdown level0 summary"><p>Utility methods for popups.</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">PopupUtil</span></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_PopupUtil_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class PopupUtil</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module PopupUtil</code></pre>
  </div>
  <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_PopupUtil_GetPosition_System_Windows_UIElement_System_Windows_Point_" data-uid="C1.WPF.PopupUtil.GetPosition(System.Windows.UIElement,System.Windows.Point)">
          <a class="xref" href="C1.WPF.PopupUtil.GetPosition.html#C1_WPF_PopupUtil_GetPosition_System_Windows_UIElement_System_Windows_Point_">GetPosition(UIElement, Point)</a>
        </td>
        <td class="markdown level1 summary"><p>return a absolute position according to the relative position of element</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PopupUtil_Position_System_Windows_Controls_Primitives_Popup_C1_WPF_Anchor_System_Windows_FrameworkElement_C1_WPF_Anchor_" data-uid="C1.WPF.PopupUtil.Position(System.Windows.Controls.Primitives.Popup,C1.WPF.Anchor,System.Windows.FrameworkElement,C1.WPF.Anchor)">
          <a class="xref" href="C1.WPF.PopupUtil.Position.html#C1_WPF_PopupUtil_Position_System_Windows_Controls_Primitives_Popup_C1_WPF_Anchor_System_Windows_FrameworkElement_C1_WPF_Anchor_">Position(Popup, Anchor, FrameworkElement, Anchor)</a>
        </td>
        <td class="markdown level1 summary"><p>Positions a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.popup">Popup</a> so that the specified point in the Popup matches the specified point of a FrameworkElement.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PopupUtil_Position_System_Windows_Controls_Primitives_Popup_System_Windows_Point_" data-uid="C1.WPF.PopupUtil.Position(System.Windows.Controls.Primitives.Popup,System.Windows.Point)">
          <a class="xref" href="C1.WPF.PopupUtil.Position.html#C1_WPF_PopupUtil_Position_System_Windows_Controls_Primitives_Popup_System_Windows_Point_">Position(Popup, Point)</a>
        </td>
        <td class="markdown level1 summary"><p>Positions a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.popup">Popup</a> in a specified absolute point.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PopupUtil_TestPosition_System_Windows_Controls_Primitives_Popup_C1_WPF_Anchor_System_Windows_FrameworkElement_C1_WPF_Anchor_" data-uid="C1.WPF.PopupUtil.TestPosition(System.Windows.Controls.Primitives.Popup,C1.WPF.Anchor,System.Windows.FrameworkElement,C1.WPF.Anchor)">
          <a class="xref" href="C1.WPF.PopupUtil.TestPosition.html#C1_WPF_PopupUtil_TestPosition_System_Windows_Controls_Primitives_Popup_C1_WPF_Anchor_System_Windows_FrameworkElement_C1_WPF_Anchor_">TestPosition(Popup, Anchor, FrameworkElement, Anchor)</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the position of a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.popup">Popup</a> so that the specified point in the Popup matches the specified point of a FrameworkElement.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PopupUtil_TestPosition_System_Windows_Controls_Primitives_Popup_C1_WPF_Anchor_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Double_System_Double_" data-uid="C1.WPF.PopupUtil.TestPosition(System.Windows.Controls.Primitives.Popup,C1.WPF.Anchor,System.Windows.FrameworkElement,C1.WPF.Anchor,System.Double,System.Double)">
          <a class="xref" href="C1.WPF.PopupUtil.TestPosition.html#C1_WPF_PopupUtil_TestPosition_System_Windows_Controls_Primitives_Popup_C1_WPF_Anchor_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Double_System_Double_">TestPosition(Popup, Anchor, FrameworkElement, Anchor, double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the position of a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.popup">Popup</a> so that the specified point in the Popup matches the specified point of a FrameworkElement.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PopupUtil_TestPosition_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Double_System_Double_" data-uid="C1.WPF.PopupUtil.TestPosition(System.Windows.FrameworkElement,C1.WPF.Anchor,System.Windows.FrameworkElement,C1.WPF.Anchor,System.Double,System.Double)">
          <a class="xref" href="C1.WPF.PopupUtil.TestPosition.html#C1_WPF_PopupUtil_TestPosition_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Double_System_Double_">TestPosition(FrameworkElement, Anchor, FrameworkElement, Anchor, double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the position of a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a> so that the specified point in the FrameworkElement matches the specified point of another FrameworkElement.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PopupUtil_TestPosition_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Windows_Point_System_Double_System_Double_" data-uid="C1.WPF.PopupUtil.TestPosition(System.Windows.FrameworkElement,C1.WPF.Anchor,System.Windows.FrameworkElement,C1.WPF.Anchor,System.Windows.Point,System.Double,System.Double)">
          <a class="xref" href="C1.WPF.PopupUtil.TestPosition.html#C1_WPF_PopupUtil_TestPosition_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Windows_Point_System_Double_System_Double_">TestPosition(FrameworkElement, Anchor, FrameworkElement, Anchor, Point, double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the position of a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a> so that the specified point in the FrameworkElement matches the specified point of another FrameworkElement.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_PopupUtil_TestPosition_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Windows_Point_System_Double_System_Double_System_Windows_FlowDirection_" data-uid="C1.WPF.PopupUtil.TestPosition(System.Windows.FrameworkElement,C1.WPF.Anchor,System.Windows.FrameworkElement,C1.WPF.Anchor,System.Windows.Point,System.Double,System.Double,System.Windows.FlowDirection)">
          <a class="xref" href="C1.WPF.PopupUtil.TestPosition.html#C1_WPF_PopupUtil_TestPosition_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Windows_FrameworkElement_C1_WPF_Anchor_System_Windows_Point_System_Double_System_Double_System_Windows_FlowDirection_">TestPosition(FrameworkElement, Anchor, FrameworkElement, Anchor, Point, double, double, FlowDirection)</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the position of a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a> so that the specified point in the FrameworkElement matches the specified point of another FrameworkElement.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
