ComponentOne FinancialChart for WPF
C1.WPF Namespace / PopupUtil Class / TestPosition Method / TestPosition(FrameworkElement,Anchor,FrameworkElement,Anchor,Point,Double,Double,FlowDirection) Method
The element to position.
An Anchor value specifying the point in the element to position.
The System.Windows.FrameworkElement to use as reference.
An Anchor value specifying the point in the FrameworkElement used as reference.
The offset (absolute position) of the reference element.
The horizontal overlap between the elements (used for corner matching's).
The vertical overlap between the elements (used for corner matching's).
The FlowDirection used for the calculations.



In This Topic
    TestPosition(FrameworkElement,Anchor,FrameworkElement,Anchor,Point,Double,Double,FlowDirection) Method
    In This Topic
    Calculates the position of a System.Windows.FrameworkElement so that the specified point in the FrameworkElement matches the specified point of another FrameworkElement.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function TestPosition( _
       ByVal positionElement As FrameworkElement, _
       ByVal positionAnchor As Anchor, _
       ByVal element As FrameworkElement, _
       ByVal elementAnchor As Anchor, _
       ByVal elementOffset As Point, _
       ByVal overlapHorizontal As Double, _
       ByVal overlapVertical As Double, _
       ByVal flowDir As FlowDirection _
    ) As Point
    'Usage
     
    
    Dim positionElement As FrameworkElement
    Dim positionAnchor As Anchor
    Dim element As FrameworkElement
    Dim elementAnchor As Anchor
    Dim elementOffset As Point
    Dim overlapHorizontal As Double
    Dim overlapVertical As Double
    Dim flowDir As FlowDirection
    Dim value As Point
     
    value = PopupUtil.TestPosition(positionElement, positionAnchor, element, elementAnchor, elementOffset, overlapHorizontal, overlapVertical, flowDir)

    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.
    elementOffset
    The offset (absolute position) of the reference element.
    overlapHorizontal
    The horizontal overlap between the elements (used for corner matching's).
    overlapVertical
    The vertical overlap between the elements (used for corner matching's).
    flowDir
    The FlowDirection used for the calculations.

    Return Value

    The absolute point where the FrameworkElement would be located.
    See Also