Events

This topic covers the specific events exposed by the RadMap control.

The RadMap control raises the following specific events:

  • CenterChanged - occurs when the Center property of the RadMap control is changed. You can use this event, for example, to prevent user from changing a center of the map or to get the new value of the center location. The event handler receives two arguments:

    • The sender argument contains the RadMap. This argument is of type object, but can be cast to the RadMap type.
    • An EventArgs object.
  • InitializeCompleted - occurs when the map provider has been initialized and the map images are ready to be displayed. You can use this event to display the InformationLayer, as it guarantees that the elements inside of it will be displayed correctly. The event handler receives two arguments:

    • The sender argument contains the RadMap. This argument is of type object, but can be cast to the RadMap type.
    • An EventArgs object.
  • MapMouseClick - occurs when the left mouse button is clicked a single time. You can use the MouseClickMode property to choose one of the predefined single click behaviors or you can implement your own using the event. The event handler receives two arguments:

    • The sender argument contains the RadMap. This argument is of type object, but can be cast to the RadMap type.
    • A MapMouseRoutedEventArgs.
  • MapMouseDoubleClick - occurs when the left mouse button is double clicked. You can use the MouseDoubleClickMode property to choose one of the predefined double click behaviors or you can implement your own using the event. The event handler receives two arguments:

    • The sender argument contains the RadMap. This argument is of type object, but can be cast to the RadMap type.
    • * A MapMouseRoutedEventArgs.
  • PanningFinished - occurs when the panning executed by the user finishes. The event handler receives two arguments:

    • The sender argument contains the RadMap. This argument is of type object, but can be cast to the RadMap type.
    • A RoutedEventArgs object.
  • ZoomChanged - occurs when the ZoomLevel changes its value. The event handler receives two arguments:

    • The sender argument contains the RadMap. This argument is of type object, but can be cast to the RadMap type.
    • An EventArgs object.
  • ZoomFinished - occurs when the zooming action executed by the user finishes. The event handler receives two arguments:

    • The sender argument contains the RadMap. This argument is of type object, but can be cast to the __RadMap__type.
    • A RoutedEventArgs object.

See Also

In this article