Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenAppearanceToggle

    Dark or light theme switch. Requires Radzen.Blazor.RadzenAppearanceToggle.ThemeService to be registered in the DI container.

    Inheritance
    System.Object
    RadzenComponent
    RadzenAppearanceToggle
    Implements
    IDisposable
    Inherited Members
    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.GetComponentCssClass()
    RadzenComponent.Debounce(Func<Task>, Int32)
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.SetParametersAsync(ParameterView)
    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 RadzenAppearanceToggle : RadzenComponent, IDisposable

    Properties

    ButtonStyle

    Gets or sets the switch button style.

    Declaration
    public ButtonStyle ButtonStyle { get; set; }
    Property Value
    Type Description
    ButtonStyle

    The switch button style.

    DarkTheme

    Gets or sets the dark theme. Not set by default - the component uses the dark version of the current theme.

    Declaration
    public string DarkTheme { get; set; }
    Property Value
    Type Description
    System.String

    LightTheme

    Gets or sets the light theme. Not set by default - the component uses the light version of the current theme.

    Declaration
    public string LightTheme { get; set; }
    Property Value
    Type Description
    System.String

    ToggleButtonStyle

    Gets or sets the switch button toggled style.

    Declaration
    public ButtonStyle ToggleButtonStyle { get; set; }
    Property Value
    Type Description
    ButtonStyle

    The switch button toggled style.

    ToggleShade

    Gets or sets the switch button toggled shade.

    Declaration
    public Shade ToggleShade { get; set; }
    Property Value
    Type Description
    Shade

    The switch button toggled shade.

    Variant

    Gets or sets the switch button variant.

    Declaration
    public Variant Variant { get; set; }
    Property Value
    Type Description
    Variant

    The switch button variant.

    Methods

    Dispose()

    Detaches event handlers and disposes Reference.

    Declaration
    public override void Dispose()
    Overrides
    RadzenComponent.Dispose()

    OnInitialized()

    Called by the Blazor runtime.

    Declaration
    protected override void OnInitialized()
    Overrides
    RadzenComponent.OnInitialized()

    Implements

    IDisposable

    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