Back to Devexpress

Change the Application Skin

xtrareports-2573-desktop-reporting-winforms-reporting-winforms-reporting-application-appearance-change-the-application-skin.md

latest2.8 KB
Original Source

Change the Application Skin

  • Aug 18, 2023
  • 2 minutes to read

This document describes how to use a DevExpress skin in a WinForms reporting application.

Apply a DevExpress Skin to a Reporting Application

You can use a DevExpress skin if the form that contains the Report Designer or Document Viewer inherites from a DevExpress form:

Control on the FormThe Form’s Base Class
RibbonReportDesignerRibbonForm
StandardReportDesignerXtraForm
DocumentViewerXtraForm

Change your form’s base class appropriately.

csharp
using DevExpress.XtraBars.Ribbon;

//...

public partial class Form1 : RibbonForm {

    //...

}
vb
Imports DevExpress.XtraBars.Ribbon

'...

Partial Public Class Form1

    Inherits RibbonForm

    '...

End Class

Right-click your project in the Solution Explorer and select DevExpress Project Settings. This invokes the Project Settings Page that allows you to specify global settings and the skin.

The following image illustrates a RibbonForm that contains an End-User Report Designer with the Office 2016 Black skin applied:

Use DevExpress Open/Save Skinned Dialogs

The code below demonstrates how to use DevExpress Open/Save dialogs in the End-User Report Designer and Print Preview. These dialogs apply the application’s skin.

csharp
using DevExpress.XtraEditors;
//...
static void Main() {
    //...
    //Enable this option
    WindowsFormsSettings.UseDXDialogs = DevExpress.Utils.DefaultBoolean.True;

    Application.Run(new Form1());
}
vb
Imports DevExpress.XtraEditors
'...
Shared Sub Main()
    '...
    'Enable this option
    WindowsFormsSettings.UseDXDialogs = DevExpress.Utils.DefaultBoolean.True

    Application.Run(New Form1())
End Sub