Skip to main content

How to: Customize the Appearance of a Map Pushpin

This example demonstrates how to implement a custom pushpin using its template.

To accomplish this, it is necessary to create a DataTemplate that contains the StackPanel with a custom pushpin image and TextBlock (specifies the pushpin title). Then, add this data template to a window's resource and apply it to a map pushpin via the MapPushpin.Template property.