in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Abstraction layout beetwen your components and Forms/userControls

Last post 10/23/2008 11:16 AM by alexandre piel. 0 replies.
Page 1 of 1 (1 items)
Sort Posts:
Previous Next
  • 10/23/2008 11:16 AM

    Abstraction layout beetwen your components and Forms/userControls

     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

    Filed under: ,
Page 1 of 1 (1 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED