Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 289855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:56:41+00:00 2026-05-12T05:56:41+00:00

I am using DevExpress controls in a winform app I am building for internal

  • 0

I am using DevExpress controls in a winform app I am building for internal use. My app has about 30 forms in total and I am trying to figure out a way to allow my user’s to select a theme. I have seen this mentioned here at SO multiple times in answers to other posts.

I understand how the StyleController works, I believe, but what I am wondering is how I can use 1 Style controller for the whole app.

Right now I am trying to create 1 StlyeController at the Shell form and then pass a reference to it to each child form. From there I then have to programatically set the StyleController property for each control. I don’t mind I just wonder, especially from those who have done this, if there is a simpler way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:56:42+00:00Added an answer on May 12, 2026 at 5:56 am

    It is very simple. This example is assuming that you are using skins.

    In the constructor of your main form calls:

    DevExpress.Skins.SkinManager.EnableFormSkins();
    

    This will enable your form to use the current skin. It is also important that each of your forms derived from XtraForm.

    After that you need to setup the global look and feel object for your application:

    //This set the style to use skin technology
    DevExpress.LookAndFeel.UserLookAndFeel.Default.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
    
    //Here we specify the skin to use by its name           
    DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Black");
    

    If you want to set the look and feel of your application like Office 2003, the setup is different. You just have to call the following function:

    DevExpress.LookAndFeel.UserLookAndFeel.Default.SetOffice2003Style();
    

    So, every control of devexpress will use these settings to paint themselves. It is possible to specify a custom LookAndFeel object for some controls but I never used it because I dont see the point to have a custom display for a control or a form.

    Exception:
    There is one exception in Devexpress framework. The NavBarControl does not use the skin technology automatically from your global LookAndFeel object, you need to specify a setting to enable that:

    //To use the current skin
    youNavBarControl.PaintStyleName = "SkinNavigationPane";
    
    //To use the current look and feel without the skin
    youNavBarControl.PaintStyleName = "NavigationPane";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Winform App that uses a 3rd Party Library of Controls, DevExpress.
We are developing software using Windows Forms and DevExpress controls. And also we want
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
I am building a c# winform app and the framework I inherited uses UI
Hello I am needing to deploy a project using DevExpress controls to an IIS
Using PyObjC , you can use Python to write Cocoa applications for OS X.
I have a User Control for typical CRUD like actions on my WinForm app.
this question is fairly DevExpress-specific. I use a NavBar control with the standard SkinExplorerBarView
I am using DevExpress OrgChart component that is still maintained but not developed since
I have created a web application using Devexpress trial version. I have installed the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.