Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Expand]Controls and Libraries
 [Collapse]Common Features
  [Expand]Data Binding Common Concepts
  [Expand]Data Source Wizard
  [Expand]Expressions
  [Expand]Behaviors
  [Collapse]Application Appearance
    Default Application Font
    Appearances
   [Collapse]Look And Feel
     Look and Feel Mechanism
     How to: Customize the Look And Feel of a Specific Control(s)
     How to: Customize the Look And Feel of All the Controls within a Form
     How to: Customize the Look And Feel of All the Controls within an Application
    Glyph Skinning
  [Expand]Filtering UI Context
  [Expand]High DPI Support
  [Expand]Scaffolding Wizard
  [Expand]Formatting Values
   HTML Text Formatting
  [Expand]Menus
  [Expand]Tooltip Management
  [Expand]Saving and Restoring Layouts
   Clipboard - Copy Data and Formatting
   Version Compatibility: Default Property Values
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Customize the Look And Feel of All the Controls within a Form

To provide centralized control over LookAndFeel settings of all the controls within a form, consider using the XtraForm form instead of the standard System.Windows.Forms.Form form.

Customizing the LookAndFeel property of XtraForm will affect the LookAndFeel settings of all controls placed on a form.

To replace the existing standard Form in your application with XtraForm in Visual Studio, just switch to the Code Editor and modify the class definition. For instance, locate the following line:

and replace it with:

Then build the project. Using the design-time Properties window, you can access the properties of the form, which now represent a XtraForm object.

When a control is placed onto XtraForm, the form's LookAndFeel object will serve as the Parent LookAndFeel for the control's LookAndFeel (the form's LookAndFeel object is automatically assigned to the control's UserLookAndFeel.ParentLookAndFeel property). The Parent LookAndFeel settings are in effect for a control if that control's UserLookAndFeel.UseDefaultLookAndFeel property is set to true (the default value). Thus you can set a specific control's UserLookAndFeel.UseDefaultLookAndFeel property to false to prevent XtraForm's LookAndFeel settings from affecting this control. This behavior does not cover BarAndDockingController objects. To specify their LookAndFeel options use the DefaultLookAndFeel component or the UserLookAndFeel.Default static property instead.

See also the How to: Customize the Look And Feel of All the Controls within an Application topic, which demonstrates another way to manage the look and feel of multiple controls.

How would you rate this topic?​​​​​​​