private void DockLayoutManager_DockItemActivated(object sender, DevExpress.Xpf.Docking.Base.DockItemActivatedEventArgs e) { if (e.Item == null) { return; } AddLogEntry("DockItemActivated: " + e.Item.CustomizationCaption); }
/// <summary> /// Event handler for when a document panel becomes the active (focused) panel /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DockLayoutManager_DockItemActivated(object sender, DevExpress.Xpf.Docking.Base.DockItemActivatedEventArgs e) { //// Check to make sure we actually have a dockpanel to activate //if (null != e.Item) //{ // //// When any panel other than the Dashboard becomes active, we register the panel as active in the ViewModel // LayoutPanel panel = e.Item as LayoutPanel; // if (null != panel || "Dashboard" != panel.Caption.ToString()) // { // panel.TabBackgroundColor = System.Windows.Media.Colors.Aqua; //System.Windows.Media.Colors.Aqua; // } //} }