| | |
| | | { |
| | | region.Width = RightDockWidth; |
| | | } |
| | | |
| | | if (dockContent.DockArea == DockArea.Left ) |
| | | { |
| | | region.Width = LeftDockWidth; |
| | | } |
| | | if(dockContent.DockArea == DockArea.Bottom) |
| | | { |
| | | region.Height = BottomDockHeight; |
| | | } |
| | | region.AddContent(dockContent, dockGroup); |
| | | |
| | | ContentAdded?.Invoke(this, new DockContentEventArgs(dockContent)); |
| | |
| | | dockContent.Select(); |
| | | } |
| | | public int RightDockWidth { get; set; } = 310; |
| | | public int LeftDockWidth { get; set; } = 220; |
| | | public int BottomDockHeight { get; set; } = 200; |
| | | |
| | | public void InsertContent(CrownDockContent dockContent, CrownDockGroup dockGroup, DockInsertType insertType) |
| | | { |