xtrareports-115738-desktop-reporting-wpf-reporting-wpf-reporting-application-appearance-change-the-application-theme.md
This document describes how to specify the theme of a DevExpress reporting application for WPF.
By default, the DocumentPreviewControl and ReportDesigner control use the Office2016White theme, and the DevExpress.Xpf.Themes.Office2016White.v25.2.dll library has to be deployed to a client machine.
To avoid deploying this assembly with your WPF application, you can switch the default theme to DeepBlue by setting the ApplicationThemeHelper.UseLegacyDefaultTheme property to true at the application startup.
using DevExpress.Xpf.Core;
using System.Windows;
// ...
public partial class App : Application {
protected override void OnStartup(StartupEventArgs e) {
ApplicationThemeHelper.UseLegacyDefaultTheme = true;
base.OnStartup(e);
}
}
Imports DevExpress.Xpf.Core
' ...
Class Application
Protected Overrides Sub OnStartup(e As StartupEventArgs)
ApplicationThemeHelper.UseLegacyDefaultTheme = True
MyBase.OnStartup(e)
End Sub
End Class
To apply another theme to your application, do one of the following.
Specify the theme name in the application constructor using the ApplicationThemeHelper.ApplicationThemeName property as follows.
Use the Smart Tag’s Application Theme feature that applies the selected theme to the entire application at design time and registers it in the App.config file.
You can apply a theme to a control’s container (e.g., window). In this case, the specified theme is in effect for all container’s child elements. To accomplish this task, perform the steps described below.
For the list of available themes and the corresponding assemblies, see List of DevExpress WPF Themes.