Theming a MDI child window when using DevExpress controls

If you create a new form and change its type to inherit from DevExpress.XtraEditors.XtraForm, the entire form will take on the current Default Look and Feel of the application. To make the title bar and window border also take on this theme, you must add the following line somewhere early in your code:


I recently discovered that when creating a child MDI form that has the XtraForm base type, it still does not take on the default theme.

The fix for this is to use the following code in the child form:

protected override bool GetAllowSkin()
     if (this.DesignMode) return false;
     return true;

5 Responses to “Theming a MDI child window when using DevExpress controls”

  1. Jason Says:

    Very many thanks.

  2. Brandon Ryan Says:

    You’re very welcome Jason.

  3. AlbertB Says:

    U r the man 😉
    I don’t need ‘XtraTabbedMDI’ as they claim ‘‘.

  4. Jonathan Says:

    wow. this is great. my mdi child theming problem has been resolved.

    thanks to you brandon ryan

  5. Tuhin Says:

    Ow! What I expected!
    Many many thanks Ryan. It’s really awesome.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: