Hi,
I am trying to make an abstraction layout between your components and my Forms/UserControls in order to manage the LookAndFeel and Apparence in the abstraction layout, but not in the final control.
So I make a MyComboBoxEdit Component
public class MyComboBoxEdit : DevExpress.XtraEditors.ComboBoxEdit
{
public MyComboBoxEdit()
{
InitializeComponent();
DevExpress.LookAndFeel.UserLookAndFeel cMyLook = new DevExpress.LookAndFeel.UserLookAndFeel(null);
cMyLook.SetStyle(DevExpress.LookAndFeel.LookAndFeelStyle.Style3D, true, false);
Properties.LookAndFeel.Assign(cMyLook);
}
}
When I add a new MyComboBoxEdit in a form, these lines are automaticaly generated in the .designer.cs
this.cMyComboBoxEdit.Properties.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Style3D;
this.cMyComboBoxEdit.Properties.LookAndFeel.UseDefaultLookAndFeel = false;
this.cMyComboBoxEdit.Properties.LookAndFeel.UseWindowsXPTheme = true;
If I change MyComboBoxEdit class, my form is not updated and keeps the old configuration of MyComboBoxEdit.
Therefore the abstraction layout is useless.
Do you have any Idea ?
Best regards,
Alexandre