'Declaration
Public Overloads Shared Function TestPosition( _ ByVal popup As Popup, _ ByVal popupAnchor As Anchor, _ ByVal element As FrameworkElement, _ ByVal elementAnchor As Anchor, _ ByVal overlapHorizontal As Double, _ ByVal overlapVertical As Double _ ) As Point
'Usage
Dim popup As Popup Dim popupAnchor As Anchor Dim element As FrameworkElement Dim elementAnchor As Anchor Dim overlapHorizontal As Double Dim overlapVertical As Double Dim value As Point value = PopupUtil.TestPosition(popup, popupAnchor, element, elementAnchor, overlapHorizontal, overlapVertical)
public static Point TestPosition( Popup popup, Anchor popupAnchor, FrameworkElement element, Anchor elementAnchor, double overlapHorizontal, double overlapVertical )
public: static Point TestPosition( Popup^ popup, Anchor popupAnchor, FrameworkElement^ element, Anchor elementAnchor, double overlapHorizontal, double overlapVertical )
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.
- overlapHorizontal
- The horizontal overlap between the elements (used for corner matching's).
- overlapVertical
- The vertical overlap between the elements (used for corner matching's).
Return Value
The absolute point where the popup would be located