Calculates the position of a Popup so that the specified point in the Popup matches the specified point of a FrameworkElement.

Namespace:  C1.WPF
Assembly:  C1.WPF (in C1.WPF.dll)

Syntax

C#
public static Point TestPosition(
	Popup popup,
	Anchor popupAnchor,
	FrameworkElement element,
	Anchor elementAnchor
)
Visual Basic
Public Shared Function TestPosition ( _
	popup As Popup, _
	popupAnchor As Anchor, _
	element As FrameworkElement, _
	elementAnchor As Anchor _
) As Point

Parameters

popup
Type: System.Windows.Controls.Primitives..::..Popup
The popup to position.
popupAnchor
Type: C1.WPF..::..Anchor
An Anchor value specifying the point in the Popup.
element
Type: System.Windows..::..FrameworkElement
The FrameworkElement to use as reference.
elementAnchor
Type: C1.WPF..::..Anchor
An Anchor value specifying the point in the FrameworkElement.

Return Value

The absolute point where the popup would be located

See Also