To enable the title bar skinning feature for MDI child DevExpress forms, apply a skinning painting scheme (for instance, via the DefaultLookAndFeel component) and, at runtime, call the EnableFormSkins and then, the EnableMdiFormSkins method. Typically, the EnableFormSkins and EnableMdiFormSkins methods should be called at the application start (before the Application.Run() method is called). In this instance, an MDI child form's title bar will be skinned immediately when the form is loaded.
It's possible to call the EnableFormSkins and EnableMdiFormSkins methods later. In this instance, the DevExpress.LookAndFeel.LookAndFeelHelper.ForceDefaultLookAndFeelChanged method needs to be called after enabling skins. This forces a form's title bar to be repainted:
C# |
DevExpress.Skins.SkinManager.EnableFormSkins();
DevExpress.Skins.SkinManager.EnableMdiFormSkins();
DevExpress.LookAndFeel.LookAndFeelHelper.ForceDefaultLookAndFeelChanged();
|
VB |
DevExpress.Skins.SkinManager.EnableFormSkins()
DevExpress.Skins.SkinManager.EnableMdiFormSkins()
DevExpress.LookAndFeel.LookAndFeelHelper.ForceDefaultLookAndFeelChanged()
|