MapControl.Location Attached Property
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.
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.
- Type: Geopoint
- Identifier field: LocationProperty
- Accessor methods: GetLocation, SetLocation