Calculates the position of a
System.Windows.FrameworkElement so that the specified point in the FrameworkElement matches the specified point of another FrameworkElement.
'Declaration
Public Overloads Shared Function TestPosition( _
ByVal As FrameworkElement, _
ByVal As Anchor, _
ByVal As FrameworkElement, _
ByVal As Anchor, _
ByVal As Double, _
ByVal As Double _
) As Point
'Usage
Dim positionElement As FrameworkElement
Dim positionAnchor 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(positionElement, positionAnchor, element, elementAnchor, overlapHorizontal, 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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2