Skip to main content

MapCustomElement Members

The class used to draw any custom element on a map.

Constructors

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

Fields

Name Description
AttributesProperty static Identifies the MapItem.Attributes dependency property. Inherited from MapItem.
CanMoveProperty static Identifies the MapItem.CanMove dependency property. Inherited from MapItem.
ContentProperty static Identifies the MapCustomElement.Content dependency property.
ContentTemplateProperty static Identifies the MapCustomElement.ContentTemplate dependency property.
EnableHighlightingProperty static Identifies the MapItem.EnableHighlighting dependency property. Inherited from MapItem.
EnableSelectionProperty static Identifies the EnableSelection dependency property. Inherited from MapItem.
IsHitTestVisibleProperty static Identifies the MapItem.IsHitTestVisible dependency property. Inherited from MapItem.
LocationProperty static Identifies the MapCustomElement.Location dependency property.
TagProperty static Identifies the MapItem.Tag dependency property. Inherited from MapItem.
TemplateProperty static Identifies the MapCustomElement.Template dependency property.
ToolTipPatternProperty static Identifies the MapItem.ToolTipPattern dependency property. Inherited from MapItem.
VisibleProperty static Identifies the MapItem.Visible dependency property. Inherited from MapItem.
ZIndexProperty static Identifies the MapItem.ZIndex dependency property. Inherited from MapItem.

Properties

Name Description
ActualContent Gets or sets the actual content of the MapCustomElement.
Attributes Gets the attributes for this map item. Inherited from MapItem.
Brush Returns the brush used to draw a map item. Inherited from MapItem.
CanMove Gets or sets the value that specifies whether a user can move item using the Map Editor’s Transform mode. Inherited from MapItem.
ClusteredItems Returns the collection of MapItem objects that are in a cluster presented by this cluster representative. Inherited from MapItem.
Content Gets or sets the custom element’s content. This is a dependency property.
ContentTemplate Gets or sets the template that defines the presentation of the element’s content, represented by the MapCustomElement.Content property. This is a dependency property.
EnableHighlighting Gets or sets the value indicating whether the map item can be highlighted. This is a dependency property. Inherited from MapItem.
EnableSelection Indicates whether a map item can be selected. Inherited from MapItem.
IsHitTestVisible Gets or sets a value that defines whether a map item can be returned as a hit-testing result. Inherited from MapItem.
Layer Returns the layer containing this map item. Inherited from MapItem.
Location Gets or sets a location of the custom element on a map.
Tag Gets or sets the object that contains data related to this map item. Inherited from MapItem.
Template Specifies the template that defines the appearance of the map custom element.
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. Inherited from MapItem.
Visible Gets or sets a value indicating whether a map item should be displayed. Inherited from MapItem.
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. Inherited from MapItem.

Events

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