示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }