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
ContentProperty static Identifies the MapCustomElement.Content dependency property.
ContentTemplateProperty static Identifies the MapCustomElement.ContentTemplate dependency property.
IsHitTestVisibleProperty static Identifies the MapItem.IsHitTestVisible dependency property. Inherited from MapItem.
LocationProperty static Identifies the MapCustomElement.Location dependency property.
ToolTipPatternProperty static Identifies the MapItem.ToolTipPattern dependency property. Inherited from MapItem.
VisibleProperty static Identifies the MapItem.Visible dependency property. Inherited from MapItem.

Properties

Name Description
Attributes Gets the attributes for this map item. 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.
IsHitTestVisible Gets or sets a value that defines whether or not a map item can be returned as a hit-testing result. Inherited from MapItem.
Layer Provides access to the map items layer object. Inherited from MapItem.
Location Gets or sets a location of the custom element on a map.
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 or not a map item should be displayed. Inherited from MapItem.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
PointerPressed Occurs when a mouse pointer hovers over the MapVisualItem, and the left mouse button has been pressed. Inherited from MapVisualItem.
PointerReleased Occurs when a mouse pointer hovers over the MapVisualItem, and the left mouse button has been released. Inherited from MapVisualItem.
PropertyChanged Occurs every time any of the MapDependencyObject class properties has changed its value. Inherited from MapDependencyObject.
See Also