[]
Positions a Microsoft.UI.Xaml.Controls.Primitives.Popup so that the specified point in the Popup matches the specified point of a FrameworkElement.
public static void Position(Popup popup, Anchor popupAnchor, FrameworkElement element, Anchor elementAnchor)
Public Shared Sub Position(popup As Popup, popupAnchor As Anchor, element As FrameworkElement, elementAnchor As Anchor)
| Type | Name | Description |
|---|---|---|
| Popup | popup | The popup to position. |
| Anchor | popupAnchor | An Anchor value specifying the point in the Popup. |
| FrameworkElement | element | The Microsoft.UI.Xaml.FrameworkElement to use as reference. |
| Anchor | elementAnchor | An Anchor value specifying the point in the FrameworkElement. |
Positions a Microsoft.UI.Xaml.Controls.Primitives.Popup in a specified absolute point.
public static void Position(Popup popup, Point point)
Public Shared Sub Position(popup As Popup, point As Point)
| Type | Name | Description |
|---|---|---|
| Popup | popup | The popup to position. |
| Point | point | The popup position. |