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;
        }
Exemple #2
0
 public VerticalPopoutStrategy(PopoutLayoutContainer container)
 {
     this.container = container;
 }
Exemple #3
0
 public HorizontalPopoutStrategy(PopoutLayoutContainer container)
 {
     this.container = container;
 }