protected override void OnDeactivate(EventArgs e) { base.OnDeactivate(e); // Propagate the Deactivate event to the visible panes content objects foreach (IDockContent content in VisibleNestedPanes.SelectMany(p => p.Contents).ToList()) { content.OnDeactivate(e); } }
protected override void OnActivated(EventArgs e) { DockPanel.FloatWindows.BringWindowToFront(this); base.OnActivated(e); // Propagate the Activated event to the visible panes content objects foreach (IDockContent content in VisibleNestedPanes.SelectMany(p => p.Contents).ToList()) { content.OnActivated(e); } }