0 out of 1 rated this helpful - Rate this topic

Map Class

July 26, 2012

Represents the default map class.

Namespace:  Microsoft.Phone.Controls.Maps
Assembly:  Microsoft.Phone.Controls.Maps (in Microsoft.Phone.Controls.Maps.dll)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class Map : MapCore
<Map>
  Children
</Map>

The Map type exposes the following members.

  NameDescription
Public methodMapInitializes a new instance of the Map class.
Top
  NameDescription
Public propertyActualHeight (Inherited from FrameworkElement.)
Public propertyActualWidth (Inherited from FrameworkElement.)
Public propertyAllowDrop (Inherited from UIElement.)
Public propertyAnimationLevelWhen overridden in a derived class, gets or sets the animation level of map navigation. (Inherited from MapBase.)
Public propertyBackground (Inherited from Control.)
Public propertyBorderBrush (Inherited from Control.)
Public propertyBorderThickness (Inherited from Control.)
Public propertyBoundingRectangleGets the rectangle that defines the boundaries of the map view. (Inherited from MapCore.)
Public propertyCacheMode (Inherited from UIElement.)
Public propertyCenterGets the center location of the map view. (Inherited from MapBase.)
Public propertyChildrenGets the child elements of the map. (Inherited from MapBase.)
Public propertyClip (Inherited from UIElement.)
Public propertyContent (Inherited from ContentControl.)
Public propertyContentTemplate (Inherited from ContentControl.)
Public propertyCopyrightVisibilityGets or sets the visibility of the copyright on the map. (Inherited from MapBase.)
Public propertyCredentialsProviderGets or sets the credentials provider.
Public propertyCultureGets or sets the culture used by the map. (Inherited from MapBase.)
Public propertyCursor (Inherited from FrameworkElement.)
Public propertyDataContext (Inherited from FrameworkElement.)
Protected propertyDefaultStyleKey (Inherited from Control.)
Public propertyDesiredSize (Inherited from UIElement.)
Public propertyDispatcher (Inherited from DependencyObject.)
Public propertyFlowDirection (Inherited from FrameworkElement.)
Public propertyFontFamily (Inherited from Control.)
Public propertyFontSize (Inherited from Control.)
Public propertyFontStretch (Inherited from Control.)
Public propertyFontStyle (Inherited from Control.)
Public propertyFontWeight (Inherited from Control.)
Public propertyForeground (Inherited from Control.)
Public propertyHeadingGets or sets the directional heading of the map. (Inherited from MapBase.)
Public propertyHeight (Inherited from FrameworkElement.)
Public propertyHorizontalAlignment (Inherited from FrameworkElement.)
Public propertyHorizontalContentAlignment (Inherited from Control.)
Public propertyIsDownloadingGets a Boolean value indicating whether map data is downloading. (Inherited from MapCore.)
Public propertyIsEnabled (Inherited from Control.)
Public propertyIsHitTestVisible (Inherited from UIElement.)
Public propertyIsIdleGets whether the map is idle. (Inherited from MapCore.)
Public propertyIsTabStop (Inherited from Control.)
Public propertyLanguage (Inherited from FrameworkElement.)
Protected propertyLoadingExceptionGets the exception that occurred while loading the map. (Inherited from MapCore.)
Public propertyLogoVisibilityGets or sets the visibility of the logo on the map. (Inherited from MapBase.)
Public propertyMapForegroundGets the map foreground.
Public propertyMargin (Inherited from FrameworkElement.)
Public propertyMaxHeight (Inherited from FrameworkElement.)
Public propertyMaxWidth (Inherited from FrameworkElement.)
Public propertyMinHeight (Inherited from FrameworkElement.)
Public propertyMinWidth (Inherited from FrameworkElement.)
Public propertyModeGets or sets the map mode. (Overrides MapBase.Mode.)
Public propertyName (Inherited from FrameworkElement.)
Public propertyOpacity (Inherited from UIElement.)
Public propertyOpacityMask (Inherited from UIElement.)
Public propertyPadding (Inherited from Control.)
Public propertyParent (Inherited from FrameworkElement.)
Public propertyPitchGets or sets the pitch of the map. (Inherited from MapBase.)
Public propertyProjection (Inherited from UIElement.)
Public propertyRenderSize (Inherited from UIElement.)
Public propertyRenderTransform (Inherited from UIElement.)
Public propertyRenderTransformOrigin (Inherited from UIElement.)
Public propertyResources (Inherited from FrameworkElement.)
Protected propertyRootLayerGets the base map layer. (Inherited from MapBase.)
Public propertyScaleVisibilityGets or sets the visibility of the scale bar. (Inherited from MapBase.)
Public propertyStyle (Inherited from FrameworkElement.)
Public propertyTabIndex (Inherited from Control.)
Public propertyTabNavigation (Inherited from Control.)
Public propertyTag (Inherited from FrameworkElement.)
Public propertyTargetBoundingRectangleGets the bounding rectangle that defines the boundaries of the map view toward which the map is animating. (Inherited from MapCore.)
Public propertyTargetCenterGets the location that defines the center of the map view toward which the map is animating. (Inherited from MapCore.)
Public propertyTargetHeadingGets the heading of the map view toward which the map is animating. (Inherited from MapCore.)
Public propertyTargetPitchGets the pitch of the map view toward which the map is animating. (Inherited from MapCore.)
Public propertyTargetZoomLevelGets the zoom level of the map view toward which the map is animating. (Inherited from MapCore.)
Public propertyTemplate (Inherited from Control.)
Public propertyTriggers (Inherited from FrameworkElement.)
Public propertyUseLayoutRounding (Inherited from UIElement.)
Public propertyVerticalAlignment (Inherited from FrameworkElement.)
Public propertyVerticalContentAlignment (Inherited from Control.)
Public propertyViewportSizeGets the size of the viewport. (Inherited from MapCore.)
Public propertyVisibility (Inherited from UIElement.)
Public propertyWidth (Inherited from FrameworkElement.)
Public propertyZoomBarVisibilityGets or sets whether the map zoom level bar displays. (Inherited from MapBase.)
Public propertyZoomLevelWhen overridden in a derived class, gets or sets the zoom level of the map. Valid zoom levels are 1 through 19, where 1 is the farthest zoomed out (a view of the world) and 19 is the closest map view. (Inherited from MapBase.)
Top
  NameDescription
Public methodAddHandler (Inherited from UIElement.)
Public methodApplyTemplate (Inherited from Control.)
Public methodArrange (Inherited from UIElement.)
Protected methodArrangeOverrideArranges the elements to fit the given window size. (Inherited from MapCore.)
Public methodCaptureMouse (Inherited from UIElement.)
Public methodCheckAccess (Inherited from DependencyObject.)
Public methodClearValue (Inherited from DependencyObject.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFindName (Inherited from FrameworkElement.)
Public methodFocus (Inherited from Control.)
Public methodGetAnimationBaseValue (Inherited from DependencyObject.)
Public methodGetBindingExpression (Inherited from FrameworkElement.)
Public methodGetHashCode (Inherited from Object.)
Protected methodGetTemplateChild (Inherited from Control.)
Public methodGetType (Inherited from Object.)
Public methodGetValue (Inherited from DependencyObject.)
Public methodInvalidateArrange (Inherited from UIElement.)
Public methodInvalidateMeasure (Inherited from UIElement.)
Public methodLocationToViewportPointConverts a location to a viewport point. (Inherited from MapCore.)
Public methodMeasure (Inherited from UIElement.)
Protected methodMeasureOverrideMeasures the map elements so that they fit within the map size. (Inherited from MapCore.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnAnimationLevelChangedEnables derived classes to provide custom handling when the animation level of the map changes. (Inherited from MapCore.)
Public methodOnApplyTemplate (Inherited from FrameworkElement.)
Protected methodOnCenterChangedEnables derived classes to provide custom handling when the center of the map changes. (Inherited from MapCore.)
Protected methodOnContentChanged (Inherited from ContentControl.)
Protected methodOnCreateAutomationPeerEnables derived classes to provide custom handling when an automation peer is created. (Inherited from MapBase.)
Protected methodOnCredentialsProviderChangedEnables derived classes to provide custom handling when the map credentials provider object changes. (Inherited from MapCore.)
Protected methodOnCultureChangedEnables derived classes to provide custom handling when the culture of the map changes. (Inherited from MapCore.)
Protected methodOnDoubleTap (Inherited from Control.)
Protected methodOnDragEnter (Inherited from Control.)
Protected methodOnDragLeave (Inherited from Control.)
Protected methodOnDragOver (Inherited from Control.)
Protected methodOnDrop (Inherited from Control.)
Protected methodOnFirstFrameWhen overridden in a derived class, executes on the first map view frame. (Inherited from MapCore.)
Protected methodOnGotFocus (Inherited from Control.)
Protected methodOnHeadingChangedEnables derived classes to provide custom handling when the heading of the map changes. (Inherited from MapCore.)
Protected methodOnHold (Inherited from Control.)
Protected methodOnKeyDown (Inherited from Control.)
Protected methodOnKeyUp (Inherited from Control.)
Protected methodOnLostFocus (Inherited from Control.)
Protected methodOnLostMouseCapture (Inherited from Control.)
Protected methodOnManipulationCompleted (Inherited from Control.)
Protected methodOnManipulationDelta (Inherited from Control.)
Protected methodOnManipulationStarted (Inherited from Control.)
Protected methodOnModeChangedEnables derived classes to provide custom handling when the mode of the map changes. (Inherited from MapCore.)
Protected methodOnMouseEnter (Inherited from Control.)
Protected methodOnMouseLeave (Inherited from Control.)
Protected methodOnMouseLeftButtonDown (Inherited from Control.)
Protected methodOnMouseLeftButtonUp (Inherited from Control.)
Protected methodOnMouseMove (Inherited from Control.)
Protected methodOnMouseRightButtonDown (Inherited from Control.)
Protected methodOnMouseRightButtonUp (Inherited from Control.)
Protected methodOnMouseWheel (Inherited from Control.)
Protected methodOnOverlayVisibilityChangedEnables derived classes to provide custom handling when the copyright, scale bar, or zoom bar visibility changes. (Inherited from MapBase.)
Protected methodOnPitchChangedEnables derived classes to provide custom handling when the pitch of the map changes. (Inherited from MapCore.)
Protected methodOnTap (Inherited from Control.)
Protected methodOnTextInput (Inherited from Control.)
Protected methodOnTextInputStart (Inherited from Control.)
Protected methodOnTextInputUpdate (Inherited from Control.)
Protected methodOnZoomLevelChangedEnables derived classes to provide custom handling when the pitch of the map view changes. (Inherited from MapCore.)
Protected methodProjectionUpdatedEnables derived classes to provide custom handling when the map projection is updated. (Inherited from MapCore.)
Public methodReadLocalValue (Inherited from DependencyObject.)
Public methodReleaseMouseCapture (Inherited from UIElement.)
Public methodRemoveHandler (Inherited from UIElement.)
Public methodSetBinding (Inherited from FrameworkElement.)
Public methodSetModeSets the mode of the map. (Inherited from MapCore.)
Public methodSetValue (Inherited from DependencyObject.)
Public methodSetView(LocationRect)Sets the map view using the specified location rectangle. (Inherited from MapCore.)
Public methodSetView(GeoCoordinate, Double)Sets the map view based on the specified center and zoom level. (Inherited from MapCore.)
Public methodSetView(GeoCoordinate, Double, Double)Sets the map view based on the specified center, zoom level, and heading. (Inherited from MapCore.)
Public methodSetView(GeoCoordinate, Double, Double, Double)Sets the map view based on the specified center, zoom level, heading, and pitch. (Inherited from MapCore.)
Public methodToString (Inherited from Object.)
Public methodTransformToVisual (Inherited from UIElement.)
Public methodTryLocationToViewportPointTries to convert a location to a viewport point. (Inherited from MapCore.)
Public methodTryViewportPointToLocationTries to convert a viewport point to a location. (Inherited from MapCore.)
Public methodUpdateLayout (Inherited from UIElement.)
Public methodViewportPointToLocationConverts a viewport point to a location. (Inherited from MapCore.)
Top
  NameDescription
Public eventBindingValidationError (Inherited from FrameworkElement.)
Public eventDoubleTap (Inherited from UIElement.)
Public eventGotFocus (Inherited from UIElement.)
Public eventHold (Inherited from UIElement.)
Public eventIsEnabledChanged (Inherited from Control.)
Public eventKeyDown (Inherited from UIElement.)
Public eventKeyUp (Inherited from UIElement.)
Public eventLayoutUpdated (Inherited from FrameworkElement.)
Public eventLoaded (Inherited from FrameworkElement.)
Public eventLoadingErrorOccurs when there is an error loading the map. (Inherited from MapCore.)
Public eventLostFocus (Inherited from UIElement.)
Public eventLostMouseCapture (Inherited from UIElement.)
Public eventManipulationCompleted (Inherited from UIElement.)
Public eventManipulationDelta (Inherited from UIElement.)
Public eventManipulationStarted (Inherited from UIElement.)
Public eventMapPanOccurs when the screen is touched and dragged to pan the map. This event occurs every frame. (Inherited from MapCore.)
Public eventMapResolvedOccurs when the map Tiles are fully downloaded, regardless of whether the user is still interacting with the map. (Inherited from MapCore.)
Public eventMapZoomOccurs when the map is touched to zoom the map. (Inherited from MapCore.)
Public eventModeChangedOccurs when the map mode changes. (Inherited from MapCore.)
Public eventMouseEnter (Inherited from UIElement.)
Public eventMouseLeave (Inherited from UIElement.)
Public eventMouseLeftButtonDown (Inherited from UIElement.)
Public eventMouseLeftButtonUp (Inherited from UIElement.)
Public eventMouseMove (Inherited from UIElement.)
Public eventMouseWheel (Inherited from UIElement.)
Public eventSizeChanged (Inherited from FrameworkElement.)
Public eventTap (Inherited from UIElement.)
Public eventTargetViewChangedOccurs when the view towards which the map is animating changes. (Inherited from MapCore.)
Public eventTextInput (Inherited from UIElement.)
Public eventTextInputStart (Inherited from UIElement.)
Public eventTextInputUpdate (Inherited from UIElement.)
Public eventUnloaded (Inherited from FrameworkElement.)
Public eventViewChangeEndOccurs when the view is done changing. (Inherited from MapCore.)
Public eventViewChangeOnFrameOccurs for every frame of a view change. (Inherited from MapCore.)
Public eventViewChangeStartOccurs when the view starts changing. (Inherited from MapCore.)
Top

If you are developing your application to target 256-MB devices, consider using a BingMapsTask instead of a Map control. This helps minimize the memory impact of your application, which is of particular importance when running on a 256-MB device. For more information, see Developing for 256-MB Devices and How to: Use the Bing Maps Task for Windows Phone.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.