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 propertyDescription
LocationGets or sets the location of a child element of the MapControl.
NormalizedAnchorPointGets or sets the anchor point of a child element of the MapControl.

Version history

Windows versionSDK versionValue added
151110586MapRightTapped
160714393BusinessLandmarksEnabled
160714393GetVisibleRegion
160714393TransitFeaturesEnabled
170315063FindMapElementsAtOffset(Point,Double)
170315063GetLocationFromOffset(Point,AltitudeReferenceSystem,Geopoint&)
170315063MapContextRequested
170315063MapProjection
170315063StartContinuousPan
170315063StopContinuousPan
170315063StyleSheet
170315063TryPanAsync
170315063TryPanToAsync
170315063ViewPadding
170916299Layers
170916299TryGetLocationFromOffset(Point,Geopoint&)
170916299TryGetLocationFromOffset(Point,AltitudeReferenceSystem,Geopoint&)
180317134Region
190318362CanTiltDown
190318362CanTiltUp
190318362CanZoomIn
190318362CanZoomOut

-examples

-see-also

Display maps with 2D, 3D, and Streetside views, Control, MapControl sample