[]
        
(Showing Draft Content)

C1.WinUI.Input.PopupUtil.Position

Position Method

Position(Popup, Anchor, FrameworkElement, Anchor)

Positions a Microsoft.UI.Xaml.Controls.Primitives.Popup so that the specified point in the Popup matches the specified point of a FrameworkElement.

Declaration
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)
Parameters
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.

Position(Popup, Point)

Positions a Microsoft.UI.Xaml.Controls.Primitives.Popup in a specified absolute point.

Declaration
public static void Position(Popup popup, Point point)
Public Shared Sub Position(popup As Popup, point As Point)
Parameters
Type Name Description
Popup popup

The popup to position.

Point point

The popup position.