private void SetDocumentsAppearance() { foreach (Document doc in tabbedView.Documents) { doc.Appearance.HeaderActive.BackColor = ExampleHelper.GetRandomColor(); } }
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() }); }