Language
Edit

MapControl Class

Definition

Wpf-enabled wrapper for Windows.UI.Xaml.Controls.Maps.MapControl

[System.Windows.Markup.ContentProperty("Children")]
public class MapControl : Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHostBase
[<System.Windows.Markup.ContentProperty("Children")>]
type MapControl = class
    inherit WindowsXamlHostBase
Public Class MapControl
Inherits WindowsXamlHostBase
Inheritance
Attributes

Constructors

Name Description
MapControl()

Initializes a new instance of the MapControl class, a Wpf-enabled wrapper for Windows.UI.Xaml.Controls.Maps.MapControl

Properties

Name Description
ActualCamera

Gets Windows.UI.Xaml.Controls.Maps.MapControl.ActualCamera

BusinessLandmarksEnabled

Gets or sets a value indicating whether Windows.UI.Xaml.Controls.Maps.MapControl.BusinessLandmarksEnabled

BusinessLandmarksEnabledProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.BusinessLandmarksEnabledProperty

BusinessLandmarksVisible

Gets or sets a value indicating whether Windows.UI.Xaml.Controls.Maps.MapControl.BusinessLandmarksVisible

BusinessLandmarksVisibleProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.BusinessLandmarksVisibleProperty

Center

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.Center

CenterProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.CenterProperty

ChildInternal

Gets or sets the root UWP XAML element displayed in the WPF control instance.

(Inherited from WindowsXamlHostBase)
Children
ColorScheme

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.ColorScheme

ColorSchemeProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.ColorSchemeProperty

CustomExperience

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.CustomExperience

DesiredPitch

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.DesiredPitch

DesiredPitchProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.DesiredPitchProperty

Heading

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.Heading

HeadingProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.HeadingProperty

Is3DSupported

Gets a value indicating whether Windows.UI.Xaml.Controls.Maps.MapControl.Is3DSupported

Is3DSupportedProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.Is3DSupportedProperty

IsDisposed

Gets a value indicating whether this wrapper control instance been disposed

(Inherited from WindowsXamlHostBase)
IsStreetsideSupported

Gets a value indicating whether Windows.UI.Xaml.Controls.Maps.MapControl.IsStreetsideSupported

IsStreetsideSupportedProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.IsStreetsideSupportedProperty

LandmarksVisible

Gets or sets a value indicating whether Windows.UI.Xaml.Controls.Maps.MapControl.LandmarksVisible

LandmarksVisibleProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.LandmarksVisibleProperty

Layers

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.Layers

LoadingStatus

Gets Windows.UI.Xaml.Controls.Maps.MapControl.LoadingStatus

LoadingStatusProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.LoadingStatusProperty

MapElements

Gets Windows.UI.Xaml.Controls.Maps.MapControl.MapElements

MapProjection

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.MapProjection

MapProjectionProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.MapProjectionProperty

MapServiceToken

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.MapServiceToken

MapServiceTokenProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.MapServiceTokenProperty

MaxZoomLevel

Gets Windows.UI.Xaml.Controls.Maps.MapControl.MaxZoomLevel

MinZoomLevel

Gets Windows.UI.Xaml.Controls.Maps.MapControl.MinZoomLevel

PanInteractionMode

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.PanInteractionMode

PanInteractionModeProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.PanInteractionModeProperty

PedestrianFeaturesVisible

Gets or sets a value indicating whether Windows.UI.Xaml.Controls.Maps.MapControl.PedestrianFeaturesVisible

PedestrianFeaturesVisibleProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.PedestrianFeaturesVisibleProperty

Pitch

Gets Windows.UI.Xaml.Controls.Maps.MapControl.Pitch

PitchProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.PitchProperty

Region

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.Region

RegionProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.RegionProperty

RotateInteractionMode

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.RotateInteractionMode

RotateInteractionModeProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.RotateInteractionModeProperty

Routes

Gets Windows.UI.Xaml.Controls.Maps.MapControl.Routes

Scene

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.Scene

SceneProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.SceneProperty

Style

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.Style

StyleProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.StyleProperty

StyleSheet

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.StyleSheet

StyleSheetProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.StyleSheetProperty

TargetCamera

Gets Windows.UI.Xaml.Controls.Maps.MapControl.TargetCamera

TileSources

Gets Windows.UI.Xaml.Controls.Maps.MapControl.TileSources

TiltInteractionMode

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.TiltInteractionMode

TiltInteractionModeProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.TiltInteractionModeProperty

TrafficFlowVisible

Gets or sets a value indicating whether Windows.UI.Xaml.Controls.Maps.MapControl.TrafficFlowVisible

TrafficFlowVisibleProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.TrafficFlowVisibleProperty

TransformOrigin

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.TransformOrigin

TransformOriginProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.TransformOriginProperty

TransitFeaturesEnabled

Gets or sets a value indicating whether Windows.UI.Xaml.Controls.Maps.MapControl.TransitFeaturesEnabled

TransitFeaturesEnabledProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.TransitFeaturesEnabledProperty

TransitFeaturesVisible

Gets or sets a value indicating whether Windows.UI.Xaml.Controls.Maps.MapControl.TransitFeaturesVisible

TransitFeaturesVisibleProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.TransitFeaturesVisibleProperty

WatermarkMode

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.WatermarkMode

WatermarkModeProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.WatermarkModeProperty

ZoomInteractionMode

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.ZoomInteractionMode

ZoomInteractionModeProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.ZoomInteractionModeProperty

ZoomLevel

Gets or sets Windows.UI.Xaml.Controls.Maps.MapControl.ZoomLevel

ZoomLevelProperty

Gets Windows.UI.Xaml.Controls.Maps.MapControl.ZoomLevelProperty

Methods

Name Description
ArrangeOverride(Size)

Arranges wrapped UWP XAML content using passed in size constraint

(Inherited from WindowsXamlHostBase)
Bind(String, DependencyProperty, DependencyProperty, Object, BindingDirection)

Binds this wrapper object's exposed WPF DependencyProperty with the wrapped UWP object's DependencyProperty for what effectively works as a regular one- or two-way binding.

(Inherited from WindowsXamlHostBase)
BuildWindowCore(HandleRef)

Creates Windows.UI.Xaml.Application object, wrapped Windows.UI.Xaml.Hosting.DesktopWindowXamlSource instance; creates and sets root UWP XAML element on Windows.UI.Xaml.Hosting.DesktopWindowXamlSource.

(Inherited from WindowsXamlHostBase)
DestroyWindowCore(HandleRef)

WPF framework request to destroy control window. Cleans up the HwndIslandSite created by DesktopWindowXamlSource

(Inherited from WindowsXamlHostBase)
Dispose(Boolean)

WindowsXamlHost Dispose

(Inherited from WindowsXamlHostBase)
FindMapElementsAtOffset(Point, Double)

Windows.UI.Xaml.Controls.Maps.MapControl

FindMapElementsAtOffset(Point)

Windows.UI.Xaml.Controls.Maps.MapControl

GetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint)

Windows.UI.Xaml.Controls.Maps.MapControl

GetLocationFromOffset(Point, Geopoint)

Windows.UI.Xaml.Controls.Maps.MapControl

GetOffsetFromLocation(Geopoint, Point)

Windows.UI.Xaml.Controls.Maps.MapControl.GetOffsetFromLocation(Windows.Devices.Geolocation.Geopoint,Windows.Foundation.Point@)

GetUwpInternalObject()

Exposes ChildInternal without exposing its actual Type.

(Inherited from WindowsXamlHostBase)
GetVisibleRegion(MapVisibleRegionKind)

Windows.UI.Xaml.Controls.Maps.MapControl.GetVisibleRegion(Windows.UI.Xaml.Controls.Maps.MapVisibleRegionKind)

HasFocusWithinCore() (Inherited from WindowsXamlHostBase)
IsLocationInView(Geopoint, Boolean)

Windows.UI.Xaml.Controls.Maps.MapControl.IsLocationInView(Windows.Devices.Geolocation.Geopoint,System.Boolean@)

MeasureOverride(Size)

Measures wrapped UWP XAML content using passed in size constraint

(Inherited from WindowsXamlHostBase)
OnChildChanged()

Called when the property <seealso cref="P:Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHostBase.ChildInternal"></seealso> has changed.

(Inherited from WindowsXamlHostBase)
OnGotFocus(RoutedEventArgs)

Override for OnGotFocus that passes NavigateFocus on to the DesktopXamlSource instance

(Inherited from WindowsXamlHostBase)
OnInitialized(EventArgs)
SetContent()

The default implementation of SetContent applies ChildInternal to desktopWindowXamSource.Content. Override this method if that shouldn't be the case. For example, override if your control should be a child of another WindowsXamlHostBase-based control.

(Inherited from WindowsXamlHostBase)
StartContinuousPan(Double, Double)

Windows.UI.Xaml.Controls.Maps.MapControl.StartContinuousPan(System.Double,System.Double)

StartContinuousRotate(Double)

Windows.UI.Xaml.Controls.Maps.MapControl.StartContinuousRotate(System.Double)

StartContinuousTilt(Double)

Windows.UI.Xaml.Controls.Maps.MapControl.StartContinuousTilt(System.Double)

StartContinuousZoom(Double)

Windows.UI.Xaml.Controls.Maps.MapControl.StartContinuousZoom(System.Double)

StopContinuousPan()

Windows.UI.Xaml.Controls.Maps.MapControl.StopContinuousPan

StopContinuousRotate()

Windows.UI.Xaml.Controls.Maps.MapControl.StopContinuousRotate

StopContinuousTilt()

Windows.UI.Xaml.Controls.Maps.MapControl.StopContinuousTilt

StopContinuousZoom()

Windows.UI.Xaml.Controls.Maps.MapControl.StopContinuousZoom

TabIntoCore(TraversalRequest)

Process Tab from host framework

(Inherited from WindowsXamlHostBase)
TryGetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint)

Windows.UI.Xaml.Controls.Maps.MapControl

TryGetLocationFromOffset(Point, Geopoint)

Windows.UI.Xaml.Controls.Maps.MapControl

TryPanAsync(Double, Double)

Windows.UI.Xaml.Controls.Maps.MapControl.TryPanAsync(System.Double,System.Double)

TryPanToAsync(Geopoint)

Windows.UI.Xaml.Controls.Maps.MapControl.TryPanToAsync(Windows.Devices.Geolocation.Geopoint)

TryRotateAsync(Double)

Windows.UI.Xaml.Controls.Maps.MapControl.TryRotateAsync(System.Double)

TryRotateToAsync(Double)

Windows.UI.Xaml.Controls.Maps.MapControl.TryRotateToAsync(System.Double)

TrySetSceneAsync(MapScene, MapAnimationKind)

Windows.UI.Xaml.Controls.Maps.MapControl

TrySetSceneAsync(MapScene)

Windows.UI.Xaml.Controls.Maps.MapControl

TrySetViewAsync(Geopoint, Nullable<Double>, Nullable<Double>, Nullable<Double>, MapAnimationKind)

Windows.UI.Xaml.Controls.Maps.MapControl

TrySetViewAsync(Geopoint, Nullable<Double>, Nullable<Double>, Nullable<Double>)

Windows.UI.Xaml.Controls.Maps.MapControl

TrySetViewAsync(Geopoint, Nullable<Double>)

Windows.UI.Xaml.Controls.Maps.MapControl

TrySetViewAsync(Geopoint)

Windows.UI.Xaml.Controls.Maps.MapControl

TryTiltAsync(Double)

Windows.UI.Xaml.Controls.Maps.MapControl.TryTiltAsync(System.Double)

TryTiltToAsync(Double)

Windows.UI.Xaml.Controls.Maps.MapControl.TryTiltToAsync(System.Double)

TryZoomInAsync()

Windows.UI.Xaml.Controls.Maps.MapControl.TryZoomInAsync

TryZoomOutAsync()

Windows.UI.Xaml.Controls.Maps.MapControl.TryZoomOutAsync

TryZoomToAsync(Double)

Windows.UI.Xaml.Controls.Maps.MapControl.TryZoomToAsync(System.Double)

WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean) (Inherited from WindowsXamlHostBase)

Events

Name Description
ActualCameraChanged

Windows.UI.Xaml.Controls.Maps.MapControl.ActualCameraChanged

ActualCameraChanging

Windows.UI.Xaml.Controls.Maps.MapControl.ActualCameraChanging

CenterChanged

Windows.UI.Xaml.Controls.Maps.MapControl.CenterChanged

ChildChanged

Fired when WindowsXamlHost root UWP XAML content has been updated

(Inherited from WindowsXamlHostBase)
CustomExperienceChanged

Windows.UI.Xaml.Controls.Maps.MapControl.CustomExperienceChanged

HeadingChanged

Windows.UI.Xaml.Controls.Maps.MapControl.HeadingChanged

LoadingStatusChanged

Windows.UI.Xaml.Controls.Maps.MapControl.LoadingStatusChanged

MapContextRequested

Windows.UI.Xaml.Controls.Maps.MapControl.MapContextRequested

MapDoubleTapped

Windows.UI.Xaml.Controls.Maps.MapControl.MapDoubleTapped

MapElementClick

Windows.UI.Xaml.Controls.Maps.MapControl.MapElementClick

MapElementPointerEntered

Windows.UI.Xaml.Controls.Maps.MapControl.MapElementPointerEntered

MapElementPointerExited

Windows.UI.Xaml.Controls.Maps.MapControl.MapElementPointerExited

MapHolding

Windows.UI.Xaml.Controls.Maps.MapControl.MapHolding

MapRightTapped

Windows.UI.Xaml.Controls.Maps.MapControl.MapRightTapped

MapTapped

Windows.UI.Xaml.Controls.Maps.MapControl.MapTapped

PitchChanged

Windows.UI.Xaml.Controls.Maps.MapControl.PitchChanged

TargetCameraChanged

Windows.UI.Xaml.Controls.Maps.MapControl.TargetCameraChanged

TransformOriginChanged

Windows.UI.Xaml.Controls.Maps.MapControl.TransformOriginChanged

ZoomLevelChanged

Windows.UI.Xaml.Controls.Maps.MapControl.ZoomLevelChanged

Applies to