Page 1 of 2
Wpf ribbon preview command binding
Posted: Thu Mar 10, 2011 10:20 am
by jmiller
I have an app with its own ribbon. I am looking into hiding the supplied Wpf preview control's ribbon and creating my buttons in my app's ribbon. How can I bind my buttons to the ribbon preview control's equivalent? For example, I have an Open button on my ribbon and I want it to function just like your Open button. I am not worried the image/text/tooltip. I do want to make sure the enable state and the command operate the same way.
Wpf ribbon preview command binding
Posted: Thu Mar 10, 2011 10:35 am
by jmiller
I found the solution to my question. I found the commands that are available and I can now bind to them. For example: ReportOpenCommand.
Wpf ribbon preview command binding
Posted: Fri Mar 11, 2011 1:04 am
by Alex K.
Ok! Have a nice day!
Wpf ribbon preview command binding
Posted: Tue Jul 26, 2011 8:31 am
by mcgu
Hi,
i'm having the same problem. Where can i find the commands?
best regards
Michael
Wpf ribbon preview command binding
Posted: Fri Jul 29, 2011 12:31 am
by Andrew
Hello,
There is a realization of RoutedUICommand only in a viewer. In WPF designer we have not used it because in complicated UI it is difficult and not convenient.
Thank you.
Wpf ribbon preview command binding
Posted: Fri Jul 29, 2011 1:16 am
by mcgu
ok, maybe i don't get it right. i use the wpf viewercontrol, but without the toolbar. i want to use my own ribbon controls for that.
how can i make my ribbon buttons use the commands of the viewer? can you give me an example?
i thougth of something like this:
is this the right way?
thanks!
Michael
Wpf ribbon preview command binding
Posted: Fri Jul 29, 2011 3:51 am
by Alex K.
Hello Michael,
Please check the sample in attachment.
Thank you.
Wpf ribbon preview command binding
Posted: Fri Jul 29, 2011 5:04 am
by mcgu
Perfect, excatly what i was looking for!
Thanks a lot!
Wpf ribbon preview command binding
Posted: Fri Jul 29, 2011 8:20 am
by Andrew
Hello,
As always we are happy to help you.
Thank you.
Re: Wpf ribbon preview command binding
Posted: Fri Jan 10, 2014 10:04 am
by gugler
Hello!
After i updated my solution to Stimulsoft 2013.3 some of the command bindings stopped working.
In Detail, the PageDeleteCommand, PageNewCommand, PageDesignCommand and PageSizeCommand are not working. Other Commands (for example FullScreen and Find) are still working.
Here is my XAML:
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>
Have there been any changes?
Kind regards
Michael