Use Callout with RadMap
This tutorial will walk you through the steps to integrate the RadCallout control inside the RadMap. In this example, we will show how to open a RadCallout with additional information regarding the clicked PushPin element on the map.
First, we will set-up our RadMap control. We will create a collection of business objects, which represent the desired data and populate the visualization layer.
So let's define the business class that represents our objects:
Example 1: Set-up our map object
Example 2: Declare RadMap in XAML
Example 3: Create map items
Example 4: Set DataContext of the MainWindow
Figure 1: RadMap sample
Now to show the RadCallout when the PushPin map element is clicked, we can subscribe to the SelectionChanged event of the VisualizationLayer. In the event handler, we can get the FrameworkElement container that holds the map element and use it as a placement target element for the RadCallout.