# C1.WinUI.Input.PopupUtil

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WinUI_Input_PopupUtil" data-uid="C1.WinUI.Input.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.WinUI.Input.html">C1.WinUI.Input</a></h6>
  <h6><strong>Assembly</strong>: C1.WinUI.Input.dll</h6>
  <h5 id="C1_WinUI_Input_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_WinUI_Input_PopupUtil_GetPosition_Microsoft_UI_Xaml_UIElement_Windows_Foundation_Point_" data-uid="C1.WinUI.Input.PopupUtil.GetPosition(Microsoft.UI.Xaml.UIElement,Windows.Foundation.Point)">
          <a class="xref" href="C1.WinUI.Input.PopupUtil.GetPosition.html#C1_WinUI_Input_PopupUtil_GetPosition_Microsoft_UI_Xaml_UIElement_Windows_Foundation_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_WinUI_Input_PopupUtil_Position_Microsoft_UI_Xaml_Controls_Primitives_Popup_C1_WinUI_Input_Anchor_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_" data-uid="C1.WinUI.Input.PopupUtil.Position(Microsoft.UI.Xaml.Controls.Primitives.Popup,C1.WinUI.Input.Anchor,Microsoft.UI.Xaml.FrameworkElement,C1.WinUI.Input.Anchor)">
          <a class="xref" href="C1.WinUI.Input.PopupUtil.Position.html#C1_WinUI_Input_PopupUtil_Position_Microsoft_UI_Xaml_Controls_Primitives_Popup_C1_WinUI_Input_Anchor_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_">Position(Popup, Anchor, FrameworkElement, Anchor)</a>
        </td>
        <td class="markdown level1 summary"><p>Positions a <span class="xref">Microsoft.UI.Xaml.Controls.Primitives.Popup</span> so that the specified point in the Popup matches the specified point of a FrameworkElement.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Input_PopupUtil_Position_Microsoft_UI_Xaml_Controls_Primitives_Popup_Windows_Foundation_Point_" data-uid="C1.WinUI.Input.PopupUtil.Position(Microsoft.UI.Xaml.Controls.Primitives.Popup,Windows.Foundation.Point)">
          <a class="xref" href="C1.WinUI.Input.PopupUtil.Position.html#C1_WinUI_Input_PopupUtil_Position_Microsoft_UI_Xaml_Controls_Primitives_Popup_Windows_Foundation_Point_">Position(Popup, Point)</a>
        </td>
        <td class="markdown level1 summary"><p>Positions a <span class="xref">Microsoft.UI.Xaml.Controls.Primitives.Popup</span> in a specified absolute point.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Input_PopupUtil_TestPosition_Microsoft_UI_Xaml_Controls_Primitives_Popup_C1_WinUI_Input_Anchor_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_" data-uid="C1.WinUI.Input.PopupUtil.TestPosition(Microsoft.UI.Xaml.Controls.Primitives.Popup,C1.WinUI.Input.Anchor,Microsoft.UI.Xaml.FrameworkElement,C1.WinUI.Input.Anchor)">
          <a class="xref" href="C1.WinUI.Input.PopupUtil.TestPosition.html#C1_WinUI_Input_PopupUtil_TestPosition_Microsoft_UI_Xaml_Controls_Primitives_Popup_C1_WinUI_Input_Anchor_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_">TestPosition(Popup, Anchor, FrameworkElement, Anchor)</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the position of a <span class="xref">Microsoft.UI.Xaml.Controls.Primitives.Popup</span> so that the specified point in the Popup matches the specified point of a FrameworkElement.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Input_PopupUtil_TestPosition_Microsoft_UI_Xaml_Controls_Primitives_Popup_C1_WinUI_Input_Anchor_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_System_Double_System_Double_" data-uid="C1.WinUI.Input.PopupUtil.TestPosition(Microsoft.UI.Xaml.Controls.Primitives.Popup,C1.WinUI.Input.Anchor,Microsoft.UI.Xaml.FrameworkElement,C1.WinUI.Input.Anchor,System.Double,System.Double)">
          <a class="xref" href="C1.WinUI.Input.PopupUtil.TestPosition.html#C1_WinUI_Input_PopupUtil_TestPosition_Microsoft_UI_Xaml_Controls_Primitives_Popup_C1_WinUI_Input_Anchor_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_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 <span class="xref">Microsoft.UI.Xaml.Controls.Primitives.Popup</span> so that the specified point in the Popup matches the specified point of a FrameworkElement.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Input_PopupUtil_TestPosition_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_System_Double_System_Double_" data-uid="C1.WinUI.Input.PopupUtil.TestPosition(Microsoft.UI.Xaml.FrameworkElement,C1.WinUI.Input.Anchor,Microsoft.UI.Xaml.FrameworkElement,C1.WinUI.Input.Anchor,System.Double,System.Double)">
          <a class="xref" href="C1.WinUI.Input.PopupUtil.TestPosition.html#C1_WinUI_Input_PopupUtil_TestPosition_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_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 <span class="xref">Microsoft.UI.Xaml.FrameworkElement</span> so that the specified point in the FrameworkElement matches the specified point of another FrameworkElement.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Input_PopupUtil_TestPosition_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_Windows_Foundation_Point_System_Double_System_Double_" data-uid="C1.WinUI.Input.PopupUtil.TestPosition(Microsoft.UI.Xaml.FrameworkElement,C1.WinUI.Input.Anchor,Microsoft.UI.Xaml.FrameworkElement,C1.WinUI.Input.Anchor,Windows.Foundation.Point,System.Double,System.Double)">
          <a class="xref" href="C1.WinUI.Input.PopupUtil.TestPosition.html#C1_WinUI_Input_PopupUtil_TestPosition_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_Windows_Foundation_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 <span class="xref">Microsoft.UI.Xaml.FrameworkElement</span> so that the specified point in the FrameworkElement matches the specified point of another FrameworkElement.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Input_PopupUtil_TestPosition_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_Windows_Foundation_Point_System_Double_System_Double_Microsoft_UI_Xaml_FlowDirection_" data-uid="C1.WinUI.Input.PopupUtil.TestPosition(Microsoft.UI.Xaml.FrameworkElement,C1.WinUI.Input.Anchor,Microsoft.UI.Xaml.FrameworkElement,C1.WinUI.Input.Anchor,Windows.Foundation.Point,System.Double,System.Double,Microsoft.UI.Xaml.FlowDirection)">
          <a class="xref" href="C1.WinUI.Input.PopupUtil.TestPosition.html#C1_WinUI_Input_PopupUtil_TestPosition_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_Microsoft_UI_Xaml_FrameworkElement_C1_WinUI_Input_Anchor_Windows_Foundation_Point_System_Double_System_Double_Microsoft_UI_Xaml_FlowDirection_">TestPosition(FrameworkElement, Anchor, FrameworkElement, Anchor, Point, double, double, FlowDirection)</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the position of a <span class="xref">Microsoft.UI.Xaml.FrameworkElement</span> so that the specified point in the FrameworkElement matches the specified point of another FrameworkElement.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
