Migrating to Embedded Styling
With Telerik Reporting R2 2018 SP1(12.1.18.620) we have introduces implicit XAML styles embedded in the new Telerik.ReportViewer.Wpf.Themes
assembly. This will further simplify the update process and no manual XAML styles replacement will be required. Once the project is migrated to embedded XAML style, the Upgrade Wizard will automatically update the Telerik.ReportViewer.Wpf.Themes
assembly.
Migration to embedded XAML styles is only possible for the default implicit XAML styles, that haven't been previously modified.
- Add assembly reference to
Telerik.ReportViewer.Wpf.Themes
. -
Update the following XAML styles in the
Application.xaml
(orApp.xaml
) to use the embedded implicit XAML styles:System.Windows.xaml
Telerik.Windows.Controls.xaml
Telerik.Windows.Controls.Input.xaml
Telerik.Windows.Controls.Navigation.xaml
Telerik.ReportViewer.Wpf.xaml
The Application Resources should look as shown in the following snippet:
<Application x:Class="WpfApplication1.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="MainWindow.xaml"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/Telerik.ReportViewer.Wpf.Themes;component/Themes/Fluent/System.Windows.xaml" /> <ResourceDictionary Source="/Telerik.ReportViewer.Wpf.Themes;component/Themes/Fluent/Telerik.Windows.Controls.xaml" /> <ResourceDictionary Source="/Telerik.ReportViewer.Wpf.Themes;component/Themes/Fluent/Telerik.Windows.Controls.Input.xaml" /> <ResourceDictionary Source="/Telerik.ReportViewer.Wpf.Themes;component/Themes/Fluent/Telerik.Windows.Controls.Navigation.xaml" /> <ResourceDictionary Source="/Telerik.ReportViewer.Wpf.Themes;component/Themes/Fluent/Telerik.ReportViewer.Wpf.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> </Application>
Delete the above XAML files from the project.