Wpf ribbon preview command binding

Stimulsoft Reports.WPF discussion
gugler
Posts: 6
Joined: Fri Jan 10, 2014 9:58 am

Re: Wpf ribbon preview command binding

Post by gugler »

Hello!

After updating my solution to Version 2013.3 some of the command bindings stopped working. In Detail, the PageSizeCommand, PageDeleteCommand, PageNewCommand and PageDesignCommand are not working.

Have there been any changes in this update?

Here is a snippet of my XAML with the affected bindings:

Code: Select all

<telerik:RadRibbonButton Text="Seitengröße" Command="report:StiWpfViewerControl.PageSizeCommand" CommandTarget="{Binding WorkspaceView.CurrentItem.Viewer}" Size="Large" LargeImage="/SigiNX;component/Images/32/page_size.png" />
<StackPanel>
	<telerik:RadRibbonButton Text="Seite löschen" Command="report:StiWpfViewerControl.PageDeleteCommand" CommandTarget="{Binding WorkspaceView.CurrentItem.Viewer}"  Size="Medium" SmallImage="/SigiNX;component/Images/16/page_delete.png" 
							 telerik:ScreenTip.Description="Löscht die aktuelle Seite aus dem Bericht. Die Änderung ist nur für diesen Ausdruck gültig." telerik:ScreenTip.Title="Seite löschen"/>
	<telerik:RadRibbonButton Text="Seite einfügen" Command="report:StiWpfViewerControl.PageNewCommand" CommandTarget="{Binding WorkspaceView.CurrentItem.Viewer}" Size="Medium" SmallImage="/SigiNX;component/Images/16/page_add.png" 
							 telerik:ScreenTip.Description="Fügt eine leere Seite in den Bericht ein. Die Änderung ist nur für diesen Ausdruck gültig." telerik:ScreenTip.Title="Seite löschen"/>
	<telerik:RadRibbonButton Text="Seite bearbeiten" Command="report:StiWpfViewerControl.PageDesignCommand" CommandTarget="{Binding WorkspaceView.CurrentItem.Viewer}" Size="Medium" SmallImage="/SigiNX;component/Images/16/page_edit.png" 
							 telerik:ScreenTip.Description="Öffnet den Editor. Dort können einzelne Inhalte des Berichts geändert werden. Die Änderung ist nur für diesen Ausdruck gültig." telerik:ScreenTip.Title="Seite löschen"/>
</StackPanel>
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Wpf ribbon preview command binding

Post by HighAley »

Hello.

These buttons was hidden in this release. And the corresponding commands don't work if there is the buttons are hidden.
There is also the Preview Settings property of the report where these buttons will be disabled.
If you need to these commands be always available. You could set next static options:

Code: Select all

StiOptions.Viewer.Windows.ShowPageNewButton = true;
StiOptions.Viewer.Windows.ShowPageDeleteButton = true;
StiOptions.Viewer.Windows.ShowPageDesignButton = true;
StiOptions.Viewer.Windows.ShowPageSizeButton = true;
Thank you.
gugler
Posts: 6
Joined: Fri Jan 10, 2014 9:58 am

Re: Wpf ribbon preview command binding

Post by gugler »

Hi!
I tried to include the static Options an also tried to set the Options explicitly on the Viewer, but the commands still don't work.
I'm afraid i don't get it.

Code: Select all

StiOptions.Viewer.Windows.ShowPageNewButton = true;
StiOptions.Viewer.Windows.ShowPageDeleteButton = true;
StiOptions.Viewer.Windows.ShowPageDesignButton = true;
StiOptions.Viewer.Windows.ShowPageSizeButton = true;

viewer = new Stimulsoft.Report.Viewer.StiWpfViewerControl();
viewer.ShowPageNew = true;
viewer.ShowPageDelete = true;
viewer.ShowPageDesign = true;
viewer.ShowPageSize = true;
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Wpf ribbon preview command binding

Post by HighAley »

Hello.

The Preview Settings of the report should be set too.
We have made an improvement. This options will work in our next prerelease build.

Thank you.
gugler
Posts: 6
Joined: Fri Jan 10, 2014 9:58 am

Re: Wpf ribbon preview command binding

Post by gugler »

Hi!

Tried the Settings with the internal build from last friday (17.01). Now the commands are working as expected, but when i use the "Page Design" button, the designer only Shows a blank page!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Wpf ribbon preview command binding

Post by HighAley »

Hello.

Please, try to click on the page. Will the report appear?
We are working of the solution of this issue now.

Thank you.
gugler
Posts: 6
Joined: Fri Jan 10, 2014 9:58 am

Re: Wpf ribbon preview command binding

Post by gugler »

Hello!

Yes, the Report appears when i click on the page. Can you please inform me as soon as you fixed that?

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

Re: Wpf ribbon preview command binding

Post by HighAley »

Hello.

We have fixed this issue.
The patch will be available in our next prerelease build on January 24.

Thank you.
Post Reply