The following example shows how to customize PDF Viewer Ribbon.
To accomplish this task, it is necessary to override the default PdfViewerControl's RibbonTemplate and add the required bar items to the newly defined RibbonControl.
Updated
Starting with version 14.1.5, you can use actions instead of modifying the template to customize the PdfViewerControl's Ribbon.
Question Comments
Added By: Daniel FS at: 1/15/2015 9:12:39 AM
Hi,
It seems that in this example you are adding a custom button (MainWindow.xaml.vb):
Private Sub bCustomItem_ItemClick(ByVal sender As Object, ByVal e As DevExpress.Xpf.Bars.ItemClickEventArgs)
Dim w As New WinUIDialogWindow()
w.Content = "Hello world!"
w.ShowDialogWindow(MessageBoxButton.YesNo)
End Sub
But I can't see how it is declared (in MainWindow.xaml it doesn't appear).
How can I add a custom button?
Thanks.
Daniel.
Added By: Andrey Marten (DevExpress Support) at: 1/15/2015 1:09:40 PM
Hello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T197322: How to add a custom button to the PDF Viewer Ribbon. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.
Thanks,
Andrey
ie Equivalent to this:
[XAML]<dxr:RibbonControlRibbonStyle="Office2010"ShowApplicationButton="False"RibbonTitleBarVisibility="Collapsed"/>
Added By: Elliot (DevExpress Support) at: 4/8/2016 10:25:51 AM
Hello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T365839: How can I hide the PdfViewer RibbonControl ApplicationButton and collapse the title bar? . This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.