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.
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.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.