MapPushpin Members

The class used to draw a pushpin on a map.

Constructors

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

Fields

Name Description
BrushProperty static Identifies the MapPushpin.Brush dependency property.
IsHitTestVisibleProperty static Identifies the MapItem.IsHitTestVisible dependency property. Inherited from MapItem.
LocationProperty static Identifies the MapPushpin.Location dependency property.
MarkerTemplateProperty static Identifies the MapPushpin.MarkerTemplate dependency property.
TextBrushProperty static Identifies the MapPushpin.TextBrush dependency property.
TextProperty static Identifies the MapPushpin.Text 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.
Brush Gets or sets the color of a map pushpin. 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 coordinates for the pushpin element on a map.
MarkerTemplate

Gets or sets the template that defines the presentation of the marker within a pushpin element. This is a dependency property.

Text Specifies the text for a map’s pushpin.
TextBrush Gets or sets a brush that is used to draw a text background for a map pushpin.
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) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. 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