개정판 23cc7aa9
issue #0000 dock layout 수정
Change-Id: I0540674fa0659add89233f048bdfc4a8ec5f0231
ID2.Manager/ID2.Manager/Main.cs | ||
---|---|---|
27 | 27 |
using Newtonsoft.Json; |
28 | 28 |
using System.Diagnostics; |
29 | 29 |
using ID2.Manager.Common.Helpers; |
30 |
using Telerik.WinControls.UI.Docking; |
|
30 | 31 |
|
31 | 32 |
namespace ID2.Manager |
32 | 33 |
{ |
... | ... | |
225 | 226 |
|
226 | 227 |
this.DockMain.DockWindowClosed += (snd, evt) => |
227 | 228 |
{ |
228 |
evt.DockWindow.DockState = Telerik.WinControls.UI.Docking.DockState.AutoHide; |
|
229 |
evt.DockWindow.DockState = Telerik.WinControls.UI.Docking.DockState.AutoHide;
|
|
229 | 230 |
|
231 |
//Telerik.WinControls.UI.Docking.AutoHidePosition tabPosition = Telerik.WinControls.UI.Docking.AutoHidePosition.Right; |
|
230 | 232 |
|
231 |
Telerik.WinControls.UI.Docking.AutoHidePosition tabPosition = Telerik.WinControls.UI.Docking.AutoHidePosition.Right; |
|
232 | 233 |
|
233 |
if (evt.DockWindow.Name == DockWindowMain.Name || evt.DockWindow.Name == DockValidation.Name) |
|
234 |
{ |
|
235 |
tabPosition = Telerik.WinControls.UI.Docking.AutoHidePosition.Bottom; |
|
236 |
} |
|
234 |
//List<DockWindow> dockWindows = new List<DockWindow>(); |
|
235 |
|
|
236 |
//var autoHideWindows = this.DockMain.DockWindows.Where(x => x.DockState == Telerik.WinControls.UI.Docking.DockState.AutoHide).ToList(); |
|
237 |
|
|
238 |
|
|
239 |
//if (evt.DockWindow.AccessibleName == DockWindowMain.AccessibleName || evt.DockWindow.Name == DockValidation.AccessibleName) |
|
240 |
//{ |
|
241 |
// dockWindows.AddRange(autoHideWindows.Where(x => x.AccessibleName == DockWindowMain.AccessibleName && evt.DockWindow.Name == DockValidation.AccessibleName)); |
|
242 |
|
|
243 |
// tabPosition = Telerik.WinControls.UI.Docking.AutoHidePosition.Bottom; |
|
244 |
|
|
245 |
// dockWindows.Add(evt.DockWindow); |
|
246 |
//} |
|
247 |
//else |
|
248 |
//{ |
|
249 |
// dockWindows.AddRange(autoHideWindows.Where(x => x.AccessibleName != DockWindowMain.AccessibleName || evt.DockWindow.Name != DockValidation.AccessibleName)); |
|
250 |
|
|
251 |
// dockWindows.Add(evt.DockWindow); |
|
252 |
//} |
|
253 |
|
|
237 | 254 |
|
238 |
this.DockMain.AutoHideWindows(new Telerik.WinControls.UI.Docking.DockWindow[] { evt.DockWindow }, tabPosition);
|
|
255 |
//this.DockMain.AutoHideWindows(dockWindows, tabPosition);
|
|
239 | 256 |
}; |
240 | 257 |
} |
241 | 258 |
catch (Exception ex) |
내보내기 Unified diff