Class RadzenAppearanceToggle
Dark or light theme switch. Requires Radzen.Blazor.RadzenAppearanceToggle.ThemeService to be registered in the DI container.
Implements
Inherited Members
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
OnInitialized()
Called by the Blazor runtime.
Declaration
protected override void OnInitialized()