Hello,
My team's project is in need a specific requirement for print preview. We have a dark mode for our application and need to create print preview for various views using the light mode. Please note, we are not using the ThemeManager control but rather using resource dictionaries and changing out the used dictionaries on App.xaml.
We have tried swapping out the dictionaries on App.xaml and we have had limited success on the XamReportPreview. Some of the styles will change and when printing to PDF, the controls will still retain their dark mode appearance.
Is there a way of changing the styles on the controls (Infragistic or otherwise) that we generate using the print preview function and if so is there a simple grey scale or black and white option that can applied to each control?
Thank you for your time with this requirement.
Sincerely,
-Zachary Burton
I have attached a sample project to demo roughly how we swap dictionaries. SampleProject.zip
Hello Zachary,
Thank you for the update. Looking at your sample and the description of your issues I believe what is happening is with this method you are trying to override the styles to the Infragistics controls, however since some of the Infragistics controls can have specific requirements for overriding certain styles which can vary from control to control. Which means to flip between your custom light and dark themes you would have to import the themes/styles xaml for our controls to your project and override them there having a different set for light and dark. My recommendation would be to use the theme manager and modify and existing theme or create your own.