ClassMapZoomBar
Map zoom control.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public class MapZoomBar : MapBaseControl, ILayer, ISupportInitialize
Inheritance: objectMapBaseControlMapZoomBar
Implements:
Inherited Members
Constructors
MapZoomBar()
Initializes a new instance of the MapZoomBar class.
Declaration
public MapZoomBar()
Fields
DropDownHeightProperty
Identifies the DropDownHeight DropDownHeight dependency property.
Declaration
public static readonly DependencyProperty DropDownHeightProperty
Field Value
DependencyProperty
ZoomLevelButtonTemplateProperty
Identifies the ZoomLevelButtonTemplate dependency property.
Declaration
public static readonly DependencyProperty ZoomLevelButtonTemplateProperty
Field Value
DependencyProperty
Properties
Commands
Gets collection of the zoom commands.
Declaration
public ObservableCollection<CommandDescription> Commands { get; }
Property Value
DefaultZoomButtonTemplate
Gets default zoom level button's data template depends on the theme set for RadMap control.
Declaration
public DataTemplate DefaultZoomButtonTemplate { get; }
Property Value
DataTemplate
DropDownHeight
Gets or sets height of the drop down.
ZoomLevelButtonTemplate
Gets or sets the ZoomLevel Button data template.
Declaration
public DataTemplate ZoomLevelButtonTemplate { get; set; }
Property Value
DataTemplate
Methods
BeginInit()
Start control initialization.
Declaration
public void BeginInit()
Implements
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).
OnMouseLeftButtonDown(MouseButtonEventArgs)
Method is called when the Mouse Left Button is down.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
e
MouseButtonEventArgs
Event arguments.
OnMouseLeftButtonUp(MouseButtonEventArgs)
Method is called when the Mouse Left Button is up.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
e
MouseButtonEventArgs
Event arguments.
RegisterSetZoomLevelCommand(int, string, DataTemplate, Uri)
Register new set zoom level command.
Declaration
public void RegisterSetZoomLevelCommand(int zoomLevel, string text, DataTemplate dataTemplate, Uri imageUri)
Parameters
zoomLevel
Zoom level.
text
Command text.
dataTemplate
DataTemplate
Data template for command representation.
imageUri
Uri
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()