Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenSwitch

    RadzenSwitch component.

    Inheritance
    object
    ComponentBase
    RadzenComponent
    FormComponent<bool>
    RadzenSwitch
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    IRadzenFormComponent
    Inherited Members
    FormComponent<bool>._value
    FormComponent<bool>.SetParametersAsync(ParameterView)
    FormComponent<bool>.Dispose()
    FormComponent<bool>.GetValue()
    FormComponent<bool>.OnContextMenu(MouseEventArgs)
    FormComponent<bool>.GetClassList(string)
    FormComponent<bool>.FocusAsync()
    FormComponent<bool>.Name
    FormComponent<bool>.TabIndex
    FormComponent<bool>.Placeholder
    FormComponent<bool>.Disabled
    FormComponent<bool>.EditContext
    FormComponent<bool>.Form
    FormComponent<bool>.ValueChanged
    FormComponent<bool>.HasValue
    FormComponent<bool>.IsBound
    FormComponent<bool>.Value
    FormComponent<bool>.Change
    FormComponent<bool>.FieldIdentifier
    FormComponent<bool>.ValueExpression
    FormComponent<bool>.FormFieldContext
    FormComponent<bool>.CurrentPlaceholder
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, int)
    RadzenComponent.OnInitialized()
    RadzenComponent.OnAfterRenderAsync(bool)
    RadzenComponent.RaiseContextMenu(MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.Reference
    RadzenComponent.CurrentStyle
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.ShouldRender()
    ComponentBase.OnAfterRender(bool)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenSwitch : FormComponent<bool>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRadzenFormComponent
    Examples
    <RadzenSwitch @bind-Value=@value Change=@(args => Console.WriteLine($"Value: {args}")) />

    Constructors

    RadzenSwitch()

    RadzenSwitch component.

    Declaration
    public RadzenSwitch()
    Examples
    <RadzenSwitch @bind-Value=@value Change=@(args => Console.WriteLine($"Value: {args}")) />

    Properties

    InputAttributes

    Specifies additional custom attributes that will be rendered by the input.

    Declaration
    [Parameter]
    public IReadOnlyDictionary<string, object> InputAttributes { get; set; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, object>

    The attributes.

    ReadOnly

    Gets or sets a value indicating whether is read only.

    Declaration
    [Parameter]
    public bool ReadOnly { get; set; }
    Property Value
    Type Description
    bool

    true if is read only; otherwise, false.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    RadzenSwitch component.

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    GetComponentCssClass()

    Gets the component CSS class.

    Declaration
    protected override string GetComponentCssClass()
    Returns
    Type Description
    string
    Overrides
    RadzenComponent.GetComponentCssClass()

    Toggle()

    Toggles this instance checked state.

    Declaration
    public Task Toggle()
    Returns
    Type Description
    Task

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    IRadzenFormComponent

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT