[]
        
(Showing Draft Content)

C1.WPF.PopupUtil.Position

Position Method

Position(Popup, Anchor, FrameworkElement, Anchor)

Positions a 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)
Parameters
Type Name Description
Popup popup

The popup to position.

Anchor popupAnchor

An Anchor value specifying the point in the Popup.

FrameworkElement element

The FrameworkElement to use as reference.

Anchor elementAnchor

An Anchor value specifying the point in the FrameworkElement.

Position(Popup, Point)

Positions a Popup in a specified absolute point.

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

The popup to position.

Point point

The popup position.