Windows.UI.Xaml.Controls.Maps.MapControl
May 30, 2025 ยท View on GitHub
-description
[Deprecated - see Remarks.] Represents a symbolic or photorealistic map of the Earth.
-xaml-syntax
<!-- xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps" -->
<Maps:MapControl/>
- or -
<Maps:MapControl></Maps:MapControl>
-remarks
Important
The UWP MapControl and Windows Maps platform APIs (Windows.Services.Maps) are deprecated and may not be available in future versions of Windows. For more information, see Resources for deprecated features.
Important
Bing Maps for Enterprise service retirement
The UWP MapControl and map services from the Windows.Services.Maps namespaces rely on Bing Maps. Bing Maps for Enterprise is deprecated and will be retired, at which point the MapControl and services will no longer receive data.
For more information, see the Bing Maps Developer Center and Bing Maps documentation.
XAML attached properties
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. |
Version history
| 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 |
-examples
-see-also
Display maps with 2D, 3D, and Streetside views, Control, MapControl sample