Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenSwitch

    RadzenSwitch component.

    Inheritance
    System.Object
    RadzenComponent
    FormComponent<System.Boolean>
    RadzenSwitch
    Implements
    IDisposable
    IRadzenFormComponent
    Inherited Members
    FormComponent<Boolean>.Name
    FormComponent<Boolean>.TabIndex
    FormComponent<Boolean>.Placeholder
    FormComponent<Boolean>.Disabled
    FormComponent<Boolean>.EditContext
    FormComponent<Boolean>.Form
    FormComponent<Boolean>.ValueChanged
    FormComponent<Boolean>.HasValue
    FormComponent<Boolean>.IsBound
    FormComponent<Boolean>._value
    FormComponent<Boolean>.Value
    FormComponent<Boolean>.Change
    FormComponent<Boolean>.FieldIdentifier
    FormComponent<Boolean>.ValueExpression
    FormComponent<Boolean>.SetParametersAsync(ParameterView)
    FormComponent<Boolean>.Dispose()
    FormComponent<Boolean>.GetValue()
    FormComponent<Boolean>.OnContextMenu(MouseEventArgs)
    FormComponent<Boolean>.GetClassList(String)
    FormComponent<Boolean>.FormFieldContext
    FormComponent<Boolean>.CurrentPlaceholder
    FormComponent<Boolean>.FocusAsync()
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, Int32)
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.OnInitialized()
    RadzenComponent.Reference
    RadzenComponent.OnAfterRenderAsync(Boolean)
    RadzenComponent.RaiseContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.CurrentStyle
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenSwitch : FormComponent<bool>, IDisposable, IRadzenFormComponent
    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
    public IReadOnlyDictionary<string, object> InputAttributes { get; set; }
    Property Value
    Type Description
    IReadOnlyDictionary<System.String, System.Object>

    The attributes.

    ReadOnly

    Gets or sets a value indicating whether is read only.

    Declaration
    public bool ReadOnly { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if is read only; otherwise, false.

    Methods

    GetComponentCssClass()

    Gets the component CSS class.

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

    Toggle()

    Toggles this instance checked state.

    Declaration
    public async Threading.Tasks.Task Toggle()
    Returns
    Type Description
    System.Threading.Tasks.Task

    Implements

    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