# C1.WPF.PopupUtil.Position

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_PopupUtil_Position_" data-uid="C1.WPF.PopupUtil.Position*">Position Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_PopupUtil_Position_" data-uid="C1.WPF.PopupUtil.Position*"></a>
<h4 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)">Position(Popup, Anchor, FrameworkElement, Anchor)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Position(Popup popup, Anchor popupAnchor, FrameworkElement element, Anchor elementAnchor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Position(popup As Popup, popupAnchor As Anchor, element As FrameworkElement, elementAnchor As Anchor)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.popup">Popup</a></td>
      <td><span class="parametername">popup</span></td>
      <td><p>The popup to position.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.Anchor.html">Anchor</a></td>
      <td><span class="parametername">popupAnchor</span></td>
      <td><p>An <a class="xref" href="C1.WPF.Anchor.html">Anchor</a> value specifying the point in the Popup.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></td>
      <td><span class="parametername">element</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a> to use as reference.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.Anchor.html">Anchor</a></td>
      <td><span class="parametername">elementAnchor</span></td>
      <td><p>An <a class="xref" href="C1.WPF.Anchor.html">Anchor</a> value specifying the point in the FrameworkElement.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_PopupUtil_Position_" data-uid="C1.WPF.PopupUtil.Position*"></a>
<h4 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)">Position(Popup, Point)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Position(Popup popup, Point point)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Position(popup As Popup, point As Point)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.popup">Popup</a></td>
      <td><span class="parametername">popup</span></td>
      <td><p>The popup to position.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.point">Point</a></td>
      <td><span class="parametername">point</span></td>
      <td><p>The popup position.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
