Class MapZoomBar
Map zoom control.
Inherited Members
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class MapZoomBar : MapBaseControl, ILayer, ISupportInitialize
Constructors
MapZoomBar()
Fields
DropDownHeightProperty
Identifies the DropDownHeight DropDownHeight dependency property.
Declaration
public static readonly DependencyProperty DropDownHeightProperty
Field Value
System.Windows.DependencyProperty
|
ZoomLevelButtonTemplateProperty
Identifies the ZoomLevelButtonTemplate dependency property.
Declaration
public static readonly DependencyProperty ZoomLevelButtonTemplateProperty
Field Value
System.Windows.DependencyProperty
|
Properties
Commands
Gets collection of the zoom commands.
Declaration
public ObservableCollection<CommandDescription> Commands { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<CommandDescription>
|
DefaultZoomButtonTemplate
Gets default zoom level button's data template depends on the theme set for RadMap control.
Declaration
public DataTemplate DefaultZoomButtonTemplate { get; }
Property Value
System.Windows.DataTemplate
|
DropDownHeight
Gets or sets height of the drop down.
Declaration
public double DropDownHeight { get; set; }
Property Value
System.Double
|
ZoomLevelButtonTemplate
Gets or sets the ZoomLevel Button data template.
Declaration
public DataTemplate ZoomLevelButtonTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
Methods
BeginInit()
Start control initialization.
Declaration
public void BeginInit()
EndInit()
End control initialization.
Declaration
public void EndInit()
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.
Declaration
public override void OnApplyTemplate()
Overrides
OnMapInitialize(RadMap, RadMap)
Called when map control should be initialized (either on initial load or if the RadMap control owner is changed).
Declaration
protected override void OnMapInitialize(RadMap oldMapControl, RadMap newMapControl)
Parameters
RadMap
oldMapControl
The old RadMap control owner. |
RadMap
newMapControl
The new RadMap control owner. |
Overrides
OnMouseLeftButtonDown(MouseButtonEventArgs)
Method is called when the Mouse Left Button is down.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
Event arguments. |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Method is called when the Mouse Left Button is up.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
Event arguments. |
RegisterSetZoomLevelCommand(Int32, String, DataTemplate, Uri)
Register new set zoom level command.
Declaration
public void RegisterSetZoomLevelCommand(int zoomLevel, string text, DataTemplate dataTemplate, Uri imageUri)
Parameters
System.Int32
zoomLevel
Zoom level. |
System.String
text
Command text. |
System.Windows.DataTemplate
dataTemplate
Data template for command representation. |
System.Uri
imageUri
URI of the image is used in the map source button data template. |
ToggleVisibility()
Toggles the visibility of the zoom bar control.
Declaration
public void ToggleVisibility()