private void SetDocumentsAppearance()
 {
     foreach (Document doc in tabbedView.Documents)
     {
         doc.Appearance.HeaderActive.BackColor = ExampleHelper.GetRandomColor();
     }
 }
 public Form1()
 {
     InitializeComponent();
     tabbedView.QueryControl += tabbedView_QueryControl;
     SetDocumentsAppearance();
     helper = new ExampleHelper(tabbedView);
 }
Ejemplo n.º 3
0
        private void CreateNewDocument()
        {
            string   docName = string.Format("document{0}", tabbedView.Documents.Count + 1);
            Document doc     = tabbedView.AddDocument(GetControl()) as Document;

            doc.Caption     = docName;
            doc.ControlName = docName;
            doc.Appearance.HeaderActive.BackColor = ExampleHelper.GetRandomColor();
        }
Ejemplo n.º 4
0
 public static Control GetControl()
 {
     return(new Control {
         BackColor = ExampleHelper.GetRandomColor()
     });
 }
 void tabbedView_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e)
 {
     e.Control = ExampleHelper.GetControl();
 }