ComponentOne FlexGrid for UWP
C1.UWP Assembly / C1.Xaml Namespace / PopupUtil Class / TestPosition Method / TestPosition(Popup,Anchor,FrameworkElement,Anchor,Double,Double) Method
The popup to position.
An Anchor value specifying the point in the Popup.
The Windows.UI.Xaml.FrameworkElement to use as reference.
An Anchor value specifying the point in the FrameworkElement.
The horizontal overlap between the elements (used for corner matching's).
The vertical overlap between the elements (used for corner matching's).

In This Topic
    TestPosition(Popup,Anchor,FrameworkElement,Anchor,Double,Double) Method
    In This Topic
    Calculates the position of a Windows.UI.Xaml.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, _
       ByVal overlapHorizontal As Double, _
       ByVal overlapVertical As Double _
    ) As Point

    Parameters

    popup
    The popup to position.
    popupAnchor
    An Anchor value specifying the point in the Popup.
    element
    The Windows.UI.Xaml.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
    See Also