Skip to main content

MapItem Members

The base class for different map items.

Constructors

Name Description
MapItem() Initializes a new instance of the MapItem class with default settings.

Fields

Name Description
AttributesProperty static Identifies the MapItem.Attributes dependency property.
CanMoveProperty static Identifies the MapItem.CanMove dependency property.
EnableHighlightingProperty static Identifies the MapItem.EnableHighlighting dependency property.
EnableSelectionProperty static Identifies the EnableSelection dependency property.
IsHitTestVisibleProperty static Identifies the MapItem.IsHitTestVisible dependency property.
TagProperty static Identifies the MapItem.Tag dependency property.
ToolTipPatternProperty static Identifies the MapItem.ToolTipPattern dependency property.
VisibleProperty static Identifies the MapItem.Visible dependency property.
ZIndexProperty static Identifies the MapItem.ZIndex dependency property.

Properties

Name Description
Attributes Gets the attributes for this map item.
Brush Returns the brush used to draw a map item.
CanMove Gets or sets the value that specifies whether a user can move item using the Map Editor’s Transform mode.
ClusteredItems Returns the collection of MapItem objects that are in a cluster presented by this cluster representative.
EnableHighlighting Gets or sets the value indicating whether the map item can be highlighted. This is a dependency property.
EnableSelection Indicates whether a map item can be selected.
IsHitTestVisible Gets or sets a value that defines whether a map item can be returned as a hit-testing result.
Layer Returns the layer containing this map item.
Tag Gets or sets the object that contains data related to this map item.
ToolTipPattern Gets or sets a string which represents the pattern specifying the text to be displayed within a tooltip that appears for a map item.
Visible Gets or sets a value indicating whether a map item should be displayed.
ZIndex Gets or sets a value that is the order on the Z-plane in which a map layer element (e.g., image tiles layer or vector layer) appears.

Events

Name Description
MouseEnter Occurs when the mouse pointer enters the map item.
MouseLeave Occurs when the mouse pointer leaves the map item.
MouseLeftButtonDown Occurs when the left mouse button is pressed while the mouse pointer is over this element.
MouseLeftButtonUp Occurs when the left mouse button is released while the mouse pointer is over this element.
MouseMove Occurs when the mouse pointer moves while over this element.
MouseRightButtonDown Occurs when the right mouse button is pressed while the mouse pointer is over this element.
MouseRightButtonUp Occurs when the right mouse button is released while the mouse pointer is over this element.
PropertyChanged Occurs every time any of the MapDependencyObject class properties has changed its value. Inherited from MapDependencyObject.
See Also