public BorderLayoutChainLink(String name)
            : base(name)
        {
            borderLayout = new BorderLayoutContainer(name);

            AnimatedLayoutContainer animatedContainer = new PopoutLayoutContainer(LayoutType.Horizontal, borderLayout.calculateFinalLeftSize);

            borderLayout.Left = animatedContainer;
            panels.Add(borderLayout.LeftElementName, animatedContainer);
            animatedContainer.AnimationComplete += animatedContainer_AnimationComplete;

            animatedContainer  = new PopoutLayoutContainer(LayoutType.Horizontal, borderLayout.calculateFinalRightSize);
            borderLayout.Right = animatedContainer;
            panels.Add(borderLayout.RightElementName, animatedContainer);
            animatedContainer.AnimationComplete += animatedContainer_AnimationComplete;

            animatedContainer = new PopoutLayoutContainer(LayoutType.Vertical, borderLayout.calculateFinalTopSize);
            borderLayout.Top  = animatedContainer;
            panels.Add(borderLayout.TopElementName, animatedContainer);
            animatedContainer.AnimationComplete += animatedContainer_AnimationComplete;

            animatedContainer   = new PopoutLayoutContainer(LayoutType.Vertical, borderLayout.calculateFinalBottomSize);
            borderLayout.Bottom = animatedContainer;
            panels.Add(borderLayout.BottomElementName, animatedContainer);
            animatedContainer.AnimationComplete += animatedContainer_AnimationComplete;
        }
Example #2
0
 public BorderLayoutNoAnimationChainLink(String name)
     : base(name)
 {
     borderLayout = new BorderLayoutContainer(name);
 }