alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class MapsZoomToolbarButton

    Gets and sets the properties for rendering the buttons in the zoom toolbar.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    MapsZoomToolbarButton
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.Maps
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MapsZoomToolbarButton : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    MapsZoomToolbarButton()

    Declaration
    public MapsZoomToolbarButton()

    Properties

    BorderColor

    Gets and sets the color of the border of the button in the zoom toolbar.

    Declaration
    [Parameter]
    public string BorderColor { get; set; }
    Property Value
    Type Description
    string

    A string representing the color of the button's border.

    Remarks

    This property specifies the border color for individual buttons in the zoom toolbar.

    BorderOpacity

    Gets and sets the opacity of the border of the button in the zoom toolbar.

    Declaration
    [Parameter]
    public double BorderOpacity { get; set; }
    Property Value
    Type Description
    double

    A double value representing the border's opacity, ranging from 0 (completely transparent) to 1 (fully opaque). Default is 1.

    Remarks

    This property allows customization of border transparency for zoom toolbar buttons.

    BorderWidth

    Gets and sets the width of the border of the button in the zoom toolbar.

    Declaration
    [Parameter]
    public double BorderWidth { get; set; }
    Property Value
    Type Description
    double

    A double value representing the width of the button's border. The default value is 1.

    Remarks

    Use this property to define how thick the borders of toolbar buttons should appear.

    ChildContent

    Sets and gets the content of the UI element.

    Declaration
    [Parameter]
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    RenderFragment

    A RenderFragment representing the template content of the UI element.

    Remarks

    This property is used to define custom content within the button elements of the zoom toolbar.

    Color

    Gets and sets the color of the icons of the button.

    Declaration
    [Parameter]
    public string Color { get; set; }
    Property Value
    Type Description
    string

    A string representing the color of the button icons.

    Remarks

    This property is used to set the color for icons displayed on toolbar buttons.

    Fill

    Gets and sets the fill color of the button.

    Declaration
    [Parameter]
    public string Fill { get; set; }
    Property Value
    Type Description
    string

    A string representing the button's background fill color. Default is "transparent".

    Remarks

    Use this property to set a background color for the zoom toolbar buttons.

    HighlightColor

    Gets and sets the color of the icons of the button when mouseover is performed.

    Declaration
    [Parameter]
    public string HighlightColor { get; set; }
    Property Value
    Type Description
    string

    A string representing the highlight color for button icons during mouseover.

    Remarks

    Customize this property to change the icon color when the user hovers over a toolbar button.

    Opacity

    Gets and sets the opacity of the button.

    Declaration
    [Parameter]
    public double Opacity { get; set; }
    Property Value
    Type Description
    double

    A double value indicating the opacity level of the button. Default is 1.

    Remarks

    This property controls the transparency of the entire button when displayed in the toolbar.

    Padding

    Gets and sets the padding of the button.

    Declaration
    [Parameter]
    public double Padding { get; set; }
    Property Value
    Type Description
    double

    A double value representing padding around the button's content. Default is 5.

    Remarks

    Use this property to adjust spacing around icons or text within toolbar buttons.

    Radius

    Gets and sets the height of the button.

    Declaration
    [Parameter]
    public double Radius { get; set; }
    Property Value
    Type Description
    double

    A double value representing the button's radius. Default is 0.

    Remarks

    This property controls the corner roundness of the toolbar buttons.

    SelectionColor

    Gets and sets the color of the icons of the button when selection is performed.

    Declaration
    [Parameter]
    public string SelectionColor { get; set; }
    Property Value
    Type Description
    string

    A string representing the color of button icons when selected.

    Remarks

    This property allows you to specify a color for when a toolbar button is active or selected.

    ToolbarItems

    Gets and sets the type of buttons to render in the zoom toolbar, such as ZoomIn, ZoomOut, Zoom, Reset, and Pan.

    Declaration
    [Parameter]
    public List<ToolbarItem> ToolbarItems { get; set; }
    Property Value
    Type Description
    List<ToolbarItem>

    A list of ToolbarItem indicating the buttons available in the toolbar. Defaults to ZoomIn, ZoomOut, and Reset.

    Remarks

    This property defines which zoom actions are represented by buttons within the toolbar.

    Methods

    Dispose(bool)

    Disposes the property values during the destroy of the component that is hold up for the execution of the component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    Overrides
    OwningComponentBase.Dispose(bool)

    OnInitializedAsync()

    OnInitializedAsync method is called when the component has received its initial parameters.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    Task representing the asynchronous operation.

    Overrides
    ComponentBase.OnInitializedAsync()

    OnParametersSetAsync()

    OnParametersSetAsync is a lifecycle method that is invoked when the component has received parameters, and the incoming values have been assigned to the properties.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    Task

    Task representing the asynchronous operation.

    Overrides
    ComponentBase.OnParametersSetAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved