ClassMapZoomBar
Map zoom control.
Definition
Namespace:Telerik.UI.Xaml.Controls.DataVisualization.Map
Assembly:Telerik.WinUI.Controls.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
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
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
OnMapInitialize(RadMap, RadMap)
Called when map control should be initialized (either on initial load or if the RadMap control owner is changed).
OnPointerPressed(PointerRoutedEventArgs)
Declaration
protected override void OnPointerPressed(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnPointerReleased(PointerRoutedEventArgs)
Declaration
protected override void OnPointerReleased(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
RegisterSetZoomLevelCommand(double, string, DataTemplate, Uri)
Register new set zoom level command.
Declaration
public void RegisterSetZoomLevelCommand(double 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()