Is there a way to customize the Wpf Designer?

Stimulsoft Reports.WPF discussion
Post Reply
euregon
Posts: 21
Joined: Thu Apr 21, 2011 8:13 am
Location: Germany, Augsburg

Is there a way to customize the Wpf Designer?

Post by euregon »

Hi,

is there a way to customize the Wpf Designer - e.g. add stuff to the Toolbar or to the Menu?

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Is there a way to customize the Wpf Designer?

Post by Alex K. »

Hello,

You can use the following code and only not ribbon GUI:

Code: Select all

private void button1_Click(object sender, RoutedEventArgs e)
{
    StiReport report = new StiReport();
    StiWpfStandardToolbarService stdToolbar = StiWpfStandardToolbarService.GetService();
    stdToolbar.AddToolButton("imageName", "New Button", new RoutedEventHandler(toolButton_Click));
    report.DesignWithWpf();
}

protected void toolButton_Click(System.Object sender, System.EventArgs e)
{
    // Insert code to handle Click event.
}

Thank you.
euregon
Posts: 21
Joined: Thu Apr 21, 2011 8:13 am
Location: Germany, Augsburg

Is there a way to customize the Wpf Designer?

Post by euregon »

Hello Aleksey,

we tried you code. Unfortunately i can't see the button.

Can you please give me a hint where it should show up?

The Designer starts in a German localized version in Ribbon mode
in a WPF Application.

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Is there a way to customize the Wpf Designer?

Post by Alex K. »

Hello,

This possible and only not ribbon GUI.

Thank you.
matin_mlk
Posts: 1
Joined: Tue Aug 16, 2011 8:38 am

Is there a way to customize the Wpf Designer?

Post by matin_mlk »

Hi, according to your explanation "This possible and only not ribbon GUI.".
But my question is how to change ribbon GUI in wpf designer programmatically?
I tried for example:
StiOptions.Wpf.CurrentTheme = StiOptions.Wpf.Themes.Office2003OliveGreenTheme;
But this just changes the Designer for WPF executable file not the one launches with report.DesignWithWfp() command.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Is there a way to customize the Wpf Designer?

Post by HighAley »

Hello.
matin_mlk wrote:Hi, according to your explanation "This possible and only not ribbon GUI.".
But my question is how to change ribbon GUI in wpf designer programmatically?
I tried for example:
StiOptions.Wpf.CurrentTheme = StiOptions.Wpf.Themes.Office2003OliveGreenTheme;
But this just changes the Designer for WPF executable file not the one launches with report.DesignWithWfp() command.
If you want to use Office2003OliveGreenTheme, please, add assembly Stimulsoft.Report.Wpf.Office2003OliveGreenTheme. Each theme is situated in own assembly.

Thank you.
Post Reply