Class
MapCommandBar

Command bar which sends commands to the RadMap control.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public class MapCommandBar : MapBaseControl, ILayer

Inheritance: objectMapBaseControlMapCommandBar

Implements: ILayer

Inherited Members MapBaseControl.MapControlPropertyMapBaseControl.MultiscaleImage_MotionFinished(object, RoutedEventArgs)MapBaseControl.MultiscaleImage_ViewportChanged(object, RoutedEventArgs)MapBaseControl.OnApplyTemplate()MapBaseControl.MapControl

Constructors

MapCommandBar()

Initializes a new instance of the MapCommandBar class.

Declaration

cs-api-definition
public MapCommandBar()

Fields

MapSourceButtonTemplateProperty

Identifies the MapSourceButtonTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MapSourceButtonTemplateProperty

Field Value

DependencyProperty

MapSwitchModeButtonTemplateProperty

Identifies the MapSwitchModeButtonTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MapSwitchModeButtonTemplateProperty

Field Value

DependencyProperty

Properties

DefaultChangeModeButtonTemplate

Gets default change mode button's data template depends on the theme set for RadMap control.

Declaration

cs-api-definition
public DataTemplate DefaultChangeModeButtonTemplate { get; }

Property Value

DataTemplate

DefaultChangeSourceButtonTemplate

Gets default change source button's data template depends on the theme set for RadMap control.

Declaration

cs-api-definition
public DataTemplate DefaultChangeSourceButtonTemplate { get; }

Property Value

DataTemplate

MapSourceButtonTemplate

Gets or sets the Source Button data template.

Declaration

cs-api-definition
public DataTemplate MapSourceButtonTemplate { get; set; }

Property Value

DataTemplate

MapSwitchModeButtonTemplate

Gets or sets the Switch Mode Button data template.

Declaration

cs-api-definition
public DataTemplate MapSwitchModeButtonTemplate { get; set; }

Property Value

DataTemplate

Methods

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnMapInitialize(RadMap, RadMap)

Method is called when the map is initialized.

Declaration

cs-api-definition
protected override void OnMapInitialize(RadMap oldMapControl, RadMap newMapControl)

Parameters

oldMapControl

RadMap

newMapControl

RadMap

Overrides MapBaseControl.OnMapInitialize(RadMap, RadMap)

OnMouseLeftButtonDown(MouseButtonEventArgs)

Method is called when the Mouse Left Button is down.

Declaration

cs-api-definition
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

Event arguments.

OnMouseLeftButtonUp(MouseButtonEventArgs)

Method is called when the Mouse Left Button is up.

Declaration

cs-api-definition
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

Event arguments.

Refresh()

Refresh command buttons regardless whether map provider has been changed or not.

Declaration

cs-api-definition
public void Refresh()

ToggleVisibility()

Toggles the visibility of the command bar control.

Declaration

cs-api-definition
public void ToggleVisibility()