- Timestamp:
- 05/05/10 17:31:58 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/DockForm.cs
r3571 r3644 53 53 break; 54 54 } 55 if (view is Sidebar) 55 Sidebar sidebar = view as Sidebar; 56 if (sidebar != null) { 57 if (sidebar.Collapsed) 58 this.ShowHint = DockState.DockLeftAutoHide; 59 else 60 this.ShowHint = DockState.DockLeft; 56 61 this.DockAreas = DockAreas.DockLeft | DockAreas.DockRight; 62 } 57 63 58 64 Type viewType = view.GetType(); … … 84 90 } 85 91 92 protected override void OnDockStateChanged(EventArgs e) { 93 base.OnDockStateChanged(e); 94 Sidebar sidebar = view as Sidebar; 95 if (sidebar != null) { 96 if (this.DockState == DockState.DockLeftAutoHide || this.DockState == DockState.DockRightAutoHide) 97 sidebar.Collapsed = true; 98 else 99 sidebar.Collapsed = false; 100 } 101 } 102 86 103 #region View Events 87 104 private void View_CaptionChanged(object sender, EventArgs e) {
Note: See TracChangeset
for help on using the changeset viewer.