Post: How To Save and Load DevExpress Skins!!
12-22-2019, 04:59 AM #1
Vilerage
360 Black Scope
(adsbygoogle = window.adsbygoogle || []).push({}); With this code you'll be able to save current skin and backcolor settings on a .dat file.

first call this static method in forms load event:
    
private void Form1_Load(object sender, EventArgs e)
{
LookAndFeelSettings.Load("SkinSettings.dat");
}


then call this static method in form closing event:
    
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
LookAndFeelSettings.Save("SkinSettings.dat");
}


To show color mixer dialog put this in the button click event:
    
private void maskAppColor_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
{
DevExpress.XtraEditors.ColorWheel.ColorWheelForm f = new DevExpress.XtraEditors.ColorWheel.ColorWheelForm();
f.ShowDialog(this);
}


Finally we need a static class:
You must login or register and the post to view hidden content.

let me know if you have any questions...

The following 2 users say thank you to Vilerage for this useful post:

Wosley, zTyh

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo