ComponentOne FinancialChart for WPF
C1.WPF Namespace / PopupUtil Class / TestPosition Method / TestPosition(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.



In This Topic
    TestPosition(Popup,Anchor,FrameworkElement,Anchor) Method
    In This Topic
    Calculates the position of 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 Function TestPosition( _
       ByVal popup As Popup, _
       ByVal popupAnchor As Anchor, _
       ByVal element As FrameworkElement, _
       ByVal elementAnchor As Anchor _
    ) As Point
    'Usage
     
    
    Dim popup As Popup
    Dim popupAnchor As Anchor
    Dim element As FrameworkElement
    Dim elementAnchor As Anchor
    Dim value As Point
     
    value = PopupUtil.TestPosition(popup, popupAnchor, element, 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.

    Return Value

    The absolute point where the popup would be located
    See Also