Map Class
Represents the default map class.
Assembly: Microsoft.Maps.MapControl.WPF (in Microsoft.Maps.MapControl.WPF.dll)
| Name | Description | |
|---|---|---|
![]() | Map() | Initializes a new instance of the Microsoft.Maps.MapControl.WPF.Map class. |
| Name | Description | |
|---|---|---|
![]() | ActualHeight | (Inherited from FrameworkElement.) |
![]() | ActualWidth | (Inherited from FrameworkElement.) |
![]() | AllowDrop | (Inherited from UIElement.) |
![]() | AnimationLevel | Gets or sets the animation level of the map.(Inherited from MapCore.) |
![]() | AreAnyTouchesCaptured | (Inherited from UIElement.) |
![]() | AreAnyTouchesCapturedWithin | (Inherited from UIElement.) |
![]() | AreAnyTouchesDirectlyOver | (Inherited from UIElement.) |
![]() | AreAnyTouchesOver | (Inherited from UIElement.) |
![]() | Background | (Inherited from Control.) |
![]() | BindingGroup | (Inherited from FrameworkElement.) |
![]() | BitmapEffect | (Inherited from UIElement.) |
![]() | BitmapEffectInput | (Inherited from UIElement.) |
![]() | BorderBrush | (Inherited from Control.) |
![]() | BorderThickness | (Inherited from Control.) |
![]() | BoundingRectangle | Gets the rectangle that defines the boundaries of the map view.(Inherited from MapCore.) |
![]() | CacheMode | (Inherited from UIElement.) |
![]() | Center | Gets the center location of the map view.(Inherited from MapCore.) |
![]() | Children | Gets the child elements of the map.(Inherited from MapCore.) |
![]() | Clip | (Inherited from UIElement.) |
![]() | ClipToBounds | (Inherited from UIElement.) |
![]() | CommandBindings | (Inherited from UIElement.) |
![]() | ContextMenu | (Inherited from FrameworkElement.) |
![]() | CredentialsProvider | Gets or sets the credentials (Bing Maps Key).(Inherited from MapCore.) |
![]() | Culture | Gets or sets the culture used by the map.(Inherited from MapCore.) |
![]() | Cursor | (Inherited from FrameworkElement.) |
![]() | DataContext | (Inherited from FrameworkElement.) |
![]() | DefaultStyleKey | (Inherited from FrameworkElement.) |
![]() | DependencyObjectType | (Inherited from DependencyObject.) |
![]() | DesiredSize | (Inherited from UIElement.) |
![]() | Dispatcher | (Inherited from DispatcherObject.) |
![]() | Effect | (Inherited from UIElement.) |
![]() | FlowDirection | (Inherited from FrameworkElement.) |
![]() | Focusable | (Inherited from UIElement.) |
![]() | FocusVisualStyle | (Inherited from FrameworkElement.) |
![]() | FontFamily | (Inherited from Control.) |
![]() | FontSize | (Inherited from Control.) |
![]() | FontStretch | (Inherited from Control.) |
![]() | FontStyle | (Inherited from Control.) |
![]() | FontWeight | (Inherited from Control.) |
![]() | ForceCursor | (Inherited from FrameworkElement.) |
![]() | Foreground | (Inherited from Control.) |
![]() | HandlesScrolling | (Inherited from Control.) |
![]() | HasAnimatedProperties | (Inherited from UIElement.) |
![]() | Heading | Gets or sets the directional heading of the map.(Inherited from MapCore.) |
![]() | Height | (Inherited from FrameworkElement.) |
![]() | HorizontalAlignment | (Inherited from FrameworkElement.) |
![]() | HorizontalContentAlignment | (Inherited from Control.) |
![]() | InheritanceBehavior | (Inherited from FrameworkElement.) |
![]() | InputBindings | (Inherited from UIElement.) |
![]() | InputScope | (Inherited from FrameworkElement.) |
![]() | IsArrangeValid | (Inherited from UIElement.) |
![]() | IsEnabled | (Inherited from UIElement.) |
![]() | IsEnabledCore | (Inherited from UIElement.) |
![]() | IsFocused | (Inherited from UIElement.) |
![]() | IsHitTestVisible | (Inherited from UIElement.) |
![]() | IsInitialized | (Inherited from FrameworkElement.) |
![]() | IsInputMethodEnabled | (Inherited from UIElement.) |
![]() | IsKeyboardFocused | (Inherited from UIElement.) |
![]() | IsKeyboardFocusWithin | (Inherited from UIElement.) |
![]() | IsLoaded | (Inherited from FrameworkElement.) |
![]() | IsManipulationEnabled | (Inherited from UIElement.) |
![]() | IsMeasureValid | (Inherited from UIElement.) |
![]() | IsMouseCaptured | (Inherited from UIElement.) |
![]() | IsMouseCaptureWithin | (Inherited from UIElement.) |
![]() | IsMouseDirectlyOver | (Inherited from UIElement.) |
![]() | IsMouseOver | (Inherited from UIElement.) |
![]() | IsSealed | (Inherited from DependencyObject.) |
![]() | IsStylusCaptured | (Inherited from UIElement.) |
![]() | IsStylusCaptureWithin | (Inherited from UIElement.) |
![]() | IsStylusDirectlyOver | (Inherited from UIElement.) |
![]() | IsStylusOver | (Inherited from UIElement.) |
![]() | IsTabStop | (Inherited from Control.) |
![]() | IsVisible | (Inherited from UIElement.) |
![]() | Language | (Inherited from FrameworkElement.) |
![]() | LayoutTransform | (Inherited from FrameworkElement.) |
![]() | LogicalChildren | (Inherited from FrameworkElement.) |
![]() | MapForegroundStyle | Gets or sets the map foreground style. |
![]() | Margin | (Inherited from FrameworkElement.) |
![]() | MaxHeight | (Inherited from FrameworkElement.) |
![]() | MaxWidth | (Inherited from FrameworkElement.) |
![]() | MinHeight | (Inherited from FrameworkElement.) |
![]() | MinWidth | (Inherited from FrameworkElement.) |
![]() | Mode | Gets or sets the map mode.(Inherited from MapCore.) |
![]() | ModeCrossFadeDuration | Gets or sets the duration in milliseconds that it takes to cross-fade to a new map mode when a new map mode is set. The default value is 500 milliseconds.(Inherited from MapCore.) |
![]() | Name | (Inherited from FrameworkElement.) |
![]() | Opacity | (Inherited from UIElement.) |
![]() | OpacityMask | (Inherited from UIElement.) |
![]() | OverridesDefaultStyle | (Inherited from FrameworkElement.) |
![]() | Padding | (Inherited from Control.) |
![]() | Parent | (Inherited from FrameworkElement.) |
![]() | PersistId | (Inherited from UIElement.) |
![]() | RenderSize | (Inherited from UIElement.) |
![]() | RenderTransform | (Inherited from UIElement.) |
![]() | RenderTransformOrigin | (Inherited from UIElement.) |
![]() | Resources | (Inherited from FrameworkElement.) |
![]() | ScaleVisibility | |
![]() | SnapsToDevicePixels | (Inherited from UIElement.) |
![]() | Style | (Inherited from FrameworkElement.) |
![]() | StylusPlugIns | (Inherited from UIElement.) |
![]() | SupportedManipulations | Gets or sets the current set of supported two-dimensional (2-D) manipulations. |
![]() | TabIndex | (Inherited from Control.) |
![]() | Tag | (Inherited from FrameworkElement.) |
![]() | TargetCenter | Gets the pitch of the map view towards which the map is animating.(Inherited from MapCore.) |
![]() | TargetHeading | Gets the heading of the map view towards which the map is animating.(Inherited from MapCore.) |
![]() | TargetZoomLevel | Gets the zoom level of the map view towards which the map is animating.(Inherited from MapCore.) |
![]() | Template | (Inherited from Control.) |
![]() | TemplatedParent | (Inherited from FrameworkElement.) |
![]() | ToolTip | (Inherited from FrameworkElement.) |
![]() | TouchesCaptured | (Inherited from UIElement.) |
![]() | TouchesCapturedWithin | (Inherited from UIElement.) |
![]() | TouchesDirectlyOver | (Inherited from UIElement.) |
![]() | TouchesOver | (Inherited from UIElement.) |
![]() | Triggers | (Inherited from FrameworkElement.) |
![]() | Uid | (Inherited from UIElement.) |
![]() ![]() | UriScheme | Gets the protocol (http or https) that is used to request the map. |
![]() ![]() | UseHttps | Gets or sets whether to use HTTPS protocol when requesting a map. |
![]() | UseInertia | Gets or sets whether to use the inertial animation effect during map navigation. |
![]() | UseLayoutRounding | (Inherited from FrameworkElement.) |
![]() | VerticalAlignment | (Inherited from FrameworkElement.) |
![]() | VerticalContentAlignment | (Inherited from Control.) |
![]() | ViewportSize | Gets the size of the viewport.(Inherited from MapCore.) |
![]() | Visibility | (Inherited from UIElement.) |
![]() | VisualBitmapEffect | (Inherited from Visual.) |
![]() | VisualBitmapEffectInput | (Inherited from Visual.) |
![]() | VisualBitmapScalingMode | (Inherited from Visual.) |
![]() | VisualCacheMode | (Inherited from Visual.) |
![]() | VisualChildrenCount | (Inherited from FrameworkElement.) |
![]() | VisualClearTypeHint | (Inherited from Visual.) |
![]() | VisualClip | (Inherited from Visual.) |
![]() | VisualEdgeMode | (Inherited from Visual.) |
![]() | VisualEffect | (Inherited from Visual.) |
![]() | VisualOffset | (Inherited from Visual.) |
![]() | VisualOpacity | (Inherited from Visual.) |
![]() | VisualOpacityMask | (Inherited from Visual.) |
![]() | VisualParent | (Inherited from Visual.) |
![]() | VisualScrollableAreaClip | (Inherited from Visual.) |
![]() | VisualTextHintingMode | (Inherited from Visual.) |
![]() | VisualTextRenderingMode | (Inherited from Visual.) |
![]() | VisualTransform | (Inherited from Visual.) |
![]() | VisualXSnappingGuidelines | (Inherited from Visual.) |
![]() | VisualYSnappingGuidelines | (Inherited from Visual.) |
![]() | Width | (Inherited from FrameworkElement.) |
![]() | ZoomLevel | Gets or sets the zoom level.(Inherited from MapCore.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IQueryAmbient.IsAmbientPropertyAvailable(String) | (Inherited from FrameworkElement.) |
Use the Microsoft.Maps.MapControl.WPF.MapCore.Mode property to set the map view to Aerial, Road (default) or AerialWithLabels.
<Window x:Class="WPFTestApplication.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:m="clr-namespace:Microsoft.Maps.MapControl.WPF;assembly=Microsoft.Maps.MapControl.WPF"> <Grid x:Name="LayoutRoot" Background="White"> <m:Map CredentialsProvider="INSERT_YOUR_BING_MAPS_KEY" Mode=”AerialWithLabels” Center="37.806029,-122.407007" ZoomLevel="16"/> </Grid> </Window>
//Set the map mode to Aerial with labels myMap.Mode = new AerialMode(true);
'Set the map mode to Aerial with labels myMap.Mode = New AerialMode(True)
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.







