Table of Contents

Class RadzenAppearanceToggle

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

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

public class RadzenAppearanceToggle : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
RadzenAppearanceToggle
Implements
Inherited Members

Constructors

RadzenAppearanceToggle()

public RadzenAppearanceToggle()

Properties

ButtonStyle

Gets or sets the switch button style.

[Parameter]
public ButtonStyle ButtonStyle { get; set; }

Property Value

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.

[Parameter]
public string DarkTheme { get; set; }

Property Value

string

LightTheme

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

[Parameter]
public string LightTheme { get; set; }

Property Value

string

ToggleButtonStyle

Gets or sets the switch button toggled style.

[Parameter]
public ButtonStyle ToggleButtonStyle { get; set; }

Property Value

ButtonStyle

The switch button toggled style.

ToggleShade

Gets or sets the switch button toggled shade.

[Parameter]
public Shade ToggleShade { get; set; }

Property Value

Shade

The switch button toggled shade.

Variant

Gets or sets the switch button variant.

[Parameter]
public Variant Variant { get; set; }

Property Value

Variant

The switch button variant.

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

Dispose()

public override void Dispose()

OnInitialized()

protected override void OnInitialized()