MapControl MapControl MapControl Class

Definition

Represents a symbolic or photorealistic map of the Earth.

public : sealed class MapControl : Control, IMapControl, IMapControl2, IMapControl3, IMapControl4, IMapControl5
public sealed class MapControl : Control, IMapControl, IMapControl2, IMapControl3, IMapControl4, IMapControl5
Public NotInheritable Class MapControl Inherits Control Implements IMapControl, IMapControl2, IMapControl3, IMapControl4, IMapControl5
<!-- xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps" -->

<Maps:MapControl/>
- or -
<Maps:MapControl></Maps:MapControl>

Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

MapControl() MapControl() MapControl()

Initializes a new instance of the MapControl class.

public : MapControl()
public MapControl()
Public Sub New()
See Also

Properties

AccessKey AccessKey AccessKey

Gets or sets the access key (mnemonic) for this element.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

AccessKeyProperty AccessKeyProperty AccessKeyProperty

Identifies for the AccessKey dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

AccessKeyScopeOwner AccessKeyScopeOwner AccessKeyScopeOwner

Gets or sets a source element that provides the access key scope for this element, even if it's not in the visual tree of the source element.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

AccessKeyScopeOwnerProperty AccessKeyScopeOwnerProperty AccessKeyScopeOwnerProperty

Identifies for the AccessKeyScopeOwner dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

ActualCamera ActualCamera ActualCamera

Gets the MapCamera settings that define the current position of the camera.

public : MapCamera ActualCamera { get; }
public MapCamera ActualCamera { get; }
Public ReadOnly Property ActualCamera As MapCamera
Value
MapCamera MapCamera MapCamera

The MapCamera settings that define the current position of the camera.

Remarks

During an animation of the map, the ActualCamera defines the current position of the map's camera and TargetCamera defines the final position of the camera.

The map's camera settings are updated whenever the view of the map is changed. For example, when updating the Center property or calling the TrySetSceneAsync method.

ActualHeight ActualHeight ActualHeight

Gets the rendered height of a FrameworkElement. See Remarks.

(Inherited from FrameworkElement)

ActualHeightProperty ActualHeightProperty ActualHeightProperty

Identifies the ActualHeight dependency property. See Remarks.

(Inherited from FrameworkElement)

ActualTheme ActualTheme ActualTheme

Gets the UI theme that is currently used by the element, which might be different than the RequestedTheme.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

ActualThemeProperty ActualThemeProperty ActualThemeProperty

Identifies the ActualTheme dependency property.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

ActualWidth ActualWidth ActualWidth

Gets the rendered width of a FrameworkElement. See Remarks.

(Inherited from FrameworkElement)

ActualWidthProperty ActualWidthProperty ActualWidthProperty

Identifies the ActualWidth dependency property. See Remarks.

(Inherited from FrameworkElement)

AllowDrop AllowDrop AllowDrop

Gets or sets a value that determines whether this UIElement can be a drop target for purposes of drag-and-drop operations.

(Inherited from UIElement)

AllowDropProperty AllowDropProperty AllowDropProperty

Identifies the AllowDrop dependency property.

(Inherited from UIElement)

AllowFocusOnInteraction AllowFocusOnInteraction AllowFocusOnInteraction

Gets or sets a value that indicates whether the element automatically gets focus when the user interacts with it.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

AllowFocusOnInteractionProperty AllowFocusOnInteractionProperty AllowFocusOnInteractionProperty

Identifies for the AllowFocusOnInteraction dependency property.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

AllowFocusWhenDisabled AllowFocusWhenDisabled AllowFocusWhenDisabled

Gets or sets whether a disabled control can receive focus.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

AllowFocusWhenDisabledProperty AllowFocusWhenDisabledProperty AllowFocusWhenDisabledProperty

Identifies the AllowFocusWhenDisabled dependency property.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Background Background Background

Gets or sets a brush that provides the background of the control.

(Inherited from Control)

BackgroundProperty BackgroundProperty BackgroundProperty

Identifies the Background dependency property.

(Inherited from Control)

BaseUri BaseUri BaseUri

Gets a Uniform Resource Identifier (URI) that represents the base Uniform Resource Identifier (URI) for an XAML-constructed object at XAML load time. This property is useful for Uniform Resource Identifier (URI) resolution at run time.

(Inherited from FrameworkElement)

BorderBrush BorderBrush BorderBrush

Gets or sets a brush that describes the border fill of a control.

(Inherited from Control)

BorderBrushProperty BorderBrushProperty BorderBrushProperty

Identifies the BorderBrush dependency property.

(Inherited from Control)

BorderThickness BorderThickness BorderThickness

Gets or sets the border thickness of a control.

(Inherited from Control)

BorderThicknessProperty BorderThicknessProperty BorderThicknessProperty

Identifies the BorderThickness dependency property.

(Inherited from Control)

BusinessLandmarksEnabled BusinessLandmarksEnabled BusinessLandmarksEnabled

This property is not implemented.

public : Platform::Boolean BusinessLandmarksEnabled { get; set; }
public bool BusinessLandmarksEnabled { get; set; }
Public ReadWrite Property BusinessLandmarksEnabled As bool
Value
Platform::Boolean bool bool

This property is not implemented.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

BusinessLandmarksEnabledProperty BusinessLandmarksEnabledProperty BusinessLandmarksEnabledProperty

This property is not implemented.

public : static DependencyProperty BusinessLandmarksEnabledProperty { get; }
public static DependencyProperty BusinessLandmarksEnabledProperty { get; }
Public Static ReadOnly Property BusinessLandmarksEnabledProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

This property is not implemented.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

BusinessLandmarksVisible BusinessLandmarksVisible BusinessLandmarksVisible

Gets or sets a value that indicates whether businesses are displayed on the map.

public : Platform::Boolean BusinessLandmarksVisible { get; set; }
public bool BusinessLandmarksVisible { get; set; }
Public ReadWrite Property BusinessLandmarksVisible As bool
Value
Platform::Boolean bool bool

true if businesses are displayed on the map; otherwise, false.

BusinessLandmarksVisibleProperty BusinessLandmarksVisibleProperty BusinessLandmarksVisibleProperty

Identifies the BusinessLandmarksVisible dependency property.

public : static DependencyProperty BusinessLandmarksVisibleProperty { get; }
public static DependencyProperty BusinessLandmarksVisibleProperty { get; }
Public Static ReadOnly Property BusinessLandmarksVisibleProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the BusinessLandmarksVisible dependency property.

CacheMode CacheMode CacheMode

Gets or sets a value that indicates that rendered content should be cached as a composited bitmap when possible.

(Inherited from UIElement)

CacheModeProperty CacheModeProperty CacheModeProperty

Identifies the CacheMode dependency property.

(Inherited from UIElement)

CanDrag CanDrag CanDrag

Gets or sets a value that indicates whether the element can be dragged as data in a drag-and-drop operation.

(Inherited from UIElement)

CanDragProperty CanDragProperty CanDragProperty

Identifies the CanDrag dependency property.

(Inherited from UIElement)

Center Center Center

Gets or sets the center of the map.

public : Geopoint Center { get; set; }
public Geopoint Center { get; set; }
Public ReadWrite Property Center As Geopoint
Value
Geopoint Geopoint Geopoint

The center of the map.

Remarks

Since a string can't be converted to a Geopoint, you can't specify a value for the Center property in XAML markup unless you use data binding.

See Also

CenterProperty CenterProperty CenterProperty

Identifies the Center dependency property.

public : static DependencyProperty CenterProperty { get; }
public static DependencyProperty CenterProperty { get; }
Public Static ReadOnly Property CenterProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Center dependency property.

See Also

CharacterReceivedEvent CharacterReceivedEvent CharacterReceivedEvent

Gets the identifier for the CharacterReceived routed event.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

CharacterSpacing CharacterSpacing CharacterSpacing

Gets or sets the uniform spacing between characters, in units of 1/1000 of an em.

(Inherited from Control)

CharacterSpacingProperty CharacterSpacingProperty CharacterSpacingProperty

Identifies the CharacterSpacing dependency property.

(Inherited from Control)

Children Children Children

Gets the collection of objects that are children of the MapControl.

public : IVector<DependencyObject> Children { get; }
public IList<DependencyObject> Children { get; }
Public ReadOnly Property Children As IList<DependencyObject>
Value
IVector<DependencyObject> IList<DependencyObject> IList<DependencyObject>

The collection of objects that are children of the MapControl.

Remarks

Display XAML user interface elements such as a Button, a HyperlinkButton, or a TextBlock by adding them as Children of the MapControl. You can also add them to the MapItemsControl, or bind the MapItemsControl to an item or a collection of items.

Alternately, to display pushpins, images, and shapes on the MapControl, add them to its MapElements collection.

For more info, see Display maps with 2D, 3D, and Streetside views.

See Also

ChildrenProperty ChildrenProperty ChildrenProperty

Identifies the Children dependency property.

public : static DependencyProperty ChildrenProperty { get; }
public static DependencyProperty ChildrenProperty { get; }
Public Static ReadOnly Property ChildrenProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Children dependency property.

See Also

Clip Clip Clip

Gets or sets the RectangleGeometry used to define the outline of the contents of a UIElement.

(Inherited from UIElement)

ClipProperty ClipProperty ClipProperty

Identifies the Clip dependency property.

(Inherited from UIElement)

ColorScheme ColorScheme ColorScheme

Gets or sets the color scheme of the map – for example, light or dark.

public : MapColorScheme ColorScheme { get; set; }
public MapColorScheme ColorScheme { get; set; }
Public ReadWrite Property ColorScheme As MapColorScheme
<!-- xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps" -->

<Maps:MapControl ColorScheme="colorScheme" />
- or -
<Maps:MapControl>
    <Maps:MapControl.ColorScheme>colorScheme</Maps:MapControl.ColorScheme>
</Maps:MapControl>

Value
MapColorScheme MapColorScheme MapColorScheme

The color scheme of the map – for example, light or dark.

See Also

ColorSchemeProperty ColorSchemeProperty ColorSchemeProperty

Identifies the ColorScheme dependency property.

public : static DependencyProperty ColorSchemeProperty { get; }
public static DependencyProperty ColorSchemeProperty { get; }
Public Static ReadOnly Property ColorSchemeProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the ColorScheme dependency property.

See Also

CompositeMode CompositeMode CompositeMode

Gets or sets a property that declares alternate composition and blending modes for the element in its parent layout and window. This is relevant for elements that are involved in a mixed XAML / Microsoft DirectX UI.

(Inherited from UIElement)

CompositeModeProperty CompositeModeProperty CompositeModeProperty

Identifies the CompositeMode dependency property.

(Inherited from UIElement)

ContextFlyout ContextFlyout ContextFlyout

Gets or sets the flyout associated with this element.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

ContextFlyoutProperty ContextFlyoutProperty ContextFlyoutProperty

Identifies for the ContextFlyout dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

CustomExperience CustomExperience CustomExperience

Gets or sets a custom experience for the MapControl.

public : MapCustomExperience CustomExperience { get; set; }
public MapCustomExperience CustomExperience { get; set; }
Public ReadWrite Property CustomExperience As MapCustomExperience

Remarks

A custom experience changes the way a map appears in the MapControl. For example, the StreetsideExperience changes the perspective of the map to appear as though you were viewing a location from the street level.

DataContext DataContext DataContext

Gets or sets the data context for a FrameworkElement when it participates in data binding.

(Inherited from FrameworkElement)

DataContextProperty DataContextProperty DataContextProperty

Identifies the DataContext dependency property.

(Inherited from FrameworkElement)

DefaultStyleKey DefaultStyleKey DefaultStyleKey

Gets or sets the key that references the default style for the control. Authors of custom controls use this property to change the default for the style that their control uses.

(Inherited from Control)

DefaultStyleKeyProperty DefaultStyleKeyProperty DefaultStyleKeyProperty

Identifies the DefaultStyleKey dependency property.

(Inherited from Control)

DefaultStyleResourceUri DefaultStyleResourceUri DefaultStyleResourceUri

Gets or sets the path to the resource file that contains the default style for the control.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

DefaultStyleResourceUriProperty DefaultStyleResourceUriProperty DefaultStyleResourceUriProperty

Identifies the DefaultStyleResourceUri dependency property.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

DesiredPitch DesiredPitch DesiredPitch

Gets or sets a value that indicates by how many degrees you want the map to be tilted. Sometimes the desired pitch cannot be set.

public : double DesiredPitch { get; set; }
public double DesiredPitch { get; set; }
Public ReadWrite Property DesiredPitch As double
<!-- xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps" -->

<Maps:MapControl DesiredPitch="desiredPitch" />
- or -
<Maps:MapControl>
    <Maps:MapControl.DesiredPitch>desiredPitch</Maps:MapControl.DesiredPitch>
</Maps:MapControl>

Value
double double double

A value that indicates by how many degrees you want the map to be tilted. Sometimes the desired pitch cannot be set.

Remarks

For more information about pitch, see the remarks section of the MapCamera(Geopoint, Double, Double, Double, Double) overload.

The maximum and minimum values of pitch/tilt depend on the type of map view: 2D, 3D, or Streetside.

Property2D range3D rangeStreetside range
DesiredPitch0-750-900-180

See Also

DesiredPitchProperty DesiredPitchProperty DesiredPitchProperty

Identifies the DesiredPitch dependency property.

public : static DependencyProperty DesiredPitchProperty { get; }
public static DependencyProperty DesiredPitchProperty { get; }
Public Static ReadOnly Property DesiredPitchProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the DesiredPitch dependency property.

See Also

DesiredSize DesiredSize DesiredSize

Gets the size that this UIElement computed during the measure pass of the layout process.

(Inherited from UIElement)

Dispatcher Dispatcher Dispatcher

Gets the CoreDispatcher that this object is associated with. The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread.

(Inherited from DependencyObject)

DoubleTappedEvent DoubleTappedEvent DoubleTappedEvent

Gets the identifier for the DoubleTapped routed event.

(Inherited from UIElement)

DragEnterEvent DragEnterEvent DragEnterEvent

Gets the identifier for the DragEnter routed event.

(Inherited from UIElement)

DragLeaveEvent DragLeaveEvent DragLeaveEvent

Gets the identifier for the DragLeave routed event.

(Inherited from UIElement)

DragOverEvent DragOverEvent DragOverEvent

Gets the identifier for the DragOver routed event.

(Inherited from UIElement)

DropEvent DropEvent DropEvent

Gets the identifier for the Drop routed event.

(Inherited from UIElement)

ElementSoundMode ElementSoundMode ElementSoundMode

Get or sets a value that specifies a control's preference for whether sounds are played.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

ElementSoundModeProperty ElementSoundModeProperty ElementSoundModeProperty

Identifies the ElementSoundMode dependency property.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

ExitDisplayModeOnAccessKeyInvoked ExitDisplayModeOnAccessKeyInvoked ExitDisplayModeOnAccessKeyInvoked

Gets or sets a value that specifies whether the access key display is dismissed when an access key is invoked.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

ExitDisplayModeOnAccessKeyInvokedProperty ExitDisplayModeOnAccessKeyInvokedProperty ExitDisplayModeOnAccessKeyInvokedProperty

Identifies the ExitDisplayModeOnAccessKeyInvoked dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

FlowDirection FlowDirection FlowDirection

Gets or sets the direction in which text and other UI elements flow within any parent element that controls their layout. This property can be set to either LeftToRight or RightToLeft. Setting FlowDirection to RightToLeft on any element sets the alignment to the right, the reading order to right-to-left and the layout of the control to flow from right to left.

(Inherited from FrameworkElement)

FlowDirectionProperty FlowDirectionProperty FlowDirectionProperty

Identifies the FlowDirection dependency property.

(Inherited from FrameworkElement)

FocusState FocusState FocusState

Gets a value that specifies whether this control has focus, and the mode by which focus was obtained.

(Inherited from Control)

FocusStateProperty FocusStateProperty FocusStateProperty

Identifies the FocusState dependency property.

(Inherited from Control)

FocusVisualMargin FocusVisualMargin FocusVisualMargin

Gets or sets the outer margin of the focus visual for a FrameworkElement.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

FocusVisualMarginProperty FocusVisualMarginProperty FocusVisualMarginProperty

Identifies the FocusVisualMargin dependency property.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

FocusVisualPrimaryBrush FocusVisualPrimaryBrush FocusVisualPrimaryBrush

Gets or sets the brush used to draw the outer border of a HighVisibility focus visual for a FrameworkElement.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

FocusVisualPrimaryBrushProperty FocusVisualPrimaryBrushProperty FocusVisualPrimaryBrushProperty

Identifies the FocusVisualPrimaryBrush dependency property.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

FocusVisualPrimaryThickness FocusVisualPrimaryThickness FocusVisualPrimaryThickness

Gets or sets the thickness of the outer border of a HighVisibility focus visual for a FrameworkElement.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

FocusVisualPrimaryThicknessProperty FocusVisualPrimaryThicknessProperty FocusVisualPrimaryThicknessProperty

Identifies the FocusVisualPrimaryThickness dependency property.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

FocusVisualSecondaryBrush FocusVisualSecondaryBrush FocusVisualSecondaryBrush

Gets or sets the brush used to draw the inner border of a HighVisibility focus visual for a FrameworkElement.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

FocusVisualSecondaryBrushProperty FocusVisualSecondaryBrushProperty FocusVisualSecondaryBrushProperty

Identifies the FocusVisualSecondaryBrush dependency property.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

FocusVisualSecondaryThickness FocusVisualSecondaryThickness FocusVisualSecondaryThickness

Gets or sets the thickness of the inner border of a HighVisibility focus visual for a FrameworkElement.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

FocusVisualSecondaryThicknessProperty FocusVisualSecondaryThicknessProperty FocusVisualSecondaryThicknessProperty

Identifies the FocusVisualSecondaryThickness dependency property.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

FontFamily FontFamily FontFamily

Gets or sets the font used to display text in the control.

(Inherited from Control)

FontFamilyProperty FontFamilyProperty FontFamilyProperty

Identifies the FontFamily dependency property.

(Inherited from Control)

FontSize FontSize FontSize

Gets or sets the size of the text in this control.

(Inherited from Control)

FontSizeProperty FontSizeProperty FontSizeProperty

Identifies the FontSize dependency property.

(Inherited from Control)

FontStretch FontStretch FontStretch

Gets or sets the degree to which a font is condensed or expanded on the screen.

(Inherited from Control)

FontStretchProperty FontStretchProperty FontStretchProperty

Identifies the FontStretch dependency property.

(Inherited from Control)

FontStyle FontStyle FontStyle

Gets or sets the style in which the text is rendered.

(Inherited from Control)

FontStyleProperty FontStyleProperty FontStyleProperty

Identifies the FontStyle dependency property.

(Inherited from Control)

FontWeight FontWeight FontWeight

Gets or sets the thickness of the specified font.

(Inherited from Control)

FontWeightProperty FontWeightProperty FontWeightProperty

Identifies the FontWeight dependency property.

(Inherited from Control)

Foreground Foreground Foreground

Gets or sets a brush that describes the foreground color.

(Inherited from Control)

ForegroundProperty ForegroundProperty ForegroundProperty

Identifies the Foreground dependency property.

(Inherited from Control)

GettingFocusEvent GettingFocusEvent GettingFocusEvent

Gets the identifier for the GettingFocus routed event.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Heading Heading Heading

Gets or sets the directional heading of the map in degrees, where 0 or 360 = North, 90 = East, 180 = South, and 270 = West.

public : double Heading { get; set; }
public double Heading { get; set; }
Public ReadWrite Property Heading As double
<!-- xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps" -->

<Maps:MapControl Heading="heading"/>
- or -
<Maps:MapControl>
    <Maps:MapControl.Heading>heading</Maps:MapControl.Heading>
</Maps:MapControl>

Value
double double double

The directional heading of the map in degrees, where 0 or 360 = North, 90 = East, 180 = South, and 270 = West.

Remarks

Heading values greater than 360 degrees are normalized to their equivalent 0-360 degree value.

See Also

HeadingProperty HeadingProperty HeadingProperty

Identifies the Heading dependency property.

public : static DependencyProperty HeadingProperty { get; }
public static DependencyProperty HeadingProperty { get; }
Public Static ReadOnly Property HeadingProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Heading dependency property.

See Also

Height Height Height

Gets or sets the suggested height of a FrameworkElement.

(Inherited from FrameworkElement)

HeightProperty HeightProperty HeightProperty

Identifies the Height dependency property.

(Inherited from FrameworkElement)

HighContrastAdjustment HighContrastAdjustment HighContrastAdjustment

Gets or sets a value that indicates whether the framework automatically adjusts the element's visual properties when high contrast themes are enabled.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

HighContrastAdjustmentProperty HighContrastAdjustmentProperty HighContrastAdjustmentProperty

Identifies the HighContrastAdjustment dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

HoldingEvent HoldingEvent HoldingEvent

Gets the identifier for the Holding routed event.

(Inherited from UIElement)

HorizontalAlignment HorizontalAlignment HorizontalAlignment

Gets or sets the horizontal alignment characteristics that are applied to a FrameworkElement when it is composed in a layout parent, such as a panel or items control.

(Inherited from FrameworkElement)

HorizontalAlignmentProperty HorizontalAlignmentProperty HorizontalAlignmentProperty

Identifies the HorizontalAlignment dependency property.

(Inherited from FrameworkElement)

HorizontalContentAlignment HorizontalContentAlignment HorizontalContentAlignment

Gets or sets the horizontal alignment of the control's content.

(Inherited from Control)

HorizontalContentAlignmentProperty HorizontalContentAlignmentProperty HorizontalContentAlignmentProperty

Identifies the HorizontalContentAlignment dependency property.

(Inherited from Control)

Is3DSupported Is3DSupported Is3DSupported

Gets a value that indicates if 3D is supported within the map.

public : Platform::Boolean Is3DSupported { get; }
public bool Is3DSupported { get; }
Public ReadOnly Property Is3DSupported As bool
Value
Platform::Boolean bool bool

true if 3D is supported within the map; otherwise, false.

Is3DSupportedProperty Is3DSupportedProperty Is3DSupportedProperty

Identifies the Is3DSupported dependency property.

public : static DependencyProperty Is3DSupportedProperty { get; }
public static DependencyProperty Is3DSupportedProperty { get; }
Public Static ReadOnly Property Is3DSupportedProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

Is the identifier for the Is3DSupported dependency property.

IsAccessKeyScope IsAccessKeyScope IsAccessKeyScope

Gets or sets a value that indicates whether an element defines its own access key scope.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

IsAccessKeyScopeProperty IsAccessKeyScopeProperty IsAccessKeyScopeProperty

Identifies for the IsAccessKeyScope dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

IsDoubleTapEnabled IsDoubleTapEnabled IsDoubleTapEnabled

Gets or sets a value that determines whether the DoubleTapped event can originate from that element.

(Inherited from UIElement)

IsDoubleTapEnabledProperty IsDoubleTapEnabledProperty IsDoubleTapEnabledProperty

Identifies the IsDoubleTapEnabled dependency property.

(Inherited from UIElement)

IsEnabled IsEnabled IsEnabled

Gets or sets a value indicating whether the user can interact with the control.

(Inherited from Control)

IsEnabledProperty IsEnabledProperty IsEnabledProperty

Identifies the IsEnabled dependency property.

(Inherited from Control)

IsFocusEngaged IsFocusEngaged IsFocusEngaged

Get or sets a value that indicates whether focus is constrained within the control boundaries (for game pad/remote interaction).

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

IsFocusEngagedProperty IsFocusEngagedProperty IsFocusEngagedProperty

Identifies the IsFocusEngaged dependency property.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

IsFocusEngagementEnabled IsFocusEngagementEnabled IsFocusEngagementEnabled

Get or sets a value that indicates whether focus can be constrained within the control boundaries (for game pad/remote interaction).

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

IsFocusEngagementEnabledProperty IsFocusEngagementEnabledProperty IsFocusEngagementEnabledProperty

Identifies the IsFocusEngagementEnabled dependency property.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

IsHitTestVisible IsHitTestVisible IsHitTestVisible

Gets or sets whether the contained area of this UIElement can return true values for hit testing.

(Inherited from UIElement)

IsHitTestVisibleProperty IsHitTestVisibleProperty IsHitTestVisibleProperty

Identifies the IsHitTestVisible dependency property.

(Inherited from UIElement)

IsHoldingEnabled IsHoldingEnabled IsHoldingEnabled

Gets or sets a value that determines whether the Holding event can originate from that element.

(Inherited from UIElement)

IsHoldingEnabledProperty IsHoldingEnabledProperty IsHoldingEnabledProperty

Identifies the IsHoldingEnabled dependency property.

(Inherited from UIElement)

IsRightTapEnabled IsRightTapEnabled IsRightTapEnabled

Gets or sets a value that determines whether the RightTapped event can originate from that element.

(Inherited from UIElement)

IsRightTapEnabledProperty IsRightTapEnabledProperty IsRightTapEnabledProperty

Identifies the IsRightTapEnabled dependency property.

(Inherited from UIElement)

IsStreetsideSupported IsStreetsideSupported IsStreetsideSupported

Gets a value that indicates if Streetside is supported within the map.

public : Platform::Boolean IsStreetsideSupported { get; }
public bool IsStreetsideSupported { get; }
Public ReadOnly Property IsStreetsideSupported As bool
Value
Platform::Boolean bool bool

true if Streetside is supported within the map; otherwise, false.

IsStreetsideSupportedProperty IsStreetsideSupportedProperty IsStreetsideSupportedProperty

Identifies the IsStreetsideSupported dependency property.

public : static DependencyProperty IsStreetsideSupportedProperty { get; }
public static DependencyProperty IsStreetsideSupportedProperty { get; }
Public Static ReadOnly Property IsStreetsideSupportedProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

Is the identifier for the IsStreetsideSupported dependency property.

IsTabStop IsTabStop IsTabStop

Gets or sets a value that indicates whether a control is included in tab navigation.

(Inherited from Control)

IsTabStopProperty IsTabStopProperty IsTabStopProperty

Identifies the IsTabStop dependency property.

(Inherited from Control)

IsTapEnabled IsTapEnabled IsTapEnabled

Gets or sets a value that determines whether the Tapped event can originate from that element.

(Inherited from UIElement)

IsTapEnabledProperty IsTapEnabledProperty IsTapEnabledProperty

Identifies the IsTapEnabled dependency property.

(Inherited from UIElement)

IsTemplateFocusTargetProperty IsTemplateFocusTargetProperty IsTemplateFocusTargetProperty

Identifies the Control.IsTemplateFocusTarget XAML attached property.

(Inherited from Control)

IsTemplateKeyTipTargetProperty IsTemplateKeyTipTargetProperty IsTemplateKeyTipTargetProperty

Identifies the Control.IsTemplateKeyTipTarget XAML attached property.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

IsTextScaleFactorEnabled IsTextScaleFactorEnabled IsTextScaleFactorEnabled

Gets or sets whether automatic text enlargement, to reflect the system text size setting, is enabled.

(Inherited from Control)

IsTextScaleFactorEnabledProperty IsTextScaleFactorEnabledProperty IsTextScaleFactorEnabledProperty

Identifies the IsTextScaleFactorEnabled dependency property.

(Inherited from Control)

KeyDownEvent KeyDownEvent KeyDownEvent

Gets the identifier for the KeyDown routed event.

(Inherited from UIElement)

KeyTipHorizontalOffset KeyTipHorizontalOffset KeyTipHorizontalOffset

Gets or sets a value that indicates how far left or right the keytip is placed in relation to the UIElement.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

KeyTipHorizontalOffsetProperty KeyTipHorizontalOffsetProperty KeyTipHorizontalOffsetProperty

Identifies the KeyTipHorizontalOffset dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

KeyTipPlacementMode KeyTipPlacementMode KeyTipPlacementMode

Gets or sets a value that indicates where the KeyTip is placed in relation to the UIElement.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

KeyTipPlacementModeProperty KeyTipPlacementModeProperty KeyTipPlacementModeProperty

Identifies the KeyTipPlacementMode dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

KeyTipVerticalOffset KeyTipVerticalOffset KeyTipVerticalOffset

Gets or sets a value that indicates how far up or down the keytip is placed in relation to the UIElement.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

KeyTipVerticalOffsetProperty KeyTipVerticalOffsetProperty KeyTipVerticalOffsetProperty

Identifies the KeyTipVerticalOffset dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

KeyUpEvent KeyUpEvent KeyUpEvent

Gets the identifier for the KeyUp routed event.

(Inherited from UIElement)

KeyboardAccelerators KeyboardAccelerators KeyboardAccelerators

Gets the keyboard shortcuts (or accelerators) that lets a user perform an action using the keyboard instead of navigating the app UI (directly or through access keys).

Accelerators are typically assigned to buttons or menu items.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

LandmarksVisible LandmarksVisible LandmarksVisible

Gets or sets a value that indicates whether 3D buildings are displayed on the map.

public : Platform::Boolean LandmarksVisible { get; set; }
public bool LandmarksVisible { get; set; }
Public ReadWrite Property LandmarksVisible As bool
<!-- xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps" -->

<Maps:MapControl LandmarksVisible="landmarksVisible"/>
- or -
<Maps:MapControl>
    <Maps:MapControl.LandmarksVisible>landmarksVisible</Maps:MapControl.LandmarksVisible>
</Maps:MapControl>

Value
Platform::Boolean bool bool

true if 3D buildings are displayed on the map; otherwise, false.

See Also

LandmarksVisibleProperty LandmarksVisibleProperty LandmarksVisibleProperty

Identifies the LandmarksVisible dependency property.

public : static DependencyProperty LandmarksVisibleProperty { get; }
public static DependencyProperty LandmarksVisibleProperty { get; }
Public Static ReadOnly Property LandmarksVisibleProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the LandmarksVisible dependency property.

See Also

Language Language Language

Gets or sets localization/globalization language information that applies to a FrameworkElement, and also to all child elements of the current FrameworkElement in the object representation and in UI.

(Inherited from FrameworkElement)

LanguageProperty LanguageProperty LanguageProperty

Identifies the Language dependency property.

(Inherited from FrameworkElement)

Layers Layers Layers

Gets the collection of MapLayer objects that are children of the MapControl.

public : IVector<MapLayer> Layers { get; set; }
public IList<MapLayer> Layers { get; set; }
Public ReadWrite Property Layers As IList<MapLayer>
Value
IVector<MapLayer> IList<MapLayer> IList<MapLayer>

The collection of MapLayer objects that are children of the MapControl.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

LayersProperty LayersProperty LayersProperty

Identifies the Layers dependency property.

public : static DependencyProperty LayersProperty { get; }
public static DependencyProperty LayersProperty { get; }
Public Static ReadOnly Property LayersProperty As DependencyProperty
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Lights Lights Lights

Gets the collection of XamlLight objects attached to this element.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

LightsProperty LightsProperty LightsProperty

Identifies the Lights dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

LoadingStatus LoadingStatus LoadingStatus

Gets the loading status of the map to be displayed in the MapControl.

public : MapLoadingStatus LoadingStatus { get; }
public MapLoadingStatus LoadingStatus { get; }
Public ReadOnly Property LoadingStatus As MapLoadingStatus
Value
MapLoadingStatus MapLoadingStatus MapLoadingStatus

The loading status of the map to be displayed in the MapControl.

See Also

LoadingStatusProperty LoadingStatusProperty LoadingStatusProperty

Identifies the LoadingStatus dependency property.

public : static DependencyProperty LoadingStatusProperty { get; }
public static DependencyProperty LoadingStatusProperty { get; }
Public Static ReadOnly Property LoadingStatusProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the LoadingStatus dependency property.

See Also

LocationProperty LocationProperty LocationProperty

Identifies the MapControl.Location XAML attached property.

public : static DependencyProperty LocationProperty { get; }
public static DependencyProperty LocationProperty { get; }
Public Static ReadOnly Property LocationProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the MapControl.Location XAML attached property.

See Also

LosingFocusEvent LosingFocusEvent LosingFocusEvent

Gets the identifier for the LosingFocus routed event.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

ManipulationCompletedEvent ManipulationCompletedEvent ManipulationCompletedEvent

Gets the identifier for the ManipulationCompleted routed event.

(Inherited from UIElement)

ManipulationDeltaEvent ManipulationDeltaEvent ManipulationDeltaEvent

Gets the identifier for the ManipulationDelta routed event.

(Inherited from UIElement)

ManipulationInertiaStartingEvent ManipulationInertiaStartingEvent ManipulationInertiaStartingEvent

Gets the identifier for the ManipulationInertiaStarting routed event.

(Inherited from UIElement)

ManipulationMode ManipulationMode ManipulationMode

Gets or sets the ManipulationModes value used for UIElement behavior and interaction with gestures. Setting this value enables handling the manipulation events from this element in app code.

(Inherited from UIElement)

ManipulationModeProperty ManipulationModeProperty ManipulationModeProperty

Identifies the ManipulationMode dependency property.

(Inherited from UIElement)

ManipulationStartedEvent ManipulationStartedEvent ManipulationStartedEvent

Gets the identifier for the ManipulationStarted routed event.

(Inherited from UIElement)

ManipulationStartingEvent ManipulationStartingEvent ManipulationStartingEvent

Gets the identifier for the ManipulationStarting routed event.

(Inherited from UIElement)

MapElements MapElements MapElements

Gets the collection of MapElement objects that are children of the MapControl.

public : IVector<MapElement> MapElements { get; }
public IList<MapElement> MapElements { get; }
Public ReadOnly Property MapElements As IList<MapElement>
Value
IVector<MapElement> IList<MapElement> IList<MapElement>

The collection of MapElement objects that are children of the MapControl.

Remarks

Note

In the Windows 10 Fall Creators Update, we recommend that you add MapElement objects to a MapElementsLayer instead of adding them to the MapElements collection.

Display pushpins, images, and shapes on the MapControl by adding them to its MapElements collection.

  • Display an image such as a pushpin with optional text by using the MapIcon class. Keep the default image or provide a custom image.
  • Define and display a MapPolygon or a MapPolyline. Alternately, to display XAML elements on the MapControl, add them to its Children collection.

For more info, see Display maps with 2D, 3D, and Streetside views.

See Also

MapElementsProperty MapElementsProperty MapElementsProperty

Identifies the MapElements dependency property.

public : static DependencyProperty MapElementsProperty { get; }
public static DependencyProperty MapElementsProperty { get; }
Public Static ReadOnly Property MapElementsProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the MapElements dependency property.

See Also

MapProjection MapProjection MapProjection

Gets or sets a MapProjection that specifies how to transform the latitudes and longitudes of the map.

public : MapProjection MapProjection { get; set; }
public MapProjection MapProjection { get; set; }
Public ReadWrite Property MapProjection As MapProjection
Value
MapProjection MapProjection MapProjection

An MapProjection that specifies how to transform the latitudes and longitudes of the map.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

MapProjectionProperty MapProjectionProperty MapProjectionProperty

Identifies the MapProjection dependency property.

public : static DependencyProperty MapProjectionProperty { get; }
public static DependencyProperty MapProjectionProperty { get; }
Public Static ReadOnly Property MapProjectionProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the MapProjection dependency property.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

MapServiceToken MapServiceToken MapServiceToken

Gets or sets the authentication key required for using the MapControl and online mapping services.

public : Platform::String MapServiceToken { get; set; }
public string MapServiceToken { get; set; }
Public ReadWrite Property MapServiceToken As string
Value
Platform::String string string

The authentication key required for using the MapControl and online mapping services.

See Also

MapServiceTokenProperty MapServiceTokenProperty MapServiceTokenProperty

Identifies the MapServiceToken dependency property.

public : static DependencyProperty MapServiceTokenProperty { get; }
public static DependencyProperty MapServiceTokenProperty { get; }
Public Static ReadOnly Property MapServiceTokenProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the MapServiceToken dependency property.

See Also

Margin Margin Margin

Gets or sets the outer margin of a FrameworkElement.

(Inherited from FrameworkElement)

MarginProperty MarginProperty MarginProperty

Identifies the Margin dependency property.

(Inherited from FrameworkElement)

MaxHeight MaxHeight MaxHeight

Gets or sets the maximum height constraint of a FrameworkElement.

(Inherited from FrameworkElement)

MaxHeightProperty MaxHeightProperty MaxHeightProperty

Identifies the MaxHeight dependency property.

(Inherited from FrameworkElement)

MaxWidth MaxWidth MaxWidth

Gets or sets the maximum width constraint of a FrameworkElement.

(Inherited from FrameworkElement)

MaxWidthProperty MaxWidthProperty MaxWidthProperty

Identifies the MaxWidth dependency property.

(Inherited from FrameworkElement)

MaxZoomLevel MaxZoomLevel MaxZoomLevel

Gets the maximum zoom level for the map.

public : double MaxZoomLevel { get; }
public double MaxZoomLevel { get; }
Public ReadOnly Property MaxZoomLevel As double
Value
double double double

The maximum zoom level for the map.

Remarks

The maximum and minimum values of ZoomLevel depend on the type of map view: 2D, 3D, or Streetside.

Property2D range3D rangeStreetside range
ZoomLevel1-201-2024-26

See Also

MinHeight MinHeight MinHeight

Gets or sets the minimum height constraint of a FrameworkElement.

(Inherited from FrameworkElement)

MinHeightProperty MinHeightProperty MinHeightProperty

Identifies the MinHeight dependency property.

(Inherited from FrameworkElement)

MinWidth MinWidth MinWidth

Gets or sets the minimum width constraint of a FrameworkElement.

(Inherited from FrameworkElement)

MinWidthProperty MinWidthProperty MinWidthProperty

Identifies the MinWidth dependency property.

(Inherited from FrameworkElement)

MinZoomLevel MinZoomLevel MinZoomLevel

Gets the minimum zoom level for the map.

public : double MinZoomLevel { get; }
public double MinZoomLevel { get; }
Public ReadOnly Property MinZoomLevel As double
Value
double double double

The minimum zoom level for the map.

Remarks

See the remarks section of the MaxZoomLevel property.

See Also

Name Name Name

Gets or sets the identifying name of the object. When a XAML processor creates the object tree from XAML markup, run-time code can refer to the XAML-declared object by this name.

(Inherited from FrameworkElement)

NameProperty NameProperty NameProperty

Identifies the Name dependency property.

(Inherited from FrameworkElement)

NoFocusCandidateFoundEvent NoFocusCandidateFoundEvent NoFocusCandidateFoundEvent

Gets the identifier for the NoFocusCandidateFound routed event.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

NormalizedAnchorPointProperty NormalizedAnchorPointProperty NormalizedAnchorPointProperty

Identifies the MapControl.NormalizedAnchorPoint XAML attached property.

public : static DependencyProperty NormalizedAnchorPointProperty { get; }
public static DependencyProperty NormalizedAnchorPointProperty { get; }
Public Static ReadOnly Property NormalizedAnchorPointProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the MapControl.NormalizedAnchorPoint XAML attached property.

See Also

Opacity Opacity Opacity

Gets or sets the degree of the object's opacity.

(Inherited from UIElement)

OpacityProperty OpacityProperty OpacityProperty

Identifies the IsHitTestVisible dependency property.

(Inherited from UIElement)

Padding Padding Padding

Gets or sets the padding inside a control.

(Inherited from Control)

PaddingProperty PaddingProperty PaddingProperty

Identifies the Padding dependency property.

(Inherited from Control)

PanInteractionMode PanInteractionMode PanInteractionMode

Gets or sets a value that indicates if the pan gesture is recognized on the map.

public : MapPanInteractionMode PanInteractionMode { get; set; }
public MapPanInteractionMode PanInteractionMode { get; set; }
Public ReadWrite Property PanInteractionMode As MapPanInteractionMode
Value
MapPanInteractionMode MapPanInteractionMode MapPanInteractionMode

A value that indicates if the pan gesture is recognized on the map.

PanInteractionModeProperty PanInteractionModeProperty PanInteractionModeProperty

Identifies the PanInteractionMode dependency property.

public : static DependencyProperty PanInteractionModeProperty { get; }
public static DependencyProperty PanInteractionModeProperty { get; }
Public Static ReadOnly Property PanInteractionModeProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

Identifier for the PanInteractionMode dependency property.

Parent Parent Parent

Gets the parent object of this FrameworkElement in the object tree.

(Inherited from FrameworkElement)

PedestrianFeaturesVisible PedestrianFeaturesVisible PedestrianFeaturesVisible

Gets or sets a value that indicates whether pedestrian features such as public stairs are displayed on the map.

public : Platform::Boolean PedestrianFeaturesVisible { get; set; }
public bool PedestrianFeaturesVisible { get; set; }
Public ReadWrite Property PedestrianFeaturesVisible As bool
<!-- xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps" -->

<Maps:MapControl PedestrianFeaturesVisible="pedestrianFeaturesVisible"/>
- or -
<Maps:MapControl>
    <Maps:MapControl.PedestrianFeaturesVisible>pedestrianFeaturesVisible</Maps:MapControl.PedestrianFeaturesVisible>
</Maps:MapControl>

Value
Platform::Boolean bool bool

true if pedestrian features such as public stairs are displayed on the map; otherwise, false.

See Also

PedestrianFeaturesVisibleProperty PedestrianFeaturesVisibleProperty PedestrianFeaturesVisibleProperty

Identifies the PedestrianFeaturesVisible dependency property.

public : static DependencyProperty PedestrianFeaturesVisibleProperty { get; }
public static DependencyProperty PedestrianFeaturesVisibleProperty { get; }
Public Static ReadOnly Property PedestrianFeaturesVisibleProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the PedestrianFeaturesVisible dependency property.

See Also

Pitch Pitch Pitch

Gets the actual pitch of the map. Sometimes the pitch requested by setting the DesiredPitch property cannot be set.

public : double Pitch { get; }
public double Pitch { get; }
Public ReadOnly Property Pitch As double
Value
double double double

The actual pitch of the map. Sometimes the pitch requested by setting the property cannot be set.

See Also

PitchProperty PitchProperty PitchProperty

Identifies the Pitch dependency property.

public : static DependencyProperty PitchProperty { get; }
public static DependencyProperty PitchProperty { get; }
Public Static ReadOnly Property PitchProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Pitch dependency property.

See Also

PointerCanceledEvent PointerCanceledEvent PointerCanceledEvent

Gets the identifier for the PointerCanceled routed event.

(Inherited from UIElement)

PointerCaptureLostEvent PointerCaptureLostEvent PointerCaptureLostEvent

Gets the identifier for the PointerCaptureLost routed event.

(Inherited from UIElement)

PointerCaptures PointerCaptures PointerCaptures

Gets the set of all captured pointers, represented as Pointer values.

(Inherited from UIElement)

PointerCapturesProperty PointerCapturesProperty PointerCapturesProperty

Identifies the PointerCaptures dependency property.

(Inherited from UIElement)

PointerEnteredEvent PointerEnteredEvent PointerEnteredEvent

Gets the identifier for the PointerEntered routed event.

(Inherited from UIElement)

PointerExitedEvent PointerExitedEvent PointerExitedEvent

Gets the identifier for the PointerExited routed event.

(Inherited from UIElement)

PointerMovedEvent PointerMovedEvent PointerMovedEvent

Gets the identifier for the PointerMoved routed event.

(Inherited from UIElement)

PointerPressedEvent PointerPressedEvent PointerPressedEvent

Gets the identifier for the PointerPressed routed event.

(Inherited from UIElement)

PointerReleasedEvent PointerReleasedEvent PointerReleasedEvent

Gets the identifier for the PointerReleased routed event.

(Inherited from UIElement)

PointerWheelChangedEvent PointerWheelChangedEvent PointerWheelChangedEvent

Gets the identifier for the PointerWheelChanged routed event.

(Inherited from UIElement)

PreviewKeyDownEvent PreviewKeyDownEvent PreviewKeyDownEvent

Gets the identifier for the PreviewKeyDown routed event.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

PreviewKeyUpEvent PreviewKeyUpEvent PreviewKeyUpEvent

Gets the identifier for the PreviewKeyUp routed event.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Projection Projection Projection

Gets or sets the perspective projection (3-D effect) to apply when rendering this element.

(Inherited from UIElement)

ProjectionProperty ProjectionProperty ProjectionProperty

Identifies the Projection dependency property.

(Inherited from UIElement)

RenderSize RenderSize RenderSize

Gets the final render size of a UIElement. Use is not recommended, see Remarks.

(Inherited from UIElement)

RenderTransform RenderTransform RenderTransform

Gets or sets transform information that affects the rendering position of a UIElement.

(Inherited from UIElement)

RenderTransformOrigin RenderTransformOrigin RenderTransformOrigin

Gets or sets the origin point of any possible render transform declared by RenderTransform, relative to the bounds of the UIElement.

(Inherited from UIElement)

RenderTransformOriginProperty RenderTransformOriginProperty RenderTransformOriginProperty

Identifies the RenderTransformOrigin dependency property.

(Inherited from UIElement)

RenderTransformProperty RenderTransformProperty RenderTransformProperty

Identifies the RenderTransform dependency property.

(Inherited from UIElement)

RequestedTheme RequestedTheme RequestedTheme

Gets or sets the UI theme that is used by the UIElement (and its child elements) for resource determination. The UI theme you specify with RequestedTheme can override the app-level RequestedTheme.

(Inherited from FrameworkElement)

RequestedThemeProperty RequestedThemeProperty RequestedThemeProperty

Identifies the RequestedTheme dependency property.

(Inherited from FrameworkElement)

RequiresPointer RequiresPointer RequiresPointer

Gets or sets whether a UI element supports mouse mode, which emulates pointer interaction experiences with non-pointer input devices such as an Xbox gamepad or remote control.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

RequiresPointerProperty RequiresPointerProperty RequiresPointerProperty

Identifies the RequiresPointer dependency property.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Resources Resources Resources

Gets the locally defined resource dictionary. In XAML, you can establish resource items as child object elements of a frameworkElement.Resources property element, through XAML implicit collection syntax.

(Inherited from FrameworkElement)

RightTappedEvent RightTappedEvent RightTappedEvent

Gets the identifier for the RightTapped routed event.

(Inherited from UIElement)

RotateInteractionMode RotateInteractionMode RotateInteractionMode

Gets or sets a value that indicates if the map responds to the rotate gesture and if the corresponding UI control appears on the map.

public : MapInteractionMode RotateInteractionMode { get; set; }
public MapInteractionMode RotateInteractionMode { get; set; }
Public ReadWrite Property RotateInteractionMode As MapInteractionMode
Value
MapInteractionMode MapInteractionMode MapInteractionMode

A value that specifies if the map responds to the rotate gesture and if the corresponding UI control appears on the map.

RotateInteractionModeProperty RotateInteractionModeProperty RotateInteractionModeProperty

Identifies the RotateInteractionMode dependency property.

public : static DependencyProperty RotateInteractionModeProperty { get; }
public static DependencyProperty RotateInteractionModeProperty { get; }
Public Static ReadOnly Property RotateInteractionModeProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

Identifier for the RotateInteractionMode dependency property.

Routes Routes Routes

Gets the collection of MapRouteView objects displayed on the map.

public : IVector<MapRouteView> Routes { get; }
public IList<MapRouteView> Routes { get; }
Public ReadOnly Property Routes As IList<MapRouteView>
Value
IVector<MapRouteView> IList<MapRouteView> IList<MapRouteView>

The collection of MapRouteView objects displayed on the map.

Remarks

To display a route on a map, construct a MapRouteView with the MapRoute and add the MapRouteView to the Routes collection of the MapControl.

See Also

RoutesProperty RoutesProperty RoutesProperty

Identifies the Routes dependency property.

public : static DependencyProperty RoutesProperty { get; }
public static DependencyProperty RoutesProperty { get; }
Public Static ReadOnly Property RoutesProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Routes dependency property.

See Also

Scene Scene Scene

Gets or sets the MapScene associated with this MapControl.

public : MapScene Scene { get; set; }
public MapScene Scene { get; set; }
Public ReadWrite Property Scene As MapScene
Value
MapScene MapScene MapScene

The MapScene associated with this MapControl.

Remarks

Setting the scene is a synchronous operation, there is no animation involved.

SceneProperty SceneProperty SceneProperty

Identifies the Scene dependency property.

public : static DependencyProperty SceneProperty { get; }
public static DependencyProperty SceneProperty { get; }
Public Static ReadOnly Property SceneProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Scene dependency property.

See Also

Style Style Style

Specifies the style of the map - for example, a road map or an aerial map.

public : MapStyle Style { get; set; }
public MapStyle Style { get; set; }
Public ReadWrite Property Style As MapStyle
<!-- xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps" -->

<Maps:MapControl Style="style" />
- or -
<Maps:MapControl>
    <Maps:MapControl.Style>style</Maps:MapControl.Style>
</Maps:MapControl>

Value
MapStyle MapStyle MapStyle

The style of the map - for example, a road map or an aerial map.

Remarks

Important

Aerial styles are not available when the network is disconnected from the internet.

See Also

Style Style Style

Gets or sets an instance Style that is applied for this object during layout and rendering.

(Inherited from FrameworkElement)

StyleProperty StyleProperty StyleProperty

Identifies the Style dependency property.

(Inherited from FrameworkElement)

StyleProperty StyleProperty StyleProperty

Identifies the Style dependency property.

public : static DependencyProperty StyleProperty { get; }
public static DependencyProperty StyleProperty { get; }
Public Static ReadOnly Property StyleProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Style dependency property.

See Also

StyleSheet StyleSheet StyleSheet

Gets or sets an object that defines the style of the map control.

public : MapStyleSheet StyleSheet { get; set; }
public MapStyleSheet StyleSheet { get; set; }
Public ReadWrite Property StyleSheet As MapStyleSheet
Value
MapStyleSheet MapStyleSheet MapStyleSheet

An object that defines the style of the map control.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Examples

The following example sets the StyleSheet property by using the static MapControl.RoadDark method.


  myMap.StyleSheet = MapStyleSheet.RoadDark();

StyleSheetProperty StyleSheetProperty StyleSheetProperty

Identifies the StyleSheet dependency property.

public : static DependencyProperty StyleSheetProperty { get; }
public static DependencyProperty StyleSheetProperty { get; }
Public Static ReadOnly Property StyleSheetProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the StyleSheet dependency property.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

TabFocusNavigation TabFocusNavigation TabFocusNavigation

Gets or sets a value that modifies how tabbing and TabIndex work for this control.

Note

For Windows 10 Creators Update (build 10.0.15063) and newer, use this property of the UIElement base class instead of the TabNavigation property of a Control object.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

TabFocusNavigationProperty TabFocusNavigationProperty TabFocusNavigationProperty

Identifies the TabFocusNavigation dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

TabIndex TabIndex TabIndex

Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by pressing the Tab key.

(Inherited from Control)

TabIndexProperty TabIndexProperty TabIndexProperty

Identifies the TabIndex dependency property.

(Inherited from Control)

TabNavigation TabNavigation TabNavigation

Gets or sets a value that modifies how tabbing and TabIndex work for this control.

Note

For Windows 10 Creators Update (build 10.0.15063) and newer, the TabFocusNavigation property is available on the UIElement base class to include objects in the tab sequence that do not use a ControlTemplate.

(Inherited from Control)

TabNavigationProperty TabNavigationProperty TabNavigationProperty

Identifies the TabNavigation dependency property.

(Inherited from Control)

Tag Tag Tag

Gets or sets an arbitrary object value that can be used to store custom information about this object.

(Inherited from FrameworkElement)

TagProperty TagProperty TagProperty

Identifies the Tag dependency property.

(Inherited from FrameworkElement)

TappedEvent TappedEvent TappedEvent

Gets the identifier for the Tapped routed event.

(Inherited from UIElement)

TargetCamera TargetCamera TargetCamera

Gets the MapCamera settings that define the final position of the camera.

public : MapCamera TargetCamera { get; }
public MapCamera TargetCamera { get; }
Public ReadOnly Property TargetCamera As MapCamera
Value
MapCamera MapCamera MapCamera

The MapCamera settings that define the final position of the camera.

Remarks

During an animation of the map, the ActualCamera defines the current position of the map's camera and TargetCamera defines the final position of the camera.

Template Template Template

Gets or sets a control template. The control template defines the visual appearance of a control in UI, and is defined in XAML markup.

(Inherited from Control)

TemplateProperty TemplateProperty TemplateProperty

Identifies the Template dependency property.

(Inherited from Control)

TileSources TileSources TileSources

Gets or sets the collection of MapTileSource objects that are children of the MapControl.

public : IVector<MapTileSource> TileSources { get; }
public IList<MapTileSource> TileSources { get; }
Public ReadOnly Property TileSources As IList<MapTileSource>
Value
IVector<MapTileSource> IList<MapTileSource> IList<MapTileSource>

The collection of MapTileSource objects that are children of the MapControl.

See Also

TileSourcesProperty TileSourcesProperty TileSourcesProperty

Identifies the TileSources dependency property.

public : static DependencyProperty TileSourcesProperty { get; }
public static DependencyProperty TileSourcesProperty { get; }
Public Static ReadOnly Property TileSourcesProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the TileSources dependency property.

See Also

TiltInteractionMode TiltInteractionMode TiltInteractionMode

Gets or sets a value that indicates if the map responds to the tilt gesture and if the corresponding UI control appears on the map.

public : MapInteractionMode TiltInteractionMode { get; set; }
public MapInteractionMode TiltInteractionMode { get; set; }
Public ReadWrite Property TiltInteractionMode As MapInteractionMode
Value
MapInteractionMode MapInteractionMode MapInteractionMode

A value that specifies if the map responds to the tilt gesture and if the corresponding UI control appears on the map.

TiltInteractionModeProperty TiltInteractionModeProperty TiltInteractionModeProperty

Identifies the TiltInteractionMode dependency property.

public : static DependencyProperty TiltInteractionModeProperty { get; }
public static DependencyProperty TiltInteractionModeProperty { get; }
Public Static ReadOnly Property TiltInteractionModeProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

Identifier for the TiltInteractionMode dependency property.

TrafficFlowVisible TrafficFlowVisible TrafficFlowVisible

Gets or sets a value that indicates whether traffic conditions are displayed on the map.

public : Platform::Boolean TrafficFlowVisible { get; set; }
public bool TrafficFlowVisible { get; set; }
Public ReadWrite Property TrafficFlowVisible As bool
<!-- xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps" -->

<Maps:MapControl TrafficFlowVisible="trafficFlowVisible"/>
- or -
<Maps:MapControl>
    <Maps:MapControl.TrafficFlowVisible>trafficFlowVisible</Maps:MapControl.TrafficFlowVisible>
</Maps:MapControl>

Value
Platform::Boolean bool bool

true if traffic conditions are displayed on the map; otherwise, false.

See Also

TrafficFlowVisibleProperty TrafficFlowVisibleProperty TrafficFlowVisibleProperty

Identifies the TrafficFlowVisible dependency property.

public : static DependencyProperty TrafficFlowVisibleProperty { get; }
public static DependencyProperty TrafficFlowVisibleProperty { get; }
Public Static ReadOnly Property TrafficFlowVisibleProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the TrafficFlowVisible dependency property.

See Also

Transform3D Transform3D Transform3D

Gets or sets the 3-D transform effect to apply when rendering this element.

(Inherited from UIElement)

Transform3DProperty Transform3DProperty Transform3DProperty

Identifies the Transform3D dependency property.

(Inherited from UIElement)

TransformOrigin TransformOrigin TransformOrigin

Gets or sets a point to which the logical center of the map is transformed.

public : Point TransformOrigin { get; set; }
public Point TransformOrigin { get; set; }
Public ReadWrite Property TransformOrigin As Point
Value
Point Point Point

A point to which the logical center of the map is transformed. Use a value between 0 and 1 (but not 0 or 1) for the X and Y properties of the Point.

Remarks

The TransformOrigin represents a point around which the map rotates – for example, when the user manipulates the map, or when you change the value of the Heading property. Consider setting the Y value of the TransformOrigin to a value greater than 0.5 when the map is tilted - that is, when the Pitch is greater than 0. This moves the logical center closer to the user - that is, closer to the bottom of the screen - and shows the user more of what’s in the distance when the map is rotated.

After you set the value of the TransformOrigin property for the MapControl, the Center property continues to return the previous center until you set the Center to the same value as the TransformOrigin.

See Also

TransformOriginProperty TransformOriginProperty TransformOriginProperty

Identifies the TransformOrigin dependency property.

public : static DependencyProperty TransformOriginProperty { get; }
public static DependencyProperty TransformOriginProperty { get; }
Public Static ReadOnly Property TransformOriginProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the TransformOrigin dependency property.

See Also

TransitFeaturesEnabled TransitFeaturesEnabled TransitFeaturesEnabled

This property is not implemented.

public : Platform::Boolean TransitFeaturesEnabled { get; set; }
public bool TransitFeaturesEnabled { get; set; }
Public ReadWrite Property TransitFeaturesEnabled As bool
Value
Platform::Boolean bool bool

This property is not implemented.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

TransitFeaturesEnabledProperty TransitFeaturesEnabledProperty TransitFeaturesEnabledProperty

This property is not implemented.

public : static DependencyProperty TransitFeaturesEnabledProperty { get; }
public static DependencyProperty TransitFeaturesEnabledProperty { get; }
Public Static ReadOnly Property TransitFeaturesEnabledProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

This property is not implemented.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

TransitFeaturesVisible TransitFeaturesVisible TransitFeaturesVisible

Gets or sets a value that indicates if transit features are displayed on the map.

public : Platform::Boolean TransitFeaturesVisible { get; set; }
public bool TransitFeaturesVisible { get; set; }
Public ReadWrite Property TransitFeaturesVisible As bool
Value
Platform::Boolean bool bool

true if transit features are displayed on the map; otherwise, false.

TransitFeaturesVisibleProperty TransitFeaturesVisibleProperty TransitFeaturesVisibleProperty

Identifies the TransitFeaturesVisible dependency property.

public : static DependencyProperty TransitFeaturesVisibleProperty { get; }
public static DependencyProperty TransitFeaturesVisibleProperty { get; }
Public Static ReadOnly Property TransitFeaturesVisibleProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the TransitFeaturesVisible dependency property.

Transitions Transitions Transitions

Gets or sets the collection of Transition style elements that apply to a UIElement.

(Inherited from UIElement)

TransitionsProperty TransitionsProperty TransitionsProperty

Identifies the Transitions dependency property.

(Inherited from UIElement)

Triggers Triggers Triggers

Gets the collection of triggers for animations that are defined for a FrameworkElement. Not commonly used. See Remarks.

(Inherited from FrameworkElement)

UseLayoutRounding UseLayoutRounding UseLayoutRounding

Gets or sets a value that determines whether rendering for the object and its visual subtree should use rounding behavior that aligns rendering to whole pixels.

(Inherited from UIElement)

UseLayoutRoundingProperty UseLayoutRoundingProperty UseLayoutRoundingProperty

Identifies the UseLayoutRounding dependency property.

(Inherited from UIElement)

UseSystemFocusVisuals UseSystemFocusVisuals UseSystemFocusVisuals

Gets or sets a value that indicates whether the control uses focus visuals that are drawn by the system or those defined in the control template.

(Inherited from Control)

UseSystemFocusVisualsProperty UseSystemFocusVisualsProperty UseSystemFocusVisualsProperty

Identifies the UseSystemFocusVisuals dependency property.

(Inherited from Control)

VerticalAlignment VerticalAlignment VerticalAlignment

Gets or sets the vertical alignment characteristics that are applied to a FrameworkElement when it is composed in a parent object such as a panel or items control.

(Inherited from FrameworkElement)

VerticalAlignmentProperty VerticalAlignmentProperty VerticalAlignmentProperty

Identifies the VerticalAlignment dependency property.

(Inherited from FrameworkElement)

VerticalContentAlignment VerticalContentAlignment VerticalContentAlignment

Gets or sets the vertical alignment of the control's content.

(Inherited from Control)

VerticalContentAlignmentProperty VerticalContentAlignmentProperty VerticalContentAlignmentProperty

Identifies the VerticalContentAlignment dependency property.

(Inherited from Control)

ViewPadding ViewPadding ViewPadding

Gets or sets the padding inside a map control.

public : Thickness ViewPadding { get; set; }
public Thickness ViewPadding { get; set; }
Public ReadWrite Property ViewPadding As Thickness
Value
Thickness Thickness Thickness

The amount of space between the content of a MapControl and its Margin or Border. The default is a Thickness with values of 0 on all four sides.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

For more information about how this property behaves, see the Control.Padding property.

ViewPaddingProperty ViewPaddingProperty ViewPaddingProperty

Identifies the ViewPadding dependency property.

public : static DependencyProperty ViewPaddingProperty { get; }
public static DependencyProperty ViewPaddingProperty { get; }
Public Static ReadOnly Property ViewPaddingProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the ViewPadding dependency property.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Visibility Visibility Visibility

Gets or sets the visibility of a UIElement. A UIElement that is not visible is not rendered and does not communicate its desired size to layout.

(Inherited from UIElement)

VisibilityProperty VisibilityProperty VisibilityProperty

Identifies the Visibility dependency property.

(Inherited from UIElement)

WatermarkMode WatermarkMode WatermarkMode

Gets or sets a value that determines when the watermark of the map is displayed.

public : MapWatermarkMode WatermarkMode { get; set; }
public MapWatermarkMode WatermarkMode { get; set; }
Public ReadWrite Property WatermarkMode As MapWatermarkMode
<!-- xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps" -->

<Maps:MapControl WatermarkMode="watermarkMode"/>
- or -
<Maps:MapControl>
    <Maps:MapControl.WatermarkMode>watermarkMode</Maps:MapControl.WatermarkMode>
</Maps:MapControl>

Value
MapWatermarkMode MapWatermarkMode MapWatermarkMode

A value that determines when the watermark of the map is displayed.

See Also

WatermarkModeProperty WatermarkModeProperty WatermarkModeProperty

Identifies the WatermarkMode dependency property.

public : static DependencyProperty WatermarkModeProperty { get; }
public static DependencyProperty WatermarkModeProperty { get; }
Public Static ReadOnly Property WatermarkModeProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the WatermarkMode dependency property.

See Also

Width Width Width

Gets or sets the width of a FrameworkElement.

(Inherited from FrameworkElement)

WidthProperty WidthProperty WidthProperty

Identifies the Width dependency property.

(Inherited from FrameworkElement)

XYFocusDown XYFocusDown XYFocusDown

Gets or sets the object that gets focus when a user presses the Directional Pad (D-pad) down.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

XYFocusDownNavigationStrategy XYFocusDownNavigationStrategy XYFocusDownNavigationStrategy

Gets or sets a value that specifies the strategy used to determine the target element of a down navigation.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

XYFocusDownNavigationStrategyProperty XYFocusDownNavigationStrategyProperty XYFocusDownNavigationStrategyProperty

Identifies the XYFocusDownNavigationStrategy dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

XYFocusDownProperty XYFocusDownProperty XYFocusDownProperty

Identifies the XYFocusDown dependency property.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

XYFocusKeyboardNavigation XYFocusKeyboardNavigation XYFocusKeyboardNavigation

Gets or sets a value that enables or disables navigation using the keyboard directional arrows.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

XYFocusKeyboardNavigationProperty XYFocusKeyboardNavigationProperty XYFocusKeyboardNavigationProperty

Identifies the XYFocusKeyboardNavigation dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

XYFocusLeft XYFocusLeft XYFocusLeft

Gets or sets the object that gets focus when a user presses the Directional Pad (D-pad) left.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

XYFocusLeftNavigationStrategy XYFocusLeftNavigationStrategy XYFocusLeftNavigationStrategy

Gets or sets a value that specifies the strategy used to determine the target element of a left navigation.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

XYFocusLeftNavigationStrategyProperty XYFocusLeftNavigationStrategyProperty XYFocusLeftNavigationStrategyProperty

Identifies the XYFocusLeftNavigationStrategy dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

XYFocusLeftProperty XYFocusLeftProperty XYFocusLeftProperty

Identifies the XYFocusLeft dependency property.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

XYFocusRight XYFocusRight XYFocusRight

Gets or sets the object that gets focus when a user presses the Directional Pad (D-pad) right.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

XYFocusRightNavigationStrategy XYFocusRightNavigationStrategy XYFocusRightNavigationStrategy

Gets or sets a value that specifies the strategy used to determine the target element of a right navigation.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

XYFocusRightNavigationStrategyProperty XYFocusRightNavigationStrategyProperty XYFocusRightNavigationStrategyProperty

Identifies the XYFocusRightNavigationStrategy dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

XYFocusRightProperty XYFocusRightProperty XYFocusRightProperty

Identifies the XYFocusRight dependency property.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

XYFocusUp XYFocusUp XYFocusUp

Gets or sets the object that gets focus when a user presses the Directional Pad (D-pad) up.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

XYFocusUpNavigationStrategy XYFocusUpNavigationStrategy XYFocusUpNavigationStrategy

Gets or sets a value that specifies the strategy used to determine the target element of an up navigation.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

XYFocusUpNavigationStrategyProperty XYFocusUpNavigationStrategyProperty XYFocusUpNavigationStrategyProperty

Identifies the XYFocusUpNavigationStrategy dependency property.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

XYFocusUpProperty XYFocusUpProperty XYFocusUpProperty

Identifies the XYFocusUp dependency property.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

ZoomInteractionMode ZoomInteractionMode ZoomInteractionMode

Gets or sets a value that indicates if the map responds to the zoom gesture and if the corresponding UI control appears on the map.

public : MapInteractionMode ZoomInteractionMode { get; set; }
public MapInteractionMode ZoomInteractionMode { get; set; }
Public ReadWrite Property ZoomInteractionMode As MapInteractionMode
Value
MapInteractionMode MapInteractionMode MapInteractionMode

A value that specifies if the map responds to the zoom gesture and if the corresponding UI control appears on the map.

ZoomInteractionModeProperty ZoomInteractionModeProperty ZoomInteractionModeProperty

Identifies the ZoomInteractionMode dependency property.

public : static DependencyProperty ZoomInteractionModeProperty { get; }
public static DependencyProperty ZoomInteractionModeProperty { get; }
Public Static ReadOnly Property ZoomInteractionModeProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

Identifier for the ZoomInteractionMode dependency property.

ZoomLevel ZoomLevel ZoomLevel

Gets or sets the zoom level of the map, which is a value between 1 and 20 in 2D views.

public : double ZoomLevel { get; set; }
public double ZoomLevel { get; set; }
Public ReadWrite Property ZoomLevel As double
<!-- xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps" -->

<Maps:MapControl ZoomLevel="zoomLevel"/>
- or -
<Maps:MapControl>
    <Maps:MapControl.ZoomLevel>zoomLevel</Maps:MapControl.ZoomLevel>
</Maps:MapControl>

Value
double double double

The zoom level of the map, which is a value between 1 and 20 in 2D views.

Remarks

See the remarks section of the TryZoomInAsync method.

See Also

ZoomLevelProperty ZoomLevelProperty ZoomLevelProperty

Identifies the ZoomLevel dependency property.

public : static DependencyProperty ZoomLevelProperty { get; }
public static DependencyProperty ZoomLevelProperty { get; }
Public Static ReadOnly Property ZoomLevelProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the ZoomLevel dependency property.

See Also

Methods

AddHandler(RoutedEvent,Object,Boolean) AddHandler(RoutedEvent,Object,Boolean) AddHandler(RoutedEvent,Object,Boolean)

Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Specify handledEventsToo as true to have the provided handler be invoked even if the event is handled elsewhere.

(Inherited from UIElement)

ApplyTemplate ApplyTemplate ApplyTemplate

Loads the relevant control template so that its parts can be referenced.

(Inherited from Control)

Arrange(Rect) Arrange(Rect) Arrange(Rect)

Positions child objects and determines a size for a UIElement. Parent objects that implement custom layout for their child elements should call this method from their layout override implementations to form a recursive layout update.

(Inherited from UIElement)

ArrangeOverride(Size) ArrangeOverride(Size) ArrangeOverride(Size)

Provides the behavior for the "Arrange" pass of layout. Classes can override this method to define their own "Arrange" pass behavior.

(Inherited from FrameworkElement)

CancelDirectManipulations CancelDirectManipulations CancelDirectManipulations

Cancels ongoing direct manipulation processing (system-defined panning/zooming) on any ScrollViewer parent that contains the current UIElement.

(Inherited from UIElement)

CapturePointer(Pointer) CapturePointer(Pointer) CapturePointer(Pointer)

Sets pointer capture to a UIElement. Once captured, only the element that has capture will fire pointer-related events.

(Inherited from UIElement)

ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

Clears the local value of a dependency property.

(Inherited from DependencyObject)

DeferTree(DependencyObject) DeferTree(DependencyObject) DeferTree(DependencyObject)

Removes the specified element from the XAML visual tree in a way that it can be undeferred later.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

FindMapElementsAtOffset(Point) FindMapElementsAtOffset(Point) FindMapElementsAtOffset(Point)

Retrieves the collection of MapElement objects at the specified point on the map.

public : IVectorView<MapElement> FindMapElementsAtOffset(Point offset)
public IReadOnlyList<MapElement> FindMapElementsAtOffset(Point offset)
Public Function FindMapElementsAtOffset(offset As Point) As IReadOnlyList<MapElement>( Of MapElement )
Parameters
offset
Point Point Point

The point on the map from which to retrieve the collection of MapElement objects.

Returns
IVectorView<MapElement> IReadOnlyList<MapElement> IReadOnlyList<MapElement>

The collection of MapElement objects at the specified point on the map.

See Also

FindMapElementsAtOffset(Point, Double) FindMapElementsAtOffset(Point, Double) FindMapElementsAtOffset(Point, Double)

Retrieves the collection of MapElement objects within the specified radius.

public : IVectorView<MapElement> FindMapElementsAtOffset(Point offset, double radius)
public IReadOnlyList<MapElement> FindMapElementsAtOffset(Point offset, Double radius)
Public Function FindMapElementsAtOffset(offset As Point, radius As Double) As IReadOnlyList<MapElement>( Of MapElement )
Parameters
offset
Point Point Point

The point on the map that marks the center of a radius from which to retrieve the collection of MapElement objects.

radius
double Double Double

A number that's added to the offset to mark the edge of the radius.

Returns
IVectorView<MapElement> IReadOnlyList<MapElement> IReadOnlyList<MapElement>

The collection of MapElement objects within the specified radius.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

Use this overload to retrieve a collection of map objects by using a hit test area that your app captures from touch interactions.

See Also

FindName(String) FindName(String) FindName(String)

Retrieves an object that has the specified identifier name.

(Inherited from FrameworkElement)

FindSubElementsForTouchTargeting(Point,Rect) FindSubElementsForTouchTargeting(Point,Rect) FindSubElementsForTouchTargeting(Point,Rect)

Enables a UIElement subclass to expose child elements that assist with resolving touch targeting.

(Inherited from UIElement)

Focus(FocusState) Focus(FocusState) Focus(FocusState)

Attempts to set the focus on the control.

(Inherited from Control)

GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

Returns any base value established for a dependency property, which would apply in cases where an animation is not active.

(Inherited from DependencyObject)

GetBindingExpression(DependencyProperty) GetBindingExpression(DependencyProperty) GetBindingExpression(DependencyProperty)

Returns the BindingExpression that represents the binding on the specified property.

(Inherited from FrameworkElement)

GetChildrenInTabFocusOrder GetChildrenInTabFocusOrder GetChildrenInTabFocusOrder

Enables a UIElement subclass to expose child elements that take part in Tab focus.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

GetIsTemplateFocusTarget(FrameworkElement) GetIsTemplateFocusTarget(FrameworkElement) GetIsTemplateFocusTarget(FrameworkElement)

Gets the value of the Control.IsTemplateFocusTarget XAML attached property for the target element.

(Inherited from Control)

GetIsTemplateKeyTipTarget(DependencyObject) GetIsTemplateKeyTipTarget(DependencyObject) GetIsTemplateKeyTipTarget(DependencyObject)

Gets the value of the Control.IsTemplateKeyTipTarget XAML attached property for the target element.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

GetLocation(DependencyObject) GetLocation(DependencyObject) GetLocation(DependencyObject)

Gets the value of the MapControl.Location XAML attached property from the specified child element of a MapControl. The location is the geographic location on the MapControl at which the MapControl.NormalizedAnchorPoint of the child element is positioned.

public : static Geopoint GetLocation(DependencyObject element)
public static Geopoint GetLocation(DependencyObject element)
Public Static Function GetLocation(element As DependencyObject) As Geopoint
Parameters
element
DependencyObject DependencyObject DependencyObject

The element from which to read the property value.

Returns

The value of the MapControl.Location XAML attached property on the specified child element of a MapControl.

See Also

GetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint) GetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint) GetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint)

Converts a point on the map to a geographic location by using the specified altitude reference system.

Note

This method is deprecated. Use the TryGetLocationFromOffset method instead.

public : void GetLocationFromOffset(Point offset, AltitudeReferenceSystem desiredReferenceSystem, Geopoint location)
public void GetLocationFromOffset(Point offset, AltitudeReferenceSystem desiredReferenceSystem, Geopoint location)
Public Function GetLocationFromOffset(offset As Point, desiredReferenceSystem As AltitudeReferenceSystem, location As Geopoint) As void
Parameters
offset
Point Point Point

A point on the map to convert to a geographic location.

desiredReferenceSystem
AltitudeReferenceSystem AltitudeReferenceSystem AltitudeReferenceSystem

The altitude reference system of the geographic point. A value of Unspecified for the altitude reference system has the same effect as using the default GetLocationFromOffset(Windows.Foundation.Point offset, Windows.Devices.Geolocation.Geopoint location) overload.

location
Geopoint Geopoint Geopoint

When this method returns, contains the corresponding geographic location.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

This method provides an instance of a Geopoint. That Geopoint contains a BasicGeoPosition. object. The desiredReferenceSystem parameter sets the Altitude field of that object.

This method will throw an exception if the point is invalid.

Note

An AltitudeReferenceSystem of Ellipsoid might not be supported.

GetLocationFromOffset(Point, Geopoint) GetLocationFromOffset(Point, Geopoint) GetLocationFromOffset(Point, Geopoint)

Converts a point on the map to a geographic location.

Note

This method is deprecated. Use the TryGetLocationFromOffset method instead.

public : void GetLocationFromOffset(Point offset, Geopoint location)
public void GetLocationFromOffset(Point offset, Geopoint location)
Public Function GetLocationFromOffset(offset As Point, location As Geopoint) As void
Parameters
offset
Point Point Point

A point on the map to convert to a geographic location.

location
Geopoint Geopoint Geopoint

When this method returns, contains the corresponding geographic location.

Remarks

This method will throw an exception if the point is invalid.

See Also

GetNormalizedAnchorPoint(DependencyObject) GetNormalizedAnchorPoint(DependencyObject) GetNormalizedAnchorPoint(DependencyObject)

Gets the value of the MapControl.NormalizedAnchorPoint XAML attached property from the specified child element of a MapControl. The anchor point is the point on the child element that is positioned at the point on the MapControl specified by the MapControl.Location attached property.

public : static Point GetNormalizedAnchorPoint(DependencyObject element)
public static Point GetNormalizedAnchorPoint(DependencyObject element)
Public Static Function GetNormalizedAnchorPoint(element As DependencyObject) As Point
Parameters
element
DependencyObject DependencyObject DependencyObject

The element from which to read the property value.

Returns

The value of the MapControl.NormalizedAnchorPoint XAML attached property on the specified child element of a MapControl.

See Also

GetOffsetFromLocation(Geopoint, Point) GetOffsetFromLocation(Geopoint, Point) GetOffsetFromLocation(Geopoint, Point)

Converts a geographic location to a point on the map.

public : void GetOffsetFromLocation(Geopoint location, Point offset)
public void GetOffsetFromLocation(Geopoint location, Point offset)
Public Function GetOffsetFromLocation(location As Geopoint, offset As Point) As void
Parameters
location
Geopoint Geopoint Geopoint

A geographic location to convert to a point on the map.

offset
Point Point Point

When this method returns, contains the corresponding point on the map.

Remarks

This method returns a valid point only when the geographic location appears within the map control view.

Compare the GetLocationFromOffset method.

See Also

GetTemplateChild(String) GetTemplateChild(String) GetTemplateChild(String)

Retrieves the named element in the instantiated ControlTemplate visual tree.

(Inherited from Control)

GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

Returns the current effective value of a dependency property from a DependencyObject.

(Inherited from DependencyObject)

GetVisibleRegion(MapVisibleRegionKind) GetVisibleRegion(MapVisibleRegionKind) GetVisibleRegion(MapVisibleRegionKind)

Gets the visible region of the map control.

public : Geopath GetVisibleRegion(MapVisibleRegionKind region)
public Geopath GetVisibleRegion(MapVisibleRegionKind region)
Public Function GetVisibleRegion(region As MapVisibleRegionKind) As Geopath
Parameters
Returns

The geopath indicating the visible region of the map control. The returned value can be null when a valid visible region cannot be calculated.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

GoToElementStateCore(String,Boolean) GoToElementStateCore(String,Boolean) GoToElementStateCore(String,Boolean)

When implemented in a derived class, enables per-state construction of a visual tree for a control template in code, rather than by loading XAML for all states at control startup.

(Inherited from FrameworkElement)

InvalidateArrange InvalidateArrange InvalidateArrange

Invalidates the arrange state (layout) for a UIElement. After the invalidation, the UIElement will have its layout updated, which will occur asynchronously.

(Inherited from UIElement)

InvalidateMeasure InvalidateMeasure InvalidateMeasure

Invalidates the measurement state (layout) for a UIElement.

(Inherited from UIElement)

IsLocationInView(Geopoint, Boolean) IsLocationInView(Geopoint, Boolean) IsLocationInView(Geopoint, Boolean)

Determines whether the specified geographic location is located in the portion of the map currently visible in the MapControl.

public : void IsLocationInView(Geopoint location, bool isInView)
public void IsLocationInView(Geopoint location, Boolean isInView)
Public Function IsLocationInView(location As Geopoint, isInView As Boolean) As void
Parameters
location
Geopoint Geopoint Geopoint

A geographic location.

isInView
bool Boolean Boolean

When this method returns, contains true if the specified geographic location is located in the portion of the map currently visible in the MapControl; otherwise, contains false.

See Also

Measure(Size) Measure(Size) Measure(Size)

Updates the DesiredSize of a UIElement. Typically, objects that implement custom layout for their layout children call this method from their own MeasureOverride implementations to form a recursive layout update.

(Inherited from UIElement)

MeasureOverride(Size) MeasureOverride(Size) MeasureOverride(Size)

Provides the behavior for the "Measure" pass of the layout cycle. Classes can override this method to define their own "Measure" pass behavior.

(Inherited from FrameworkElement)

OnApplyTemplate OnApplyTemplate OnApplyTemplate

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.

(Inherited from FrameworkElement)

OnCharacterReceived(CharacterReceivedRoutedEventArgs) OnCharacterReceived(CharacterReceivedRoutedEventArgs) OnCharacterReceived(CharacterReceivedRoutedEventArgs)

Called before the CharacterReceived event occurs.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

OnCreateAutomationPeer OnCreateAutomationPeer OnCreateAutomationPeer

When implemented in a derived class, returns class-specific AutomationPeer implementations for the Microsoft UI Automation infrastructure.

(Inherited from UIElement)

OnDisconnectVisualChildren OnDisconnectVisualChildren OnDisconnectVisualChildren

Override this method to implement how layout and logic should behave when items are removed from a class-specific content or children property.

(Inherited from UIElement)

OnDoubleTapped(DoubleTappedRoutedEventArgs) OnDoubleTapped(DoubleTappedRoutedEventArgs) OnDoubleTapped(DoubleTappedRoutedEventArgs)

Called before the DoubleTapped event occurs.

(Inherited from Control)

OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs)

Called before the DragEnter event occurs.

(Inherited from Control)

OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs)

Called before the DragLeave event occurs.

(Inherited from Control)

OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs)

Called before the DragOver event occurs.

(Inherited from Control)

OnDrop(DragEventArgs) OnDrop(DragEventArgs) OnDrop(DragEventArgs)

Called before the Drop event occurs.

(Inherited from Control)

OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs)

Called before the GotFocus event occurs.

(Inherited from Control)

OnHolding(HoldingRoutedEventArgs) OnHolding(HoldingRoutedEventArgs) OnHolding(HoldingRoutedEventArgs)

Called before the Holding event occurs.

(Inherited from Control)

OnKeyDown(KeyRoutedEventArgs) OnKeyDown(KeyRoutedEventArgs) OnKeyDown(KeyRoutedEventArgs)

Called before the KeyDown event occurs.

(Inherited from Control)

OnKeyUp(KeyRoutedEventArgs) OnKeyUp(KeyRoutedEventArgs) OnKeyUp(KeyRoutedEventArgs)

Called before the KeyUp event occurs.

(Inherited from Control)

OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs)

Called before the LostFocus event occurs.

(Inherited from Control)

OnManipulationCompleted(ManipulationCompletedRoutedEventArgs) OnManipulationCompleted(ManipulationCompletedRoutedEventArgs) OnManipulationCompleted(ManipulationCompletedRoutedEventArgs)

Called before the ManipulationCompleted event occurs.

(Inherited from Control)

OnManipulationDelta(ManipulationDeltaRoutedEventArgs) OnManipulationDelta(ManipulationDeltaRoutedEventArgs) OnManipulationDelta(ManipulationDeltaRoutedEventArgs)

Called before the ManipulationDelta event occurs.

(Inherited from Control)

OnManipulationInertiaStarting(ManipulationInertiaStartingRoutedEventArgs) OnManipulationInertiaStarting(ManipulationInertiaStartingRoutedEventArgs) OnManipulationInertiaStarting(ManipulationInertiaStartingRoutedEventArgs)

Called before the ManipulationInertiaStarting event occurs.

(Inherited from Control)

OnManipulationStarted(ManipulationStartedRoutedEventArgs) OnManipulationStarted(ManipulationStartedRoutedEventArgs) OnManipulationStarted(ManipulationStartedRoutedEventArgs)

Called before the ManipulationStarted event occurs.

(Inherited from Control)

OnManipulationStarting(ManipulationStartingRoutedEventArgs) OnManipulationStarting(ManipulationStartingRoutedEventArgs) OnManipulationStarting(ManipulationStartingRoutedEventArgs)

Called before the ManipulationStarting event occurs.

(Inherited from Control)

OnPointerCanceled(PointerRoutedEventArgs) OnPointerCanceled(PointerRoutedEventArgs) OnPointerCanceled(PointerRoutedEventArgs)

Called before the PointerCanceled event occurs.

(Inherited from Control)

OnPointerCaptureLost(PointerRoutedEventArgs) OnPointerCaptureLost(PointerRoutedEventArgs) OnPointerCaptureLost(PointerRoutedEventArgs)

Called before the PointerCaptureLost event occurs.

(Inherited from Control)

OnPointerEntered(PointerRoutedEventArgs) OnPointerEntered(PointerRoutedEventArgs) OnPointerEntered(PointerRoutedEventArgs)

Called before the PointerEntered event occurs.

(Inherited from Control)

OnPointerExited(PointerRoutedEventArgs) OnPointerExited(PointerRoutedEventArgs) OnPointerExited(PointerRoutedEventArgs)

Called before the PointerExited event occurs.

(Inherited from Control)

OnPointerMoved(PointerRoutedEventArgs) OnPointerMoved(PointerRoutedEventArgs) OnPointerMoved(PointerRoutedEventArgs)

Called before the PointerMoved event occurs.

(Inherited from Control)

OnPointerPressed(PointerRoutedEventArgs) OnPointerPressed(PointerRoutedEventArgs) OnPointerPressed(PointerRoutedEventArgs)

Called before the PointerPressed event occurs.

(Inherited from Control)

OnPointerReleased(PointerRoutedEventArgs) OnPointerReleased(PointerRoutedEventArgs) OnPointerReleased(PointerRoutedEventArgs)

Called before the PointerReleased event occurs.

(Inherited from Control)

OnPointerWheelChanged(PointerRoutedEventArgs) OnPointerWheelChanged(PointerRoutedEventArgs) OnPointerWheelChanged(PointerRoutedEventArgs)

Called before the PointerWheelChanged event occurs.

(Inherited from Control)

OnPreviewKeyDown(KeyRoutedEventArgs) OnPreviewKeyDown(KeyRoutedEventArgs) OnPreviewKeyDown(KeyRoutedEventArgs)

Called before the PreviewKeyDown event occurs.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

OnPreviewKeyUp(KeyRoutedEventArgs) OnPreviewKeyUp(KeyRoutedEventArgs) OnPreviewKeyUp(KeyRoutedEventArgs)

Called before the PreviewKeyUp event occurs.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs) OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs) OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs)

Called just before a keyboard shortcut (accelerator) is processed in your app. Invoked whenever application code or internal processes call ProcessKeyboardAccelerators. Override this method to influence the default accelerator handling.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

OnRightTapped(RightTappedRoutedEventArgs) OnRightTapped(RightTappedRoutedEventArgs) OnRightTapped(RightTappedRoutedEventArgs)

Called before the RightTapped event occurs.

(Inherited from Control)

OnTapped(TappedRoutedEventArgs) OnTapped(TappedRoutedEventArgs) OnTapped(TappedRoutedEventArgs)

Called before the Tapped event occurs.

(Inherited from Control)

ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

Returns the local value of a dependency property, if a local value is set.

(Inherited from DependencyObject)

RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)

Registers a notification function for listening to changes to a specific DependencyProperty on this DependencyObject instance.

(Inherited from DependencyObject)

ReleasePointerCapture(Pointer) ReleasePointerCapture(Pointer) ReleasePointerCapture(Pointer)

Releases pointer captures for capture of one specific pointer by this UIElement.

(Inherited from UIElement)

ReleasePointerCaptures ReleasePointerCaptures ReleasePointerCaptures

Releases all pointer captures held by this element.

(Inherited from UIElement)

RemoveFocusEngagement RemoveFocusEngagement RemoveFocusEngagement

Releases focus from the control boundaries for a control that has focus engagement (for game pad/remote interaction).

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

RemoveHandler(RoutedEvent,Object) RemoveHandler(RoutedEvent,Object) RemoveHandler(RoutedEvent,Object)

Removes the specified routed event handler from this UIElement. Typically the handler in question was added by AddHandler.

(Inherited from UIElement)

SetBinding(DependencyProperty,BindingBase) SetBinding(DependencyProperty,BindingBase) SetBinding(DependencyProperty,BindingBase)

Attaches a binding to a FrameworkElement, using the provided binding object

.

(Inherited from FrameworkElement)

SetIsTemplateFocusTarget(FrameworkElement,Boolean) SetIsTemplateFocusTarget(FrameworkElement,Boolean) SetIsTemplateFocusTarget(FrameworkElement,Boolean)

Sets the value of the Control.IsTemplateFocusTarget XAML attached property for a target element.

(Inherited from Control)

SetIsTemplateKeyTipTarget(DependencyObject,Boolean) SetIsTemplateKeyTipTarget(DependencyObject,Boolean) SetIsTemplateKeyTipTarget(DependencyObject,Boolean)

Sets the value of the Control.IsTemplateKeyTipTarget XAML attached property for a target element.

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

SetLocation(DependencyObject, Geopoint) SetLocation(DependencyObject, Geopoint) SetLocation(DependencyObject, Geopoint)

Sets the value of the MapControl.Location XAML attached property on the specified child element of a MapControl. The location is the geographic location on the MapControl at which the MapControl.NormalizedAnchorPoint of the child element is positioned.

public : static void SetLocation(DependencyObject element, Geopoint value)
public static void SetLocation(DependencyObject element, Geopoint value)
Public Static Function SetLocation(element As DependencyObject, value As Geopoint) As void
Parameters
element
DependencyObject DependencyObject DependencyObject

The element on which to set the property value.

value
Geopoint Geopoint Geopoint

The value of the MapControl.Location XAML attached property to set on the specified child element of a MapControl.

See Also

SetNormalizedAnchorPoint(DependencyObject, Point) SetNormalizedAnchorPoint(DependencyObject, Point) SetNormalizedAnchorPoint(DependencyObject, Point)

Sets the value of the MapControl.NormalizedAnchorPoint XAML attached property on the specified child element of a MapControl. The anchor point is the point on the child element that is positioned at the point on the MapControl specified by the MapControl.Location attached property.

public : static void SetNormalizedAnchorPoint(DependencyObject element, Point value)
public static void SetNormalizedAnchorPoint(DependencyObject element, Point value)
Public Static Function SetNormalizedAnchorPoint(element As DependencyObject, value As Point) As void
Parameters
element
DependencyObject DependencyObject DependencyObject

The element on which to set the property value.

value
Point Point Point

The value of the MapControl.NormalizedAnchorPoint XAML attached property to set on the specified child element of a MapControl.

See Also

SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object)

Sets the local value of a dependency property on a DependencyObject.

(Inherited from DependencyObject)

StartBringIntoView StartBringIntoView StartBringIntoView

Initiates a request to the XAML framework to bring the element into view within any scrollable regions it is contained within.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

StartBringIntoView(BringIntoViewOptions) StartBringIntoView(BringIntoViewOptions) StartBringIntoView(BringIntoViewOptions)

Initiates a request to the XAML framework to bring the element into view using the specified options.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

StartContinuousPan(Double, Double) StartContinuousPan(Double, Double) StartContinuousPan(Double, Double)

Starts an asynchronous operation to pan the map continuously from its current position.

public : void StartContinuousPan(double horizontalPixelsPerSecond, double verticalPixelsPerSecond)
public void StartContinuousPan(Double horizontalPixelsPerSecond, Double verticalPixelsPerSecond)
Public Function StartContinuousPan(horizontalPixelsPerSecond As Double, verticalPixelsPerSecond As Double) As void
Parameters
horizontalPixelsPerSecond
double Double Double

The pixels per second to pan horizontally.

verticalPixelsPerSecond
double Double Double

The pixels per second to pan vertically.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

StartContinuousRotate(Double) StartContinuousRotate(Double) StartContinuousRotate(Double)

Starts an asynchronous operation to rotate the map's camera continuously from its current position.

public : void StartContinuousRotate(double rateInDegreesPerSecond)
public void StartContinuousRotate(Double rateInDegreesPerSecond)
Public Function StartContinuousRotate(rateInDegreesPerSecond As Double) As void
Parameters
rateInDegreesPerSecond
double Double Double

The degrees that the map's camera rotates per second in a horizontal clockwise direction.

Remarks

Heading values greater than 360 degrees are normalized to their equivalent 0-360 degree value.

StartContinuousTilt(Double) StartContinuousTilt(Double) StartContinuousTilt(Double)

Starts an asynchronous operation to tilt the map's camera continuously from its current position.

public : void StartContinuousTilt(double rateInDegreesPerSecond)
public void StartContinuousTilt(Double rateInDegreesPerSecond)
Public Function StartContinuousTilt(rateInDegreesPerSecond As Double) As void
Parameters
rateInDegreesPerSecond
double Double Double

The degrees of Pitch that the map's camera tilts down to the ground per second.

Remarks

For more information about tilt, see the remarks section of the MapCamera(Geopoint, Double, Double, Double, Double) overload.

StartContinuousZoom(Double) StartContinuousZoom(Double) StartContinuousZoom(Double)

Starts an asynchronous operation to zoom in continuously until the map's maximum ZoomLevel is reached.

public : void StartContinuousZoom(double rateOfChangePerSecond)
public void StartContinuousZoom(Double rateOfChangePerSecond)
Public Function StartContinuousZoom(rateOfChangePerSecond As Double) As void
Parameters
rateOfChangePerSecond
double Double Double

The change in ZoomLevel per second.

Remarks

The maximum and minimum values of ZoomLevel depend on the type of map view: 2D, 3D, or Streetside.

Property2D range3D rangeStreetside range
ZoomLevel1-201-2024-26

When leaving a Streetside view, the map returns to the previous view settings. The Streetside ZoomLevel is not maintained outside of the Streetside experience.

StartDragAsync(PointerPoint) StartDragAsync(PointerPoint) StartDragAsync(PointerPoint)

Initiates a drag-and-drop operation.

(Inherited from UIElement)

StopContinuousPan() StopContinuousPan() StopContinuousPan()

Stops an asynchronous operation to pan the map continuously from its current position.

public : void StopContinuousPan()
public void StopContinuousPan()
Public Function StopContinuousPan() As void
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

StopContinuousRotate() StopContinuousRotate() StopContinuousRotate()

Stops an asynchronous operation to rotate the map's camera continuously from its current position.

public : void StopContinuousRotate()
public void StopContinuousRotate()
Public Function StopContinuousRotate() As void

StopContinuousTilt() StopContinuousTilt() StopContinuousTilt()

Stops an asynchronous operation to tilt the map's camera continuously from its current position.

public : void StopContinuousTilt()
public void StopContinuousTilt()
Public Function StopContinuousTilt() As void

StopContinuousZoom() StopContinuousZoom() StopContinuousZoom()

Stops an asynchronous operation to zoom in continuously until the map's maximum ZoomLevel is reached.

public : void StopContinuousZoom()
public void StopContinuousZoom()
Public Function StopContinuousZoom() As void

TransformToVisual(UIElement) TransformToVisual(UIElement) TransformToVisual(UIElement)

Returns a transform object that can be used to transform coordinates from the UIElement to the specified object.

(Inherited from UIElement)

TryGetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint) TryGetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint) TryGetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint)

Converts a point on the map to a geographic location by using the specified altitude reference system.

public : Platform::Boolean TryGetLocationFromOffset(Point offset, AltitudeReferenceSystem desiredReferenceSystem, Geopoint location)
public bool TryGetLocationFromOffset(Point offset, AltitudeReferenceSystem desiredReferenceSystem, Geopoint location)
Public Function TryGetLocationFromOffset(offset As Point, desiredReferenceSystem As AltitudeReferenceSystem, location As Geopoint) As bool
Parameters
offset
Point Point Point

A point on the map to convert to a geographic location.

desiredReferenceSystem
AltitudeReferenceSystem AltitudeReferenceSystem AltitudeReferenceSystem

The altitude reference system of the geographic point. A value of Unspecified for the altitude reference system has the same effect as using the default TryGetLocationFromOffset(Windows.Foundation.Point offset, Windows.Devices.Geolocation.Geopoint location) overload.

location
Geopoint Geopoint Geopoint

When this method returns, contains the corresponding geographic location.

Returns
Platform::Boolean bool bool

Returns true if the location is invalid; otherwise, false.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Remarks

Use this method instead of the GetLocationFromOffset method. The GetLocationFromOffset method has been deprecated.

TryGetLocationFromOffset(Point, Geopoint) TryGetLocationFromOffset(Point, Geopoint) TryGetLocationFromOffset(Point, Geopoint)

Converts a point on the map to a geographic location.

public : Platform::Boolean TryGetLocationFromOffset(Point offset, Geopoint location)
public bool TryGetLocationFromOffset(Point offset, Geopoint location)
Public Function TryGetLocationFromOffset(offset As Point, location As Geopoint) As bool
Parameters
offset
Point Point Point

A point on the map to convert to a geographic location.

location
Geopoint Geopoint Geopoint

When this method returns, contains the corresponding geographic location.

Returns
Platform::Boolean bool bool

Returns true if the location is invalid; otherwise, false.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Remarks

Use this method instead of the GetLocationFromOffset method. The GetLocationFromOffset method has been deprecated.

TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs) TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs) TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs)

Attempts to invoke a keyboard shortcut (accelerator).

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

TryPanAsync(Double, Double) TryPanAsync(Double, Double) TryPanAsync(Double, Double)

Starts an asynchronous operation to pan the map from its current position.

public : IAsyncOperation<Platform::Boolean> TryPanAsync(double horizontalPixels, double verticalPixels)
public IAsyncOperation<bool> TryPanAsync(Double horizontalPixels, Double verticalPixels)
Public Function TryPanAsync(horizontalPixels As Double, verticalPixels As Double) As IAsyncOperation( Of bool )
Parameters
horizontalPixels
double Double Double

The pixels to pan horizontally.

verticalPixels
double Double Double

The pixels to pan vertically.

Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

TryPanToAsync(Geopoint) TryPanToAsync(Geopoint) TryPanToAsync(Geopoint)

Starts an asynchronous operation to pan the map to a specific location.

public : IAsyncOperation<Platform::Boolean> TryPanToAsync(Geopoint location)
public IAsyncOperation<bool> TryPanToAsync(Geopoint location)
Public Function TryPanToAsync(location As Geopoint) As IAsyncOperation( Of bool )
Parameters
location
Geopoint Geopoint Geopoint

The coordinates of a geographic location to which you want to pan the map.

Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

TryRotateAsync(Double) TryRotateAsync(Double) TryRotateAsync(Double)

Starts an asynchronous operation to rotate the map's camera from its current position.

public : IAsyncOperation<Platform::Boolean> TryRotateAsync(double degrees)
public IAsyncOperation<bool> TryRotateAsync(Double degrees)
Public Function TryRotateAsync(degrees As Double) As IAsyncOperation( Of bool )
Parameters
degrees
double Double Double

The degrees that the map's camera rotates in a horizontal clockwise direction.

Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Remarks

Consider this method when you want to replace the default UI control with your own.

Heading values greater than 360 degrees are normalized to their equivalent 0-360 degree value.

TryRotateToAsync(Double) TryRotateToAsync(Double) TryRotateToAsync(Double)

Starts an asynchronous operation to rotate the map's camera to a specific orientation.

public : IAsyncOperation<Platform::Boolean> TryRotateToAsync(double angleInDegrees)
public IAsyncOperation<bool> TryRotateToAsync(Double angleInDegrees)
Public Function TryRotateToAsync(angleInDegrees As Double) As IAsyncOperation( Of bool )
Parameters
angleInDegrees
double Double Double

The final Heading of the map's camera, in degrees.

Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Remarks

See the remarks section of the TryRotateAsync method.

TrySetSceneAsync(MapScene) TrySetSceneAsync(MapScene) TrySetSceneAsync(MapScene)

Sets the scene of the map displayed in the MapControl using the specified scene.

public : IAsyncOperation<Platform::Boolean> TrySetSceneAsync(MapScene scene)
public IAsyncOperation<bool> TrySetSceneAsync(MapScene scene)
Public Function TrySetSceneAsync(scene As MapScene) As IAsyncOperation( Of bool )
Parameters
scene
MapScene MapScene MapScene

Defines the item or area to appear in the map.

Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

true if the asynchronous operation succeeded; otherwise, false.

See Also

TrySetSceneAsync(MapScene, MapAnimationKind) TrySetSceneAsync(MapScene, MapAnimationKind) TrySetSceneAsync(MapScene, MapAnimationKind)

Sets the scene of the map displayed in the MapControl using the specified scene and animation.

public : IAsyncOperation<Platform::Boolean> TrySetSceneAsync(MapScene scene, MapAnimationKind animationKind)
public IAsyncOperation<bool> TrySetSceneAsync(MapScene scene, MapAnimationKind animationKind)
Public Function TrySetSceneAsync(scene As MapScene, animationKind As MapAnimationKind) As IAsyncOperation( Of bool )
Parameters
scene
MapScene MapScene MapScene

Defines the item or area to appear in the map.

animationKind
MapAnimationKind MapAnimationKind MapAnimationKind

Specifies the animation to use when you change the scene of the map.

Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

true if the asynchronous operation succeeded; otherwise, false.

See Also

TrySetViewAsync(Geopoint) TrySetViewAsync(Geopoint) TrySetViewAsync(Geopoint)

TrySetViewAsync(Geopoint, IReference) TrySetViewAsync(Geopoint, IReference) TrySetViewAsync(Geopoint, IReference)

Sets the view of the map displayed in the MapControl using the specified center and zoom level.

public : IAsyncOperation<Platform::Boolean> TrySetViewAsync(Geopoint center, IReference<double> zoomLevel)
public IAsyncOperation<bool> TrySetViewAsync(Geopoint center, Nullable<Double> zoomLevel)
Public Function TrySetViewAsync(center As Geopoint, zoomLevel As Nullable<Double>) As IAsyncOperation( Of bool )
Parameters
center
Geopoint Geopoint Geopoint

The center to use in the view. For more info, see the Center property.

zoomLevel
IReference<double> Nullable<Double> Nullable<Double>

The zoom level to use in the view. For more info, see the ZoomLevel property.

Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

true if the asynchronous operation succeeded; otherwise, false.

Remarks

The maximum and minimum values of ZoomLevel depend on the type of map view: 2D, 3D, or Streetside.

Property2D range3D rangeStreetside range
ZoomLevel1-201-2024-26

When leaving a Streetside view, the map returns to the previous view settings. The Streetside ZoomLevel is not maintained outside of the Streetside experience.

See Also

TrySetViewAsync(Geopoint, IReference, IReference, IReference) TrySetViewAsync(Geopoint, IReference, IReference, IReference) TrySetViewAsync(Geopoint, IReference, IReference, IReference)

Sets the view of the map displayed in the MapControl using the specified center, zoom level, heading, and pitch.

public : IAsyncOperation<Platform::Boolean> TrySetViewAsync(Geopoint center, IReference<double> zoomLevel, IReference<double> heading, IReference<double> desiredPitch)
public IAsyncOperation<bool> TrySetViewAsync(Geopoint center, Nullable<Double> zoomLevel, Nullable<Double> heading, Nullable<Double> desiredPitch)
Public Function TrySetViewAsync(center As Geopoint, zoomLevel As Nullable<Double>, heading As Nullable<Double>, desiredPitch As Nullable<Double>) As IAsyncOperation( Of bool )
Parameters
center
Geopoint Geopoint Geopoint

The center to use in the view. For more info, see the Center property.

zoomLevel
IReference<double> Nullable<Double> Nullable<Double>

The zoom level to use in the view. For more info, see the ZoomLevel property.

heading
IReference<double> Nullable<Double> Nullable<Double>

The heading to use in the view. For more info, see the Heading property.

desiredPitch
IReference<double> Nullable<Double> Nullable<Double>

The pitch to use in the view. For more info, see the DesiredPitch property.

Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

true if the asynchronous operation succeeded; otherwise, false.

Remarks

The maximum and minimum values of pitch/tilt depend on the type of map view: 2D, 3D, or Streetside.

Property2D range3D rangeStreetside range
pitch/tilt0-750-900-180
ZoomLevel1-201-2024-26

For more information, see the TrySetViewAsync(Geopoint, IReference(Double), IReference(Double), IReference(Double), MapAnimationKind) overload.

Heading values greater than 360 degrees are normalized to their equivalent 0-360 degree value.

See Also

TrySetViewAsync(Geopoint, IReference, IReference, IReference, MapAnimationKind) TrySetViewAsync(Geopoint, IReference, IReference, IReference, MapAnimationKind) TrySetViewAsync(Geopoint, IReference, IReference, IReference, MapAnimationKind)

Sets the view of the map displayed in the MapControl using the specified center, zoom level, heading, and pitch. The view change uses the specified animation.

public : IAsyncOperation<Platform::Boolean> TrySetViewAsync(Geopoint center, IReference<double> zoomLevel, IReference<double> heading, IReference<double> desiredPitch, MapAnimationKind animation)
public IAsyncOperation<bool> TrySetViewAsync(Geopoint center, Nullable<Double> zoomLevel, Nullable<Double> heading, Nullable<Double> desiredPitch, MapAnimationKind animation)
Public Function TrySetViewAsync(center As Geopoint, zoomLevel As Nullable<Double>, heading As Nullable<Double>, desiredPitch As Nullable<Double>, animation As MapAnimationKind) As IAsyncOperation( Of bool )
Parameters
center
Geopoint Geopoint Geopoint

The center to use in the view. For more info, see the Center property.

zoomLevel
IReference<double> Nullable<Double> Nullable<Double>

The zoom level to use in the view. For more info, see the ZoomLevel property.

heading
IReference<double> Nullable<Double> Nullable<Double>

The heading to use in the view. For more info, see the Heading property.

desiredPitch
IReference<double> Nullable<Double> Nullable<Double>

The pitch to use in the view. For more info, see the DesiredPitch property.

animation
MapAnimationKind MapAnimationKind MapAnimationKind

The animation to use when changing the view. For more info, see MapAnimationKind.

Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

true if the asynchronous operation succeeded; otherwise, false.

Remarks

The valid range of pitch and zoom level differs between 2D, 3D, and Streetside map views. When switching from 3D to 2D for example, values that are acceptable in the current view may be out of range in the next view. If that’s the case, the current pitch value will be truncated to the nearest acceptable value in the next view.

When leaving a Streetside view, the map returns to the previous view settings. The Streetside pitch is not maintained outside of the Streetside experience.

The maximum and minimum values of pitch/tilt depend on the type of map view: 2D, 3D, or Streetside.

Property2D range3D rangeStreetside range
pitch/tilt0-750-900-180
ZoomLevel1-201-2024-26

Heading values greater than 360 degrees are normalized to their equivalent 0-360 degree value.

See Also

TrySetViewBoundsAsync(GeoboundingBox, IReference, MapAnimationKind) TrySetViewBoundsAsync(GeoboundingBox, IReference, MapAnimationKind) TrySetViewBoundsAsync(GeoboundingBox, IReference, MapAnimationKind)

Sets the view of the map displayed in the MapControl to the contents of the specified GeoboundingBox with the specified margin. The view change uses the specified animation.

public : IAsyncOperation<Platform::Boolean> TrySetViewBoundsAsync(GeoboundingBox bounds, IReference<Thickness> margin, MapAnimationKind animation)
public IAsyncOperation<bool> TrySetViewBoundsAsync(GeoboundingBox bounds, Nullable<Thickness> margin, MapAnimationKind animation)
Public Function TrySetViewBoundsAsync(bounds As GeoboundingBox, margin As Nullable<Thickness>, animation As MapAnimationKind) As IAsyncOperation( Of bool )
Parameters
bounds
GeoboundingBox GeoboundingBox GeoboundingBox

The geographic area to display in the view.

margin
IReference<Thickness> Nullable<Thickness> Nullable<Thickness>

The margin to use in the view.

animation
MapAnimationKind MapAnimationKind MapAnimationKind

The animation to use when changing the view. For more info, see MapAnimationKind.

Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

true if the asynchronous operation succeeded; otherwise, false.

Remarks

If the area specified by the GeoboundingBox doesn't fill the MapControl, the control also displays the surrounding area outside the GeoboundingBox.

See Also

TryStartDirectManipulation(Pointer) TryStartDirectManipulation(Pointer) TryStartDirectManipulation(Pointer)

Resumes direct manipulation processing (system-defined panning/zooming) on any ScrollViewer parent that contains the current UIElement.

(Inherited from UIElement)

TryTiltAsync(Double) TryTiltAsync(Double) TryTiltAsync(Double)

Starts an asynchronous operation to tilt the map's camera from its current position.

public : IAsyncOperation<Platform::Boolean> TryTiltAsync(double degrees)
public IAsyncOperation<bool> TryTiltAsync(Double degrees)
Public Function TryTiltAsync(degrees As Double) As IAsyncOperation( Of bool )
Parameters
degrees
double Double Double

The degrees of Pitch that the map's camera tilts down to the ground.

Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Remarks

Consider this method when you want to replace the default UI control with your own.

The valid range of tilt differs between 2D, 3D, and Streetside map views. When switching from 3D to 2D for example, values that are acceptable in the current view may be out of range in the next view. If that’s the case, the current tilt value will be truncated to the nearest acceptable value in the next view.

When leaving a Streetside view, the map returns to the previous view settings. The Streetside pitch is not maintained outside of the Streetside experience.

The maximum and minimum values of pitch/tilt depend on the type of map view: 2D, 3D, or Streetside.

Property2D range3D rangeStreetside range
pitch/tilt0-750-900-180

TryTiltToAsync(Double) TryTiltToAsync(Double) TryTiltToAsync(Double)

Starts an asynchronous operation to tilt the map's camera to a specific orientation.

public : IAsyncOperation<Platform::Boolean> TryTiltToAsync(double angleInDegrees)
public IAsyncOperation<bool> TryTiltToAsync(Double angleInDegrees)
Public Function TryTiltToAsync(angleInDegrees As Double) As IAsyncOperation( Of bool )
Parameters
angleInDegrees
double Double Double

The final Pitch of the map's camera in degrees.

Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Remarks

See the remarks section of the TryTiltAsync method.

TryZoomInAsync() TryZoomInAsync() TryZoomInAsync()

Starts an asynchronous operation to zoom in, increasing the map's ZoomLevel by one.

public : IAsyncOperation<Platform::Boolean> TryZoomInAsync()
public IAsyncOperation<bool> TryZoomInAsync()
Public Function TryZoomInAsync() As IAsyncOperation( Of bool )
Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Remarks

Warning

We don't recommend changing ZoomLevel with 3D views. When the MapControl's view is not looking "straight-down," changes in ZoomLevel can lead to unpredictable behavior.

ZoomLevel is intended for 2D views. To implement a "zoom" effect with 3D views, use the MapControl's TrySetSceneAsync method to move the camera closer. Start by setting a closer Location on a MapCamera object. Next, create a new MapScene by passing that MapCamera to CreateFromCamera. Finally, initiate the zoom by passing the new MapScene to TrySetSceneAsync. You can zoom in immediately or specify MapAnimationKind to create an animated "fly in".

The maximum and minimum values of ZoomLevel depend on the type of map view: 2D, 3D, or Streetside.

Property2D range3D rangeStreetside range
ZoomLevel1-201-2024-26

When leaving a Streetside view, the map returns to the previous view settings. The Streetside ZoomLevel is not maintained outside of the Streetside experience.

Consider this method when you want to replace the default UI control with your own.

TryZoomOutAsync() TryZoomOutAsync() TryZoomOutAsync()

Starts an asynchronous operation to zoom out, decreasing the map's ZoomLevel by one.

public : IAsyncOperation<Platform::Boolean> TryZoomOutAsync()
public IAsyncOperation<bool> TryZoomOutAsync()
Public Function TryZoomOutAsync() As IAsyncOperation( Of bool )
Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Remarks

See the remarks section of the TryZoomInAsync method.

TryZoomToAsync(Double) TryZoomToAsync(Double) TryZoomToAsync(Double)

Starts an asynchronous operation to zoom the map to a specific ZoomLevel.

public : IAsyncOperation<Platform::Boolean> TryZoomToAsync(double zoomLevel)
public IAsyncOperation<bool> TryZoomToAsync(Double zoomLevel)
Public Function TryZoomToAsync(zoomLevel As Double) As IAsyncOperation( Of bool )
Parameters
zoomLevel
double Double Double

The final zoom level of the map, between 1 and 20.

Returns
IAsyncOperation<Platform::Boolean> IAsyncOperation<bool> IAsyncOperation<bool>

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Remarks

See the remarks section of the TryZoomInAsync method.

UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64)

Cancels a change notification that was previously registered by calling RegisterPropertyChangedCallback.

(Inherited from DependencyObject)

UpdateLayout UpdateLayout UpdateLayout

Ensures that all positions of child objects of a UIElement are properly updated for layout.

(Inherited from UIElement)

Events

AccessKeyDisplayDismissed AccessKeyDisplayDismissed AccessKeyDisplayDismissed

Occurs when the access key sequence is complete to notify controls that they should hide access key visuals.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

AccessKeyDisplayRequested AccessKeyDisplayRequested AccessKeyDisplayRequested

Occurs when the access key sequence is started to notify controls that they should show access key visuals.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

AccessKeyInvoked AccessKeyInvoked AccessKeyInvoked

Occurs when a user completes an access key sequence to notify the element that the access key action should be invoked.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

ActualCameraChanged ActualCameraChanged ActualCameraChanged

Occurs when the current position of the map's camera has changed.

public : event TypedEventHandler ActualCameraChanged<MapControl, MapActualCameraChangedEventArgs>
public event TypedEventHandler ActualCameraChanged<MapControl, MapActualCameraChangedEventArgs>
Public Event TypedEventHandler ActualCameraChanged( Of ( Of MapControl ), ( Of MapActualCameraChangedEventArgs ))

Remarks

During an animation of the map, the ActualCamera defines the current position of the map's camera and TargetCamera defines the final position of the camera.

ActualCameraChanging ActualCameraChanging ActualCameraChanging

Occurs when the current position of the map's camera changes.

public : event TypedEventHandler ActualCameraChanging<MapControl, MapActualCameraChangingEventArgs>
public event TypedEventHandler ActualCameraChanging<MapControl, MapActualCameraChangingEventArgs>
Public Event TypedEventHandler ActualCameraChanging( Of ( Of MapControl ), ( Of MapActualCameraChangingEventArgs ))

Remarks

During an animation of the map, the ActualCamera defines the current position of the map's camera and TargetCamera defines the final position of the camera.

ActualThemeChanged ActualThemeChanged ActualThemeChanged

Occurs when the ActualTheme property value has changed.

(Inherited from FrameworkElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

CenterChanged CenterChanged CenterChanged

Occurs when the value of the Center property of the MapControl changes.

public : event TypedEventHandler CenterChanged<MapControl, object>
public event TypedEventHandler CenterChanged<MapControl, object>
Public Event TypedEventHandler CenterChanged( Of ( Of MapControl ), ( Of object ))
See Also

CharacterReceived CharacterReceived CharacterReceived

Occurs when a single, composed character is received by the input queue.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

ContextCanceled ContextCanceled ContextCanceled

Occurs when a context input gesture continues into a manipulation gesture, to notify the element that the context flyout should not be opened.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

ContextRequested ContextRequested ContextRequested

Occurs when the user has completed a context input gesture, such as a right-click.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

CustomExperienceChanged CustomExperienceChanged CustomExperienceChanged

Occurs when the custom experience of the MapControl changes.

public : event TypedEventHandler CustomExperienceChanged<MapControl, MapCustomExperienceChangedEventArgs>
public event TypedEventHandler CustomExperienceChanged<MapControl, MapCustomExperienceChangedEventArgs>
Public Event TypedEventHandler CustomExperienceChanged( Of ( Of MapControl ), ( Of MapCustomExperienceChangedEventArgs ))

Remarks

Custom experiences change the way maps appear in the MapControl. For example, the StreetsideExperience changes the perspective of the map to appear as though you were viewing a location from the street level. Entering or existing a street-level view will trigger the CustomExperienceChanged event.

DataContextChanged DataContextChanged DataContextChanged

Occurs when the value of the FrameworkElement.DataContext property changes.

(Inherited from FrameworkElement)

DoubleTapped DoubleTapped DoubleTapped

Occurs when an otherwise unhandled DoubleTap interaction occurs over the hit test area of this element.

(Inherited from UIElement)

DragEnter DragEnter DragEnter

Occurs when the input system reports an underlying drag event with this element as the target.

(Inherited from UIElement)

DragLeave DragLeave DragLeave

Occurs when the input system reports an underlying drag event with this element as the origin.

(Inherited from UIElement)

DragOver DragOver DragOver

Occurs when the input system reports an underlying drag event with this element as the potential drop target.

(Inherited from UIElement)

DragStarting DragStarting DragStarting

Occurs when a drag operation is initiated.

(Inherited from UIElement)

Drop Drop Drop

Occurs when the input system reports an underlying drop event with this element as the drop target.

(Inherited from UIElement)

DropCompleted DropCompleted DropCompleted

Occurs when a drag-and-drop operation is ended.

(Inherited from UIElement)

FocusDisengaged FocusDisengaged FocusDisengaged

Occurs when focus is released from the control boundaries (for game pad/remote interaction).

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

FocusEngaged FocusEngaged FocusEngaged

Occurs when focus is constrained within the control boundaries (for game pad/remote interaction).

(Inherited from Control)
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

GettingFocus GettingFocus GettingFocus

Occurs before a UIElement receives focus.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

GotFocus GotFocus GotFocus

Occurs when a UIElement receives focus.

(Inherited from UIElement)

HeadingChanged HeadingChanged HeadingChanged

Occurs when the value of the Heading property of the MapControl changes.

public : event TypedEventHandler HeadingChanged<MapControl, object>
public event TypedEventHandler HeadingChanged<MapControl, object>
Public Event TypedEventHandler HeadingChanged( Of ( Of MapControl ), ( Of object ))
See Also

Holding Holding Holding

Occurs when an otherwise unhandled Hold interaction occurs over the hit test area of this element.

(Inherited from UIElement)

IsEnabledChanged IsEnabledChanged IsEnabledChanged

Occurs when the IsEnabled property changes.

(Inherited from Control)

KeyDown KeyDown KeyDown

Occurs when a keyboard key is pressed while the UIElement has focus.

(Inherited from UIElement)

KeyUp KeyUp KeyUp

Occurs when a keyboard key is released while the UIElement has focus.

(Inherited from UIElement)

LayoutUpdated LayoutUpdated LayoutUpdated

Occurs when the layout of the visual tree changes, due to layout-relevant properties changing value or some other action that refreshes the layout.

(Inherited from FrameworkElement)

Loaded Loaded Loaded

Occurs when a FrameworkElement has been constructed and added to the object tree, and is ready for interaction.

(Inherited from FrameworkElement)

Loading Loading Loading

Occurs when a FrameworkElement begins to load.

(Inherited from FrameworkElement)

LoadingStatusChanged LoadingStatusChanged LoadingStatusChanged

Occurs when the value of the LoadingStatus property of the MapControl changes.

public : event TypedEventHandler LoadingStatusChanged<MapControl, object>
public event TypedEventHandler LoadingStatusChanged<MapControl, object>
Public Event TypedEventHandler LoadingStatusChanged( Of ( Of MapControl ), ( Of object ))
See Also

LosingFocus LosingFocus LosingFocus

Occurs before a UIElement loses focus.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

LostFocus LostFocus LostFocus

Occurs when a UIElement loses focus.

(Inherited from UIElement)

ManipulationCompleted ManipulationCompleted ManipulationCompleted

Occurs when a manipulation on the UIElement is complete.

(Inherited from UIElement)

ManipulationDelta ManipulationDelta ManipulationDelta

Occurs when the input device changes position during a manipulation.

(Inherited from UIElement)

ManipulationInertiaStarting ManipulationInertiaStarting ManipulationInertiaStarting

Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins.

(Inherited from UIElement)

ManipulationStarted ManipulationStarted ManipulationStarted

Occurs when an input device begins a manipulation on the UIElement.

(Inherited from UIElement)

ManipulationStarting ManipulationStarting ManipulationStarting

Occurs when the manipulation processor is first created.

(Inherited from UIElement)

MapContextRequested MapContextRequested MapContextRequested

Occurs when the user has completed a context input gesture on a map, such as a right-click.

public : event TypedEventHandler MapContextRequested<MapControl, MapContextRequestedEventArgs>
public event TypedEventHandler MapContextRequested<MapControl, MapContextRequestedEventArgs>
Public Event TypedEventHandler MapContextRequested( Of ( Of MapControl ), ( Of MapContextRequestedEventArgs ))
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

MapDoubleTapped MapDoubleTapped MapDoubleTapped

Occurs when the user double-taps the MapControl. An instance of MapInputEventArgs provides data for this event.

public : event TypedEventHandler MapDoubleTapped<MapControl, MapInputEventArgs>
public event TypedEventHandler MapDoubleTapped<MapControl, MapInputEventArgs>
Public Event TypedEventHandler MapDoubleTapped( Of ( Of MapControl ), ( Of MapInputEventArgs ))
See Also

MapElementClick MapElementClick MapElementClick

Occurs when the user taps or clicks a MapElement on the MapControl.

public : event TypedEventHandler MapElementClick<MapControl, MapElementClickEventArgs>
public event TypedEventHandler MapElementClick<MapControl, MapElementClickEventArgs>
Public Event TypedEventHandler MapElementClick( Of ( Of MapControl ), ( Of MapElementClickEventArgs ))

Remarks

Touch, mouse, and pen/stylus interactions are received, processed, and managed as pointers. Any of these devices and their interactions can produce a MapElementClick event. An instance of MapElementClickEventArgs provides data for this event.

MapElementPointerEntered MapElementPointerEntered MapElementPointerEntered

Occurs when a pointer moves into the bounding area of a MapElement on a MapControl.

public : event TypedEventHandler MapElementPointerEntered<MapControl, MapElementPointerEnteredEventArgs>
public event TypedEventHandler MapElementPointerEntered<MapControl, MapElementPointerEnteredEventArgs>
Public Event TypedEventHandler MapElementPointerEntered( Of ( Of MapControl ), ( Of MapElementPointerEnteredEventArgs ))

Remarks

Mouse interactions are received, processed, and managed as pointers. The MapElementPointerEntered event is triggered as the user moves their mouse over an element. An instance of MapElementPointerEnteredEventArgs provides data for this event.

MapElementPointerExited MapElementPointerExited MapElementPointerExited

Occurs when a pointer moves out of the bounding area of a MapElement on a MapControl.

public : event TypedEventHandler MapElementPointerExited<MapControl, MapElementPointerExitedEventArgs>
public event TypedEventHandler MapElementPointerExited<MapControl, MapElementPointerExitedEventArgs>
Public Event TypedEventHandler MapElementPointerExited( Of ( Of MapControl ), ( Of MapElementPointerExitedEventArgs ))

Remarks

Mouse interactions are received, processed, and managed as pointers. The MapElementPointerExited event is triggered as the user moves their mouse out from over an element. An instance of MapElementPointerExitedEventArgs provides data for this event.

MapHolding MapHolding MapHolding

Occurs when the user taps and holds on the MapControl. An instance of MapInputEventArgs provides data for this event.

public : event TypedEventHandler MapHolding<MapControl, MapInputEventArgs>
public event TypedEventHandler MapHolding<MapControl, MapInputEventArgs>
Public Event TypedEventHandler MapHolding( Of ( Of MapControl ), ( Of MapInputEventArgs ))
See Also

MapRightTapped MapRightTapped MapRightTapped

Occurs when the user presses-and-holds the MapControl or clicks on it using the right mouse button. An instance of MapRightTappedEventArgs provides data for this event.

public : event TypedEventHandler MapRightTapped<MapControl, MapRightTappedEventArgs>
public event TypedEventHandler MapRightTapped<MapControl, MapRightTappedEventArgs>
Public Event TypedEventHandler MapRightTapped( Of ( Of MapControl ), ( Of MapRightTappedEventArgs ))
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

MapTapped MapTapped MapTapped

Occurs when the user taps the MapControl or clicks on it with the left mouse button. An instance of MapInputEventArgs provides data for this event.

public : event TypedEventHandler MapTapped<MapControl, MapInputEventArgs>
public event TypedEventHandler MapTapped<MapControl, MapInputEventArgs>
Public Event TypedEventHandler MapTapped( Of ( Of MapControl ), ( Of MapInputEventArgs ))
See Also

NoFocusCandidateFound NoFocusCandidateFound NoFocusCandidateFound

Occurs when a user attempts to move focus (via tab or directional arrows), but focus doesn't move because no focus candidate is found in the direction of movement.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

PitchChanged PitchChanged PitchChanged

Occurs when the value of the Pitch property of the MapControl changes.

public : event TypedEventHandler PitchChanged<MapControl, object>
public event TypedEventHandler PitchChanged<MapControl, object>
Public Event TypedEventHandler PitchChanged( Of ( Of MapControl ), ( Of object ))
See Also

PointerCanceled PointerCanceled PointerCanceled

Occurs when a pointer that made contact abnormally loses contact.

(Inherited from UIElement)

PointerCaptureLost PointerCaptureLost PointerCaptureLost

Occurs when pointer capture previously held by this element moves to another element or elsewhere.

(Inherited from UIElement)

PointerEntered PointerEntered PointerEntered

Occurs when a pointer enters the hit test area of this element.

(Inherited from UIElement)

PointerExited PointerExited PointerExited

Occurs when a pointer leaves the hit test area of this element.

(Inherited from UIElement)

PointerMoved PointerMoved PointerMoved

Occurs when a pointer moves while the pointer remains within the hit test area of this element.

(Inherited from UIElement)

PointerPressed PointerPressed PointerPressed

Occurs when the pointer device initiates a Press action within this element.

(Inherited from UIElement)

PointerReleased PointerReleased PointerReleased

Occurs when the pointer device that previously initiated a Press action is released, while within this element. Note that the end of a Press action is not guaranteed to fire a PointerReleased event; other events may fire instead. For more info, see Remarks.

(Inherited from UIElement)

PointerWheelChanged PointerWheelChanged PointerWheelChanged

Occurs when the delta value of a pointer wheel changes.

(Inherited from UIElement)

PreviewKeyDown PreviewKeyDown PreviewKeyDown

Occurs when a keyboard key is pressed while the UIElement has focus.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

PreviewKeyUp PreviewKeyUp PreviewKeyUp

Occurs when a keyboard key is released while the UIElement has focus.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

ProcessKeyboardAccelerators ProcessKeyboardAccelerators ProcessKeyboardAccelerators

Occurs when a UIElement keyboard shortcut (accelerator) is pressed.

(Inherited from UIElement)
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

RightTapped RightTapped RightTapped

Occurs when a right-tap input stimulus happens while the pointer is over the element.

(Inherited from UIElement)

SizeChanged SizeChanged SizeChanged

Occurs when either the ActualHeight or the ActualWidth property changes value on a FrameworkElement.

(Inherited from FrameworkElement)

Tapped Tapped Tapped

Occurs when an otherwise unhandled Tap interaction occurs over the hit test area of this element.

(Inherited from UIElement)

TargetCameraChanged TargetCameraChanged TargetCameraChanged

Occurs when the final position of the map's camera has changed.

public : event TypedEventHandler TargetCameraChanged<MapControl, MapTargetCameraChangedEventArgs>
public event TypedEventHandler TargetCameraChanged<MapControl, MapTargetCameraChangedEventArgs>
Public Event TypedEventHandler TargetCameraChanged( Of ( Of MapControl ), ( Of MapTargetCameraChangedEventArgs ))

Remarks

During an animation of the map, the ActualCamera defines the current position of the map's camera and TargetCamera defines the final position of the camera.

TransformOriginChanged TransformOriginChanged TransformOriginChanged

Occurs when the value of the TransformOrigin property of the MapControl changes.

public : event TypedEventHandler TransformOriginChanged<MapControl, object>
public event TypedEventHandler TransformOriginChanged<MapControl, object>
Public Event TypedEventHandler TransformOriginChanged( Of ( Of MapControl ), ( Of object ))
See Also

Unloaded Unloaded Unloaded

Occurs when this object is no longer connected to the main object tree.

(Inherited from FrameworkElement)

ZoomLevelChanged ZoomLevelChanged ZoomLevelChanged

Occurs when the value of the ZoomLevel property of the MapControl changes.

public : event TypedEventHandler ZoomLevelChanged<MapControl, object>
public event TypedEventHandler ZoomLevelChanged<MapControl, object>
Public Event TypedEventHandler ZoomLevelChanged( Of ( Of MapControl ), ( Of object ))
See Also

See Also