Page 1 of 1
Is there a way to customize the Wpf Designer?
Posted: Tue Apr 26, 2011 4:42 am
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.
Is there a way to customize the Wpf Designer?
Posted: Wed Apr 27, 2011 6:35 am
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.
Is there a way to customize the Wpf Designer?
Posted: Mon May 02, 2011 3:49 am
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.
Is there a way to customize the Wpf Designer?
Posted: Mon May 02, 2011 6:23 am
by Alex K.
Hello,
This possible and only not ribbon GUI.
Thank you.
Is there a way to customize the Wpf Designer?
Posted: Tue Aug 16, 2011 8:48 am
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.
Is there a way to customize the Wpf Designer?
Posted: Wed Aug 17, 2011 5:15 am
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.