LabeledMapLocation.Location Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the geographic coordinate associated with a labeled map location.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
<object> <object.Location> <GeoCoordinate .../> </object.Location> </object>
Property Value
Type: System.Device.Location.GeoCoordinateType: GeoCoordinate. The geographic coordinate associated with a labeled map location.
To be considered valid, the value of this property must be non-null and not be a location that is Unknown. When used with the BingMapsDirectionsTask task, either the Location property or the Label property must be set to a valid value before calling Show() or an exception will be thrown.