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); }
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(); }
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(); }