Change Theme in Avalonia
Our sample projects and report templates can help you learn the basics of working with our products.Stimulsoft integrates with Avalonia's light/dark theming. This example switches the application theme and applies the matching Stimulsoft appearance.
Appearance settings. Select the appearance options before the component is created and verify the chosen theme in the rendered interface.
Appearance settings. Select the appearance options before the component is created and verify the chosen theme in the rendered interface.
StiOptions.Configuration.IsAvalonia = true;
// switch to dark
Application.Current.RequestedThemeVariant = ThemeVariant.Dark;
StiAvaloniaTheme.ApplyNewTheme(StiAvaloniaAppThemeAppearance.Dark);Setting StiOptions.Configuration.IsAvalonia = true enables the Avalonia integration; changing RequestedThemeVariant and calling StiAvaloniaTheme.ApplyNewTheme keeps the report viewer and designer in step with the app's light or dark theme.