protected override void OnActivated(EventArgs e)
{
this.DockPanel.FloatWindows.BringWindowToFront(this);
base.OnActivated(e);
// Propagate the Activated event to the visible panes content objects
foreach (DockPane pane in this.VisibleNestedPanes)
foreach (IDockContent content in pane.Contents)
content.OnActivated(e);
}