Designer - theme color and V2

Stimulsoft Reports.WPF discussion
Post Reply
User avatar
ednt
Posts: 64
Joined: Tue Apr 30, 2019 9:03 am

Designer - theme color and V2

Post by ednt »

Good day everyone,

I have 2 questions for you to the designer in WPF.

1. How can i change the color of the office2013 design from code? I only found one design, but without a color specification.
2. How i can use the designerV2 instead of the default designer? I know i can directly show a report with report.showWithWPFV2, but i need the V2 as StiOption or something else in my code-behind-designe-class.
CurrentTheme.png
CurrentTheme.png (14.18 KiB) Viewed 3171 times
CurrentTheme.png
CurrentTheme.png (14.18 KiB) Viewed 3171 times
Attachments
Designer_xaml.PNG
Designer_xaml.PNG (77.54 KiB) Viewed 3168 times
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Designer - theme color and V2

Post by Lech Kulikowski »

Hello,

> 1. How can i change the color of the office2013 design from code? I only found one design, but without a color specification.

You can use the following code:
StiThemesHelper.SetOffice2013ThemeInfo(StiOffice2013Theme.Office2013DarkGray, StiOffice2013ThemeStyle.Orange);

> 2. How i can use the designerV2 instead of the default designer? I know i can directly show a report with report.showWithWPFV2, but i need the V2 as StiOption or something else in my code-behind-designe-class.

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
User avatar
ednt
Posts: 64
Joined: Tue Apr 30, 2019 9:03 am

Re: Designer - theme color and V2

Post by ednt »

Hi,

thank you for your response.
I'm now able to set the color.

The other problem is:
I want to show the designer in the Wpf2 theme like the DesignerV2.Wpf.exe
But I found no class like Wpf2 and I was not able to change the theme via StiOptions.Wpf
I also tried some stuf like:
xmlns:wpfDesigner="clr-namespace:Stimulsoft.Report.WpfDesign;assembly=Stimulsoft.Report.WpfDesign"
at the window definition. But there is no Wpf2Design available.
How can I create a Wpf2 designer via code?
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Designer - theme color and V2

Post by Lech Kulikowski »

Hello,

The V2 designer is placed on Stimulsoft.Client.Designer
and called as:
var window = new StiCloudDesignerLauncherWindow();
window.ShowDesigner(report);

it is not possible to use as a control.

Thank you.
User avatar
ednt
Posts: 64
Joined: Tue Apr 30, 2019 9:03 am

Re: Designer - theme color and V2

Post by ednt »

Hi,
thank you for your response.

One last question :)
Can i customize the Designer (xmlns:wpfDesigner="clr-namespace:Stimulsoft.Report.WpfDesign;assembly=Stimulsoft.Report.WpfDesign")
that it looks like the StiCloudDesigner ?

Thank you.
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Designer - theme color and V2

Post by Lech Kulikowski »

Hello,

Unfortunately. not all element available for customizations.

Thank you.
Post Reply