ComponentOne Basic Library for UWP
TestPosition(Popup,Anchor,FrameworkElement,Anchor) Method

C1.UWP Assembly > C1.Xaml 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 Windows.UI.Xaml.FrameworkElement to use as reference.
An Anchor value specifying the point in the FrameworkElement.
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 Windows.UI.Xaml.Controls.Primitives.Popup, _
   ByVal popupAnchor As Anchor, _
   ByVal element As Windows.UI.Xaml.FrameworkElement, _
   ByVal elementAnchor As Anchor _
) As Windows.Foundation.Point
public static Windows.Foundation.Point TestPosition( 
   Windows.UI.Xaml.Controls.Primitives.Popup popup,
   Anchor popupAnchor,
   Windows.UI.Xaml.FrameworkElement element,
   Anchor elementAnchor
)

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.

Return Value

The absolute point where the popup would be located
See Also

Reference

PopupUtil Class
PopupUtil Members
Overload List