private void officeNavigationBar1_QueryPeekFormContent(object sender, DevExpress.XtraBars.Navigation.QueryPeekFormContentEventArgs e) { if (e.Item.Text == "Item1") { e.Control = new XtraUserControl() { BackColor = Color.Green } } ; if (e.Item.Text == "Item2") { e.Control = new XtraUserControl() { BackColor = Color.DeepSkyBlue } } ; }
private void officeNavigationBar1_QueryPeekFormContent(object sender, DevExpress.XtraBars.Navigation.QueryPeekFormContentEventArgs e) { }