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

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

Syntax

C#
public static void Position(
	Popup popup,
	Anchor popupAnchor,
	FrameworkElement element,
	Anchor elementAnchor
)
Visual Basic
Public Shared Sub Position ( _
	popup As Popup, _
	popupAnchor As Anchor, _
	element As FrameworkElement, _
	elementAnchor As Anchor _
)

Parameters

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

See Also