Back to Devexpress

UserLookAndFeel Class

windowsforms-devexpress-dot-lookandfeel-5211fc98.md

latest8.6 KB
Original Source

UserLookAndFeel Class

Contains look and feel settings for DevExpress UI controls.

Namespace : DevExpress.LookAndFeel

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public class UserLookAndFeel :
    IDisposable,
    ISkinProvider,
    ISkinProviderEx,
    ISkinProviderEx2,
    IAppearanceDefaultFontProvider
vb
Public Class UserLookAndFeel
    Implements IDisposable,
               ISkinProvider,
               ISkinProviderEx,
               ISkinProviderEx2,
               IAppearanceDefaultFontProvider

The following members return UserLookAndFeel objects:

Show 39 links

LibraryRelated API Members
WinForms ControlsAlertControl.LookAndFeel
BaseControl.LookAndFeel
BaseEdit.LookAndFeel
ChartControl.LookAndFeel
DefaultLookAndFeel.LookAndFeel
DxHtmlPainterArgs.LookAndFeel
EditorContainer.LookAndFeel
GaugeControlBase.LookAndFeel
HeatmapControl.LookAndFeel
HierarchicalChartControlBase.LookAndFeel
ManageRelationsContext.LookAndFeel
MapControl.LookAndFeel
NavBarControl.LookAndFeel
NavigationFrame.LookAndFeel
OfficeNavigationBar.LookAndFeel
RebuildResultSchemaContext.LookAndFeel
RepositoryItem.LookAndFeel
RichEditControl.LookAndFeel
SankeyDiagramControl.LookAndFeel
SchedulerControl.LookAndFeel
ScrollBarBase.LookAndFeel
SeparatorControl.LookAndFeel
SimpleControl.LookAndFeel
SpellChecker.LookAndFeel
SplitterControl.LookAndFeel
SpreadsheetControl.LookAndFeel
StyleController.LookAndFeel
SvgImageBox.LookAndFeel
TileControl.LookAndFeel
TileNavPane.LookAndFeel
UserLookAndFeel.ActiveLookAndFeel
UserLookAndFeel.Default
UserLookAndFeel.ParentLookAndFeel
WindowsFormsSettings.DefaultLookAndFeel
WizardControl.LookAndFeel
XtraBaseArgs.GetLookAndFeel()
XtraBaseArgs.LookAndFeel
XtraTabControl.LookAndFeel
DashboardEditExtractOptionsContext.LookAndFeel

Remarks

DevExpress controls are rendered using global look-and-feel settings, which are exposed by the Default LookAndFeel object. Global look-and-feel settings allow you to apply the same paint scheme to all forms in your WinForms application.

Use a control’s LookAndFeel property to override default look-and-feel settings:

  1. Set the control’s LookAndFeel.UseDefaultLookAndFeel property to false to ignore default (global) settings.
  2. Customize the control’s LookAndFeel settings as needed.

The following code snippet applies the “Office 2019 Black” skin to the ‘Cancel’ button:

csharp
using DevExpress.LookAndFeel;

namespace DXApplication {
    public partial class Form1 : DevExpress.XtraEditors.XtraForm {
        public Form1() {
            InitializeComponent();
            /* Specify the default skin (the 'Basic' skin).
               The default skin is applied to all UI controls displayed on the Form.*/
            UserLookAndFeel.Default.SetSkinStyle(SkinStyle.Basic);

            // Disable the default look-and-feel settings for the 'Cancel' button.
            buttonCancel.LookAndFeel.UseDefaultLookAndFeel = false;
            // Specify the 'Office 2019 Black' skin for the 'Cancel' button.
            buttonCancel.LookAndFeel.SkinName = SkinStyle.Office2019Black;
        }
    }
}
vb
Imports DevExpress.LookAndFeel

Namespace DXApplication
  Partial Public Class Form1
    Inherits DevExpress.XtraEditors.XtraForm

    Public Sub New()
      InitializeComponent()
      ' Specify the default skin (the 'Basic' skin).
      ' The default skin is applied to all UI controls displayed on the Form.
      UserLookAndFeel.Default.SetSkinStyle(SkinStyle.Basic)

      ' Disable the default look-and-feel settings for the 'Cancel' button.
      buttonCancel.LookAndFeel.UseDefaultLookAndFeel = False
      ' Specify the 'Office 2019 Black' skin for the 'Cancel' button.
      buttonCancel.LookAndFeel.SkinName = SkinStyle.Office2019Black
    End Sub
  End Class
End Namespace

See the following help topic for additional information: How to: Customize Look And Feel of Specific Control(s).

Inheritance

Object UserLookAndFeel ContainerUserLookAndFeel

BarAndDockingControllerLookAndFeel

FormUserLookAndFeel

See Also

Look and Feel

How to: Customize Look And Feel of Specific Control(s)

UserLookAndFeel Members

DefaultLookAndFeel

DevExpress.LookAndFeel Namespace