Share via


MapControl.Location Attached Property

Definition

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

see GetLocation, and SetLocation
see GetLocation, and SetLocation
see GetLocation, and SetLocation

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.

Applies to

See also