ComponentOne Basic Library for WPF and Silverlight
Position(Popup,Anchor,FrameworkElement,Anchor) Method


C1.Silverlight Namespace > PopupUtil Class > Position Method : Position(Popup,Anchor,FrameworkElement,Anchor) Method
The popup to position.
An Anchor value specifying the point in the Popup.
The System.Windows.FrameworkElement to use as reference.
An Anchor value specifying the point in the FrameworkElement.
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 popup As System.Windows.Controls.Primitives.Popup, _
   ByVal popupAnchor As Anchor, _
   ByVal element As System.Windows.FrameworkElement, _
   ByVal elementAnchor As Anchor _
) 
'Usage
 
Dim popup As System.Windows.Controls.Primitives.Popup
Dim popupAnchor As Anchor
Dim element As System.Windows.FrameworkElement
Dim elementAnchor As Anchor
 
PopupUtil.Position(popup, popupAnchor, element, elementAnchor)
public static void Position( 
   System.Windows.Controls.Primitives.Popup popup,
   Anchor popupAnchor,
   System.Windows.FrameworkElement element,
   Anchor elementAnchor
)

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

Reference

PopupUtil Class
PopupUtil Members
Overload List