Position(Popup,Anchor,FrameworkElement,Anchor) Method
In This Topic
Positions a
System.Windows.Controls.Primitives.Popup so that the specified point in the Popup matches the specified point of a FrameworkElement.
Syntax
'Declaration
Public Overloads Shared Sub Position( _
ByVal As Popup, _
ByVal As Anchor, _
ByVal As FrameworkElement, _
ByVal As Anchor _
)
'Usage
Dim popup As Popup
Dim popupAnchor As Anchor
Dim element As FrameworkElement
Dim elementAnchor As Anchor
PopupUtil.Position(popup, popupAnchor, element, elementAnchor)
public static void Position(
Popup ,
Anchor ,
FrameworkElement ,
Anchor
)
public:
static void Position(
Popup^ ,
Anchor ,
FrameworkElement^ ,
Anchor
)
Parameters
- popup
- The popup to position.
- popupAnchor
- An Anchor value specifying the point in the Popup.
- element
- The System.Windows.FrameworkElement to use as reference.
- elementAnchor
- An Anchor value specifying the point in the FrameworkElement.
See Also