'Declaration
Public Overloads Shared Function TestPosition( _ ByVal positionElement As System.Windows.FrameworkElement, _ ByVal positionAnchor As Anchor, _ ByVal element As System.Windows.FrameworkElement, _ ByVal elementAnchor As Anchor, _ ByVal overlapHorizontal As System.Double, _ ByVal overlapVertical As System.Double _ ) As System.Windows.Point
'Usage
Dim positionElement As System.Windows.FrameworkElement Dim positionAnchor As Anchor Dim element As System.Windows.FrameworkElement Dim elementAnchor As Anchor Dim overlapHorizontal As System.Double Dim overlapVertical As System.Double Dim value As System.Windows.Point value = PopupUtil.TestPosition(positionElement, positionAnchor, element, elementAnchor, overlapHorizontal, overlapVertical)
public static System.Windows.Point TestPosition( System.Windows.FrameworkElement positionElement, Anchor positionAnchor, System.Windows.FrameworkElement element, Anchor elementAnchor, System.double overlapHorizontal, System.double overlapVertical )
Parameters
- positionElement
- The element to position.
- positionAnchor
- An Anchor value specifying the point in the element to position.
- element
- The System.Windows.FrameworkElement to use as reference.
- elementAnchor
- An Anchor value specifying the point in the FrameworkElement used as reference.
- 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 FrameworkElement would be located.