MapMode Members

This documentation is no longer available on MSDN, however it is available as a CHM download.

Defines the base class for a map mode. This class must be inherited.

The following tables list the members exposed by the MapMode type.

Protected Constructors

  Name Description
MapMode Initializes a new instance of the MapMode class.

Top

Public Properties

  Name Description
public property AnimationLevel Gets or sets the animation level.
public property Attributions When overridden in a derived class, gets the imagery attributions for the mode.
public property BoundingRectangle When overridden in a derived class, gets the rectangle that defines the boundaries of the map view.
public property Center When overridden in a derived class, gets or sets the center of the map view.
public property Content When overridden in a derived class, gets the UIElement that represents the map mode.
public property CredentialsProvider When overridden in a derived class, gets or sets the type of credentials provided.
public property Culture Gets or sets the culture of the map mode.
public property ForegroundContent When overridden in a derived class, gets the map foreground content as a UIElement.
public property Heading When overridden in a derived class, gets or sets the heading of the map view.
public property HeadingRange When overridden in a derived class, gets the range of valid heading values.
public property InertiaDeceleration Gets or sets the rate of deceleration of the inertia animation effect. Valid values are from 0 to 1, where 0 indicates no inertia effect and 1 indicates the inertia effect does not slow down or stop.
public property IsDownloading When overridden in a derived class, gets or sets whether the map mode is downloading.
public property ModeBackground When overridden in a derived class, gets the mode of the background.
public property Pitch When overridden in a derived class, gets or sets the pitch of the map view.
public property PitchRange When overridden in a derived class, gets the range of valid pitch values.
public property Scale When overridden in a derived class, gets or sets the scale of the map.
public property TargetBoundingRectangle When overridden in a derived class, gets the location rectangle that defines the boundaries of the map view towards which the map is animating.
public property TargetCenter When overridden in a derived class, gets the center location of the map view towards which the map is animating.
public property TargetHeading When overridden in a derived class, gets the heading of the map view towards which the map is animating.
public property TargetPitch When overridden in a derived class, gets the pitch of the map view towards which the map is animating.
public property TargetScale When overridden in a derived class, gets the scale towards which the map is navigating.
public property TargetZoomLevel When overridden in a derived class, gets the zoom level of the map view towards which the map is animating.
public property UseInertia Gets or sets a bool indicating whether to use the inertia animation effect during map navigation.
public property ViewportSize Gets or sets the size of the viewport.
public property ZoomLevel When overridden in a derived class, gets or sets the zoom level.
public property ZoomRange When overridden in a derived class, gets the range of valid zoom levels.

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Activated When overridden in a derived class, executes when the map mode is activated.
public method Activating When overridden in a derived class, executes when the map mode is activating.
public method Deactivating When overridden in a derived class, executes when the map mode is deactivating.
public method Equals  (inherited from Object)
public method GetHashCode  (inherited from Object)
public method GetType  (inherited from Object)
public method LocationToViewportPoint Overloaded. Converts a location to a viewport point in this map mode.
public method OnKeyDown When overridden in a derived class, raises the KeyDown event.
public method OnKeyHeld When overridden in a derived class, raises the KeyHeld event.
public method OnKeyPress When overridden in a derived class, raises the KeyPress event.
public method OnKeyUp When overridden in a derived class, raises the KeyUp event.
public method OnMouseClick When overridden in a derived class, raises the MouseClick event.
public method OnMouseDoubleClick When overridden in a derived class, raises the MouseDoubleClick event.
public method OnMouseDragBox When overridden in a derived class, raises the MouseDragBox event.
public method OnMouseLeftButtonDown When overridden in a derived class, raises the MouseLeftButtonDown event.
public method OnMouseLeftButtonUp When overridden in a derived class, raises the MouseLeftButtonUp event.
public method OnMouseMove When overridden in a derived class, raises the MouseMove event.
public method OnMousePan When overridden in a derived class, raises the MousePan event.
public method OnMouseWheel When overridden in a derived class, raises the MouseWheel event.
public method OnProjectionChanged Enables derived classes to provide custom handling when the culture of projection of the map changes.
public method OnTouchComplete When overridden in a derived class, raises the TouchComplete event.
public method OnTouchPan When overridden in a derived class, raises the TouchPan event.
public method OnTouchRotate When overridden in a derived class, raises the TouchRotate event.
public method OnTouchZoom When overridden in a derived class, raises the TouchZoom event.
public method SetView Overloaded. Sets the map view.
public method ToString  (inherited from Object)
public method TryLocationToViewportPoint When overridden in a derived class, tries to convert a location to a viewport point.
public method TryViewportPointToLocation When overridden in a derived class, tries to convert a viewport point to a location.
public method ViewportPointToLocation When overridden in a derived class, converts a viewport point to a location in this map mode.
public method ViewportSizeChanged Enables derived classes to provide custom handling when the size of the viewport changes.

Top

Protected Methods

  Name Description
protected method Finalize  (inherited from Object)
protected method MemberwiseClone  (inherited from Object)
protected method OnCultureChanged Enables derived classes to provide custom handling when the culture of the mode changes.

Top

Public Events

  Name Description
public event ProjectionChanged Occurs when the map projection changes.
public event TargetViewChanged When overridden in derived class, occurs when the map view towards which the map is animating changes.

Top

See Also

Reference

MapMode Class
Microsoft.Maps.MapControl.Core Namespace