Skip to main content
All docs
V25.1
  • IThemeChangeService.SetTheme(ITheme) Method

    Applies a theme to an application.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    Task<bool> SetTheme(
        ITheme theme
    )

    Parameters

    Name Type Description
    theme ITheme

    A DevExpress Blazor theme.

    Returns

    Type Description
    Task<Boolean>

    An asynchronous operation that applies a theme. The operation returns true if the operation is successful; otherwise, false.

    Remarks

    Refer to the IThemeChangeService interface description for more information and an example.

    See Also