Page 1 of 1

Theme keys for custom styling

Posted: Mon Jan 09, 2023 8:03 am
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

Re: Theme keys for custom styling

Posted: Mon Jan 09, 2023 8:24 am
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

Re: Theme keys for custom styling

Posted: Mon Jan 09, 2023 8:35 am
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.

Re: Theme keys for custom styling

Posted: Mon Jan 09, 2023 8:36 am
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

Re: Theme keys for custom styling

Posted: Mon Jan 09, 2023 8:43 am
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

Re: Theme keys for custom styling

Posted: Mon Jan 09, 2023 10:01 pm
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.