Theme keys for custom styling

Stimulsoft Reports.WPF discussion
Post Reply
Janski
Posts: 4
Joined: Mon Jan 09, 2023 7:45 am

Theme keys for custom styling

Post by Janski »

Hello,

Is it possible to set custom styling and colors for the designer components? I've tried to set the horizontal alignment for MainTabControl inside StiWpfDesignerControl but it also overrides other styles.

Is it possible to customize the component this way at all?

-Janski
Janski
Posts: 4
Joined: Mon Jan 09, 2023 7:45 am

Re: Theme keys for custom styling

Post by Janski »

Hello, I managed to set the horizontal alignment for StiWpfPageViewControl which did the trick. But the question is still that the theme keys are not avaible right now.

-Janski
Lech Kulikowski
Posts: 5129
Joined: Tue Mar 20, 2018 5:34 am

Re: Theme keys for custom styling

Post by Lech Kulikowski »

Hello,

Unfortunately, currently, changing or setting a custom theme is possible only from the source code if you have it.

Thank you.
Janski
Posts: 4
Joined: Mon Jan 09, 2023 7:45 am

Re: Theme keys for custom styling

Post by Janski »

Hello, I didn't find how to set the theme for designers. Is that possible?

If the default theme is good enough for us, then we could use that setting.

-Janski
Janski
Posts: 4
Joined: Mon Jan 09, 2023 7:45 am

Re: Theme keys for custom styling

Post by Janski »

Our project manager also would like to know how much work is it to setup themekeys in the source code and if we update to new version, does the new version override the styling?

-Janski
Lech Kulikowski
Posts: 5129
Joined: Tue Mar 20, 2018 5:34 am

Re: Theme keys for custom styling

Post by Lech Kulikowski »

Hello,

You can use the following code:
StiWpfSkinHelper.SetNewSkin(StiSkinBackground.Black, StiSkinForeground.Orange)

In the source code, in the Stimulsoft.Controls.Wpf assembly in the Themes/V3 folder all themes are present.

Thank you.
Post Reply