Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenTheme

    Registers and manages the current theme. Requires Radzen.Blazor.RadzenTheme.ThemeService to be registered in the DI container.

    Inheritance
    object
    ComponentBase
    RadzenTheme
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.ShouldRender()
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.SetParametersAsync(ParameterView)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenTheme : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    RadzenTheme()

    Registers and manages the current theme. Requires Radzen.Blazor.RadzenTheme.ThemeService to be registered in the DI container.

    Declaration
    public RadzenTheme()

    Properties

    PreloadIconFont

    When set to true the icon font will be preloadd.

    Declaration
    [Parameter]
    public bool PreloadIconFont { get; set; }
    Property Value
    Type Description
    bool

    Theme

    Gets or sets the theme.

    Declaration
    [Parameter]
    public string? Theme { get; set; }
    Property Value
    Type Description
    string

    Wcag

    Enables WCAG contrast requirements. If set to true additional CSS file will be loaded.

    Declaration
    [Parameter]
    public bool Wcag { get; set; }
    Property Value
    Type Description
    bool

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Registers and manages the current theme. Requires Radzen.Blazor.RadzenTheme.ThemeService to be registered in the DI container.

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    Dispose()

    Releases all resources used by the component.

    Declaration
    public void Dispose()

    OnInitialized()

    Registers and manages the current theme. Requires Radzen.Blazor.RadzenTheme.ThemeService to be registered in the DI container.

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

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    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