Theme don't changed at start

Stimulsoft Reports.WPF discussion
Post Reply
LIM HT
Posts: 16
Joined: Fri Aug 23, 2013 10:51 am

Theme don't changed at start

Post 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...
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Theme don't changed at start

Post by HighAley »

Hello.

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

Thank you.
LIM HT
Posts: 16
Joined: Fri Aug 23, 2013 10:51 am

Re: Theme don't changed at start

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Theme don't changed at start

Post by Alex K. »

Hello,

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

Thank you.
ChrDressler
Posts: 68
Joined: Tue Nov 09, 2010 2:05 pm
Location: Dresden

Re: Theme don't changed at start

Post by ChrDressler »

This does not work in the current version also :-(
Foxpro and behind
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Theme don't changed at start

Post by Alex K. »

Hello,

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

Thank you.
ChrDressler
Posts: 68
Joined: Tue Nov 09, 2010 2:05 pm
Location: Dresden

Re: Theme don't changed at start

Post by ChrDressler »

Here ist the sample project.
I try to force Office2007Blue:

Code: Select all

StiOptions.Windows.GlobalGuiStyle = StiGlobalGuiStyle.Office2007Blue;
Attachments
StiGlobalGuiStyle.zip
(47.25 KiB) Downloaded 320 times
Foxpro and behind
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Theme don't changed at start

Post by Alex K. »

Hello,

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

Thank you.
ChrDressler
Posts: 68
Joined: Tue Nov 09, 2010 2:05 pm
Location: Dresden

Re: Theme don't changed at start

Post by ChrDressler »

Yes, that's it! :P
Foxpro and behind
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Theme don't changed at start

Post by Alex K. »

Hello,

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