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
We are using varying types of controls; Grids, borders, Textblocks, XamDatagrids, XamDataChart, etc.
To handle the dark/light mode switch we have two resources dictionaries for the associated styles/colors/brushes etc. One is always being used in App.xaml's resources and is changed by swapping the source of the resource dictionary with the URI of the appropriate mode being switched to.
We haven't used the Theme Manger in developing these dictionaries , however, we are not sure if we could create custom themes that can be switched on the fly for the XamReportPreivew.
Thank you again!
Hello Zachary,
Thank you for contacting Infragistics Developer Support!
What controls are you using?How are you swapping out the dictionaries?Is there a reason you don’t want to use the theme manager?