wpf-116893-controls-and-libraries-map-control-end-user-interaction-tooltips.md
The Map Control displays tooltips for vector items when a user clicks an item. Tooltips can be used to provide map items with additional information.
The following image illustrates a tooltip attached to a vector item generated from a shapefile:
Note
To learn how to obtain data from a shapefile, refer to the ShapefileDataAdapter help topic.
This topic consists of the following sections.
To enable tooltips for a map, set the MapControl.ToolTipEnabled property to true.
To configure the tooltip appearance, use the ways described below.
When you need to modify tooltip text patterns for all vector layer items, use the VectorLayerBase.ToolTipPattern property.
Use the MapItem.ToolTipPattern property to set a pattern of text displayed in tooltips for each individual vector element. To configure tooltip content, use map item attributes stored in the MapItem.Attributes collection.
The VectorLayerBase.ToolTipContentTemplate property specifies the presentation of the tooltip content for a vector element.
The MapControl.ToolTipTemplate property defines how tooltips will be displayed. Assign a DataTemplate object to this property to configure a custom form of tooltips.