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.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.