void SetupDockSpaces()
 {
     //1. controller
     this.dockspaceController = new DockSpacesController(this, SpaceConcept.NineSpace);
     //2.
     this.dockspaceController.LeftTopSpace.Content     = boxLeftTop = CreateSpaceBox(SpaceName.LeftTop, Color.Red);
     this.dockspaceController.RightTopSpace.Content    = boxRightTop = CreateSpaceBox(SpaceName.RightTop, Color.Red);
     this.dockspaceController.LeftBottomSpace.Content  = boxLeftBottom = CreateSpaceBox(SpaceName.LeftBottom, Color.Red);
     this.dockspaceController.RightBottomSpace.Content = boxRightBottom = CreateSpaceBox(SpaceName.RightBottom, Color.Red);
     //3.
     this.dockspaceController.LeftSpace.Content   = boxLeft = CreateSpaceBox(SpaceName.Left, Color.Blue);
     this.dockspaceController.TopSpace.Content    = boxTop = CreateSpaceBox(SpaceName.Top, Color.Yellow);
     this.dockspaceController.RightSpace.Content  = boxRight = CreateSpaceBox(SpaceName.Right, Color.Green);
     this.dockspaceController.BottomSpace.Content = boxBottom = CreateSpaceBox(SpaceName.Bottom, Color.Yellow);
     //--------------------------------
     //left and right space expansion
     dockspaceController.LeftSpaceVerticalExpansion  = VerticalBoxExpansion.TopBottom;
     dockspaceController.RightSpaceVerticalExpansion = VerticalBoxExpansion.TopBottom;
     dockspaceController.SetRightSpaceWidth(200);
     dockspaceController.SetLeftSpaceWidth(200);
     //------------------------------------------------------------------------------------
     this.ninespaceGrippers               = new NinespaceGrippers(this.dockspaceController);
     this.ninespaceGrippers.LeftGripper   = gripperLeft = CreateGripper(Color.Red, false);
     this.ninespaceGrippers.RightGripper  = gripperRight = CreateGripper(Color.Red, false);
     this.ninespaceGrippers.TopGripper    = gripperTop = CreateGripper(Color.Red, true);
     this.ninespaceGrippers.BottomGripper = gripperBottom = CreateGripper(Color.Red, true);
     this.ninespaceGrippers.UpdateGripperPositions();
     //------------------------------------------------------------------------------------
 }
예제 #2
0
 void SetupDockSpaces()
 {
     //1. controller
     this.dockspaceController = new DockSpacesController(this, SpaceConcept.NineSpace);
     //2.
     this.dockspaceController.LeftTopSpace.Content     = boxLeftTop = CreateSpaceBox(SpaceName.LeftTop, Color.Red);
     this.dockspaceController.RightTopSpace.Content    = boxRightTop = CreateSpaceBox(SpaceName.RightTop, Color.Red);
     this.dockspaceController.LeftBottomSpace.Content  = boxLeftBottom = CreateSpaceBox(SpaceName.LeftBottom, Color.Red);
     this.dockspaceController.RightBottomSpace.Content = boxRightBottom = CreateSpaceBox(SpaceName.RightBottom, Color.Red);
     //3.
     this.dockspaceController.LeftSpace.Content   = boxLeft = CreateSpaceBox(SpaceName.Left, Color.Blue);
     this.dockspaceController.TopSpace.Content    = boxTop = CreateSpaceBox(SpaceName.Top, Color.Yellow);
     this.dockspaceController.RightSpace.Content  = boxRight = CreateSpaceBox(SpaceName.Right, Color.Green);
     this.dockspaceController.BottomSpace.Content = boxBottom = CreateSpaceBox(SpaceName.Bottom, Color.Yellow);
     //------------------------------------------------------------------------------------
     //left and right space expansion
     dockspaceController.LeftSpaceVerticalExpansion  = VerticalBoxExpansion.TopBottom;
     dockspaceController.RightSpaceVerticalExpansion = VerticalBoxExpansion.TopBottom;
     dockspaceController.SetRightSpaceWidth(200);
     dockspaceController.SetLeftSpaceWidth(200);
 }