MapControl.Location attached property
Gets or sets the location of a child element of the MapControl. The location is the geographic location on the MapControl at which the MapControl.NormalizedAnchorPoint of the child element is positioned.
Remarks
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.
MapControl.Location is an attached property for use with Extensible Application Markup Language (XAML). When you get or set this property in code instead, call the GetLocation or SetLocation method. When you call these methods, the target parameter is the object on which the attached property value is set.
A less commonly used way to get or set the value in code is to use the dependency property system. Call the GetValue or SetValue method and pass LocationProperty as the dependency property identifier.
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 Alititude and AltitudeReferenceSystem in 3D views, then elements added to the MapControl end up being placed underground or floating in space.
Requirements (Windows 10 device family)
|
API contract | |
|---|---|
|
Namespace |
Windows.UI.Xaml.Controls.Maps |
Requirements (Windows 8.x and Windows Phone 8.x)
|
Minimum supported client |
Windows 8.1 |
|---|---|
|
Minimum supported server |
Windows Server 2012 R2 |
|
Namespace |
Windows.UI.Xaml.Controls.Maps |
See also