This topic has not yet been rated - Rate this topic

LabeledMapLocation.Location Property

Windows Phone

March 22, 2012

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: 7.1

Windows Phone

Did you find this helpful?
(1500 characters remaining)