New to Telerik UI for WPFStart a free 30-day trial

Map zoom control.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class MapZoomBar : MapBaseControl, ILayer, ISupportInitialize

Inheritance: objectMapBaseControlMapZoomBar

Implements: ILayerISupportInitialize

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

Constructors

Initializes a new instance of the MapZoomBar class.

C#
public MapZoomBar()

Fields

DropDownHeightProperty

DependencyProperty

Identifies the DropDownHeight DropDownHeight dependency property.

C#
public static readonly DependencyProperty DropDownHeightProperty

Identifies the ZoomLevelButtonTemplate dependency property.

C#
public static readonly DependencyProperty ZoomLevelButtonTemplateProperty

Properties

Gets collection of the zoom commands.

C#
public ObservableCollection<CommandDescription> Commands { get; }

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

C#
public DataTemplate DefaultZoomButtonTemplate { get; }

Gets or sets height of the drop down.

C#
public double DropDownHeight { get; set; }

Gets or sets the ZoomLevel Button data template.

C#
public DataTemplate ZoomLevelButtonTemplate { get; set; }

Methods

Start control initialization.

C#
public void BeginInit()

Implements: ISupportInitialize.BeginInit()

End control initialization.

C#
public void EndInit()

Implements: ISupportInitialize.EndInit()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.

C#
public override void OnApplyTemplate()

Overrides: MapBaseControl.OnApplyTemplate()

Called when map control should be initialized (either on initial load or if the RadMap control owner is changed).

C#
protected override void OnMapInitialize(RadMap oldMapControl, RadMap newMapControl)
Parameters:oldMapControlRadMap

The old RadMap control owner.

newMapControlRadMap

The new RadMap control owner.

Overrides: MapBaseControl.OnMapInitialize(RadMap, RadMap)

Method is called when the Mouse Left Button is down.

C#
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

Event arguments.

Method is called when the Mouse Left Button is up.

C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

Event arguments.

Register new set zoom level command.

C#
public void RegisterSetZoomLevelCommand(int zoomLevel, string text, DataTemplate dataTemplate, Uri imageUri)
Parameters:zoomLevelint

Zoom level.

textstring

Command text.

dataTemplateDataTemplate

Data template for command representation.

imageUriUri

URI of the image is used in the map source button data template.

Toggles the visibility of the zoom bar control.

C#
public void ToggleVisibility()