This is a migrated thread and some comments may be shown as answers.

Can't set a theme for PDF Viewer

1 Answer 121 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Johannes
Top achievements
Rank 2
Johannes asked on 08 Mar 2018, 06:24 PM

Hi, I'm trying to use the PDF Viewer control, everything works nicely except for one thing,

he toolbar theme won't change no matter what I select.

 

            <telerik:RadPdfViewerToolBar x:Name="pdfViewTools"
                                         RadPdfViewer="{Binding ElementName=pdfViewer, Mode=OneTime}"
                                         telerik:StyleManager.Theme="Fluent"
                                         HasClockwiseButton="False"
                                         HasCounterclockwiseButton="False"
                                         HasOpenButton="False"
                                         HasPageDownButton="False"
                                         HasPagesCountGroup="False"
                                         HasPageUpButton="False"
                                         HasSignatureButton="False"/>
            <telerik:RadPdfViewer x:Name="pdfViewer"
                                  DataContext="{Binding CommandDescriptors, ElementName=pdfViewer}"
                                  Grid.Row="1"
                                  telerik:StyleManager.Theme="Fluent"
                                  telerik:RadPdfViewerAttachedComponents.RegisterContextMenu="True"/>

 

Where am I going wrong?

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 13 Mar 2018, 02:15 PM
Hello Johannes,

RadPdfViewerToolBar has been introduced with the latest official release of UI for WPF and it currently doesn't support setting it a theme. We have already logged a task for this functionality and you can vote for its implementation as well as subscribe to track its status using this item in our public feedback portal.

As an alternative, you can apply the theme on application level or use RadToolBar. An integration with RadToolBar is demonstrated in the examples from our SDK repository.

Hope this is helpful.

Regards,
Tanya
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
PDFViewer
Asked by
Johannes
Top achievements
Rank 2
Answers by
Tanya
Telerik team
Share this question
or