Page 1 of 1

Theme don't changed at start

Posted: Tue Aug 27, 2013 3:51 am
by LIM HT
hello.

I tried to change wpf view and designer's theme at runtime(when loaded).

so i added like..
StiOptions.Windows.GlobalGuiStyle = StiGlobalGuiStyle.Office2007Blue;

But theme is never changed...

Re: Theme don't changed at start

Posted: Tue Aug 27, 2013 5:07 am
by HighAley
Hello.

If you change style at runtime, the Designer should be reloaded.

Thank you.

Re: Theme don't changed at start

Posted: Wed Aug 28, 2013 5:32 am
by LIM HT
hello, Mr. by Aleksey

we tried to set 'theme' before create instance of 'wpf designer or viewer'

our code is..

Code: Select all

        private StiWpfDesignerControl designerControl;

            StiOptions.Windows.GlobalGuiStyle = StiGlobalGuiStyle.Office2007Blue;

                designerControl = new StiWpfDesignerControl();
                designerControl.SetValue(Grid.RowProperty, 1);
                designerControl.ShowMainMenu = false;
                rootGrid.Children.Add(designerControl);
StiOptions.Windows.GlobalGuiStyle = StiGlobalGuiStyle.Office2007Blue; << nerver works even if restart app..


help me

Re: Theme don't changed at start

Posted: Thu Aug 29, 2013 10:45 am
by Alex K.
Hello,

Please check that you have added the Stimulsoft.Report.Wpf.Office2007BlueTheme.dll assembly to the references.

Thank you.

Re: Theme don't changed at start

Posted: Mon May 26, 2014 8:24 am
by ChrDressler
This does not work in the current version also :-(

Re: Theme don't changed at start

Posted: Mon May 26, 2014 12:46 pm
by Alex K.
Hello,

Can you please send us a sample project which reproduce the issue for analysis.

Thank you.

Re: Theme don't changed at start

Posted: Tue May 27, 2014 7:01 am
by ChrDressler
Here ist the sample project.
I try to force Office2007Blue:

Code: Select all

StiOptions.Windows.GlobalGuiStyle = StiGlobalGuiStyle.Office2007Blue;

Re: Theme don't changed at start

Posted: Tue May 27, 2014 12:58 pm
by Alex K.
Hello,

Please try to use the following option:
StiOptions.Wpf.CurrentTheme = StiOptions.Wpf.Themes.Office2003BlueTheme;

Thank you.

Re: Theme don't changed at start

Posted: Tue May 27, 2014 3:07 pm
by ChrDressler
Yes, that's it! :P

Re: Theme don't changed at start

Posted: Wed May 28, 2014 7:40 am
by Alex K.
Hello,

We are always glad to help you!
Let us know if you need any additional help.