Dela via


MapControl.GetLocation(DependencyObject) Method

Definition

Gets the value of the MapControl.Location XAML attached property from the specified child element of a MapControl. The location is the geographic location on the MapControl at which the MapControl.NormalizedAnchorPoint of the child element is positioned.

public:
 static Geopoint ^ GetLocation(DependencyObject ^ element);
 static Geopoint GetLocation(DependencyObject const& element);
public static Geopoint GetLocation(DependencyObject element);
function getLocation(element)
Public Shared Function GetLocation (element As DependencyObject) As Geopoint

Parameters

element
DependencyObject

The element from which to read the property value.

Returns

The value of the MapControl.Location XAML attached property on the specified child element of a MapControl.

Applies to

See also