Changing wpf viewer theme

Stimulsoft Reports.WPF discussion
Post Reply
Kredoks
Posts: 4
Joined: Fri Mar 26, 2021 12:05 pm

Changing wpf viewer theme

Post by Kredoks »

Hello, got a question - since GlobalGuiStyle preoprty is obsoleted is it possible to change a style somehow? (Or at least to turn off adaptation of an StiViewer to a windows color scheme)
Lech Kulikowski
Posts: 7545
Joined: Tue Mar 20, 2018 5:34 am

Re: Changing wpf viewer theme

Post by Lech Kulikowski »

Hello,

You can use the following code:
StiUXTheme.ApplyNewTheme(StiThemeAppearance.Light, StiUXTheme.AccentColor);

Thank you.
Post Reply