-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Controls.Maps.MapControl |
winrt class |
Represents a symbolic or photorealistic map of the Earth.
<!-- xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps" -->
<Maps:MapControl/>
- or -
<Maps:MapControl></Maps:MapControl>
MapControl is the host service class for several XAML attached properties.
In order to support XAML processor access to the attached properties, and also to expose equivalent get and set operations to code, each XAML attached property has a pair of Get and Set accessor methods. Another way to get or set the value in code is to use the dependency property system, calling either GetValue or SetValue and passing the identifier field as the dependency property identifier.
Attached property | Description |
---|---|
Location | Gets or sets the location of a child element of the MapControl. |
NormalizedAnchorPoint | Gets or sets the anchor point of a child element of the MapControl. |
Windows version | SDK version | Value added |
---|---|---|
1511 | 10586 | MapRightTapped |
1607 | 14393 | BusinessLandmarksEnabled |
1607 | 14393 | GetVisibleRegion |
1607 | 14393 | TransitFeaturesEnabled |
1703 | 15063 | FindMapElementsAtOffset(Point,Double) |
1703 | 15063 | GetLocationFromOffset(Point,AltitudeReferenceSystem,Geopoint&) |
1703 | 15063 | MapContextRequested |
1703 | 15063 | MapProjection |
1703 | 15063 | StartContinuousPan |
1703 | 15063 | StopContinuousPan |
1703 | 15063 | StyleSheet |
1703 | 15063 | TryPanAsync |
1703 | 15063 | TryPanToAsync |
1703 | 15063 | ViewPadding |
1709 | 16299 | Layers |
1709 | 16299 | TryGetLocationFromOffset(Point,Geopoint&) |
1709 | 16299 | TryGetLocationFromOffset(Point,AltitudeReferenceSystem,Geopoint&) |
1803 | 17134 | Region |
1903 | 18362 | CanTiltDown |
1903 | 18362 | CanTiltUp |
1903 | 18362 | CanZoomIn |
1903 | 18362 | CanZoomOut |
Display maps with 2D, 3D, and Streetside views, Control, MapControl sample