Description:
How to set the entire application skin to "Money Twins"?
Answer:
The are two solutions to this task:
-
Drop the DefaultLookAndFeel component onto the main form and set its Skin property to the required value. Please note that it is not necessary to drop this component on every form but just only onto the main one.
-
Another approach is to specify the skin programmatically:
C#[STAThread]
static void Main() {
DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = "Money Twins"; // <<< NEW LINE
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
Public Class MainForm
Sub New()
DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = "Money Twins" ' <<< NEW LINE
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub
...
By using the above code you'll be able to set the desired look-and-feel at runtime. As for design time, please use the DXDesignKeys tool from the DXperience installation.
See Also:
Look And Feel Mechanism
A2912
Where can I download your bonus and office skins?
How to load Office and Bonus skins' libraries at runtime
Thanks!
If feel so stupid, the line in the Program.cs is already there. Sorry to take up your time. Sometimes I just look in the wrong places.
The link to Look And Feel Mechanism does not work.
Hi,
I have corrected the link to Look And Feel Mechanism. Please check it again.