UIElementExtensions.CoordinatesTo(UIElement, UIElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the distance in a Point to the passed in element from the element being called on. For instance, calling container.CoordinatesTo(child) will return the position of the child within the container. Helper for Windows.UI.Xaml.UIElement.TransformToVisual(Windows.UI.Xaml.UIElement).
public static Windows.Foundation.Point CoordinatesTo (this Windows.UI.Xaml.UIElement parent, Windows.UI.Xaml.UIElement target);
static member CoordinatesTo : Windows.UI.Xaml.UIElement * Windows.UI.Xaml.UIElement -> Windows.Foundation.Point
<Extension()>
Public Function CoordinatesTo (parent As UIElement, target As UIElement) As Point
Parameters
- parent
- Windows.UI.Xaml.UIElement
Starting parent element to provide coordinates from.
- target
- Windows.UI.Xaml.UIElement
Element to measure distance to.
Returns
Point containing difference in position of elements.