Wpf ribbon preview command binding
Wpf ribbon preview command binding
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
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
Ok! Have a nice day!
Wpf ribbon preview command binding
Hi,
i'm having the same problem. Where can i find the commands?
best regards
Michael
i'm having the same problem. Where can i find the commands?
best regards
Michael
Wpf ribbon preview command binding
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.
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
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
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
Hello Michael,
Please check the sample in attachment.
Thank you.
Please check the sample in attachment.
Thank you.
- Attachments
-
- 1209.StiWpfRibbonViewerControl.cs
- (109.32 KiB) Downloaded 687 times
-
- 1208.WpfViewer_Test.zip
- (8.79 KiB) Downloaded 598 times
Wpf ribbon preview command binding
Perfect, excatly what i was looking for!
Thanks a lot!
Thanks a lot!
Wpf ribbon preview command binding
Hello,
As always we are happy to help you.
Thank you.
As always we are happy to help you.
Thank you.
Re: Wpf ribbon preview command binding
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:
Have there been any changes?
Kind regards
Michael
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>
Kind regards
Michael