MapZoomBar
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
Initializes a new instance of the MapZoomBar class.
public MapZoomBar()
Fields
DropDownHeightProperty
DependencyProperty
Identifies the DropDownHeight DropDownHeight dependency property.
public static readonly DependencyProperty DropDownHeightProperty
ZoomLevelButtonTemplateProperty
DependencyProperty
Identifies the ZoomLevelButtonTemplate dependency property.
public static readonly DependencyProperty ZoomLevelButtonTemplateProperty
Properties
Gets collection of the zoom commands.
public ObservableCollection<CommandDescription> Commands { get; }
DefaultZoomButtonTemplate
DataTemplate
Gets default zoom level button's data template depends on the theme set for RadMap control.
public DataTemplate DefaultZoomButtonTemplate { get; }
Gets or sets height of the drop down.
public double DropDownHeight { get; set; }
ZoomLevelButtonTemplate
DataTemplate
Gets or sets the ZoomLevel Button data template.
public DataTemplate ZoomLevelButtonTemplate { get; set; }
Methods
Start control initialization.
public void BeginInit()
Implements:
End control initialization.
public void EndInit()
Implements:
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.
public override void OnApplyTemplate()
Overrides:
Called when map control should be initialized (either on initial load or if the RadMap control owner is changed).
Method is called when the Mouse Left Button is down.
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Event arguments.
Method is called when the Mouse Left Button is up.
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Event arguments.
Register new set zoom level command.
public void RegisterSetZoomLevelCommand(int zoomLevel, string text, DataTemplate dataTemplate, Uri imageUri)
Zoom level.
textstringCommand text.
dataTemplateDataTemplateData template for command representation.
imageUriUriURI of the image is used in the map source button data template.
Toggles the visibility of the zoom bar control.
public void ToggleVisibility()