MindFusion.Wpf Pack Programmer's Guide
MapView Members
Constructors Fields Properties Methods Events
 


A WPF control used to draw maps.

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

 Public Constructors

  Name Description

MapView

Initializes a new instance of the MapView class.

 Public Fields

  Name Description

BaseBoundsProperty

Identifies the BaseBounds dependency property.

BehaviorProperty

Identifies the Behavior dependency property.

LayersProperty

Identifies the Layers dependency property.

MapHeightProperty

Identifies the MapHeight dependency property.

MapWidthProperty

Identifies the MapWidth dependency property.

ZoomFactorProperty

Identifies the ZoomFactor dependency property.

 Public Properties

  Name Description

BaseBounds

Gets or sets the bounding rectangle of the base map.

BaseMap

Gets or sets the Map displayed in the first layer of this view.

Behavior

Gets or sets the interaction mode of the view. This is a dependency property.

Layers

Gets the list of layers displayed in this view.

MapHeight

Returns the height of the base map. Used for binding in the control's Xaml template.

MapWidth

Returns the width of the base map. Used for binding in the control's Xaml template.

ZoomFactor

Gets or sets the current zoom level.

 Public Methods

  Name Description

ClientToMap

Converts a point from the control's client coordinates to map coordinates.

GetScrollX

IZoomTarget.GetScrollX implementation.

GetScrollY

IZoomTarget.GetScrollY implementation.

GetZoomLevel

IZoomTarget.GetZoomLevel implementation.

MapToClient

Converts a point from the map coordinates to control's client coordinates.

OnApplyTemplate

Control.OnApplyTemplate override.

RaiseMapElementClick

Raises the MapElementClick event.

RaiseMapElementHover

Raises the MapElementHover event.

ScrollTo

Overloaded. Scrolls to a specified map location.

SetScrollX

IZoomTarget.SetScrollX implementation.

SetScrollY

IZoomTarget.SetScrollY implementation.

SetZoomFactor

Sets the map zoom level.

SetZoomLevel

IZoomTarget.SetZoomLevel implementation.

Transform

Gets the world-to-screen coordinate system transformation.

 Protected Methods

  Name Description

MeasureOverride

FrameworkElement.MeasureOverride override.

OnMapElementClick

Raises the MapElementClick event.

OnMapElementHover

Raises the MapElementHover event.

OnMouseLeftButtonDown

Control.OnMouseLeftButtonDown override.

OnMouseLeftButtonUp

Control.OnMouseLeftButtonUp override.

OnMouseMove

Control.OnMouseMove override.

OnMouseWheel

Control.OnMouseWheel override.

OnZoomLevelChanged

Raises the ZoomLevelChanged event.

 Public Events

  Name Description

LayerDatabaseLoaded

Raised when the control completes loading layer's database asynchronously.

LayerLoaded

Raised when the control completes loading layer's data asynchronously.

MapElementClick

Raised when the user clicks a map element.

MapElementHover

Raised when the mouse rests over a map element.

ZoomLevelChanged

IZoomTarget.ZoomLevelChanged implementation.

 See Also

MapView Class
MindFusion.Mapping.Wpf Namespace