Windows.UI.Xaml.Controls.Maps.MapControl.Location
July 16, 2021 ยท View on GitHub
-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.
- Type: Geopoint
- Identifier field: LocationProperty
- Accessor methods: GetLocation, SetLocation
-see-also
MapControl.NormalizedAnchorPoint, XAML attached properties