Location Property
Collapse the table of content
Expand the table of content

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.

Namespace:  Microsoft.Phone.Tasks
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

public GeoCoordinate Location { get; set; }
<object>
  <object.Location>
    <GeoCoordinate .../>
  </object.Location>
</object>

Property Value

Type: System.Device.Location.GeoCoordinate
Type: 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft