Class RadzenTheme
Registers and manages the current theme. Requires ThemeService to be registered in the DI container.
Inheritance
System.Object
RadzenTheme
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenTheme : IDisposable
Properties
Theme
Gets or sets the theme.
Declaration
public string Theme { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Wcag
Enables WCAG contrast requirements. If set to true additional CSS file will be loaded.
Declaration
public bool Wcag { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Dispose()
Releases all resources used by the component.
Declaration
public void Dispose()
OnInitialized()
Declaration
protected override void OnInitialized()