Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.59 KB

mapcontrol_location.md

File metadata and controls

34 lines (21 loc) · 1.59 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.Maps.MapControl.Location
winrt attachedproperty

Windows.UI.Xaml.Controls.Maps.MapControl.Location

-description

Gets or sets the location of a child element of the MapControl.

-remarks

The location is the geographic location on the MapControl at which the MapControl.NormalizedAnchorPoint of the child element is positioned.

Since a string can't be converted to a Geopoint, you can't specify a value for the MapControl.Location attached property in XAML markup unless you use data binding.

A MapControl.Location value is interpreted by the parent MapControl element. The value is used along with MapControl.NormalizedAnchorPoint to specify the layout characteristics of each child element of a MapControl.

If you provide an Altitude and AltitudeReferenceSystem in 3D views, then elements added to the MapControl end up being placed underground or floating in space.

-see-also

MapControl.NormalizedAnchorPoint, XAML attached properties

-examples