Represents a navigation bar element for map controls, providing zoom controls, view selection, and directional navigation functionality with customizable positioning.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class MapNavigationBarElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementMapNavigationBarElement...
Implements:
Inherited Members
Constructors
Initializes a new instance of the MapNavigationBarElement class and associates it with the specified map element for navigation operations.
public MapNavigationBarElement(RadMapElement mapElement)
The RadMapElement that this navigation bar will control for zoom and navigation operations.
Fields
Identifies the NavigationBarLocation dependency property that determines the positioning of the navigation bar within the map control.
public static RadProperty NavigationBarLocationProperty
Properties
Gets the map element that this navigation bar is associated with for controlling zoom levels and navigation operations.
public RadMapElement MapElement { get; }
Gets the navigation element that provides directional controls for panning the map view in four cardinal directions.
public MapNavigationElement MapNavigationElement { get; }
Gets or sets the location where the navigation bar is positioned within the map control, affecting layout and arrangement of child elements.
public MapNavigationBarLocation NavigationBarLocation { get; set; }
Gets the view button element that allows users to switch between different map views and toggle label display settings.
public MapViewButton ViewButton { get; }
Gets the zoom in button element that allows users to increase the map zoom level for more detailed viewing.
public MapZoomInButton ZoomInButton { get; }
Gets the zoom out button element that allows users to decrease the map zoom level for broader viewing.
public MapZoomOutButton ZoomOutButton { get; }
Methods
Arranges the navigation bar child elements within the specified final size based on the navigation bar location and other map element positions.
Creates and initializes all child elements of the navigation bar, including zoom buttons, view button, and navigation element.
protected override void CreateChildElements()
Overrides:
Creates and configures a navigation element that provides directional navigation controls for panning the map view.
protected virtual MapNavigationElement CreateNavigationElement()
A configured MapNavigationElement for directional map navigation.
Creates and configures a view button with appropriate styling and event handling for switching between different map view modes and label settings.
protected virtual MapViewButton CreateViewButton()
A configured MapViewButton for changing map views and display options.
Creates and configures a zoom in button with appropriate styling and event handling for increasing the map zoom level.
protected virtual MapZoomInButton CreateZoomInButton()
A configured MapZoomInButton for zooming in on the map.
Creates and configures a zoom out button with appropriate styling and event handling for decreasing the map zoom level.
protected virtual MapZoomOutButton CreateZoomOutButton()
A configured MapZoomOutButton for zooming out on the map.
Initializes the default field values and properties for the navigation bar element, including focus settings and default positioning.
protected override void InitializeFields()
Overrides:
Measures the required size for the navigation bar element based on the current navigation bar location and child element dimensions.
Handles the completion of map provider initialization by updating the view button visibility based on supported views.
public virtual void OnProviderInitializationComplete(IMapProvider mapProvider)
The IMapProvider that has completed initialization.