public override bool GetIsVertical()
        {
            RadPageViewStackElement stackElement  = this.itemLayout as RadPageViewStackElement;
            StackViewPosition       stackPosition = stackElement.StackPosition;

            return(stackPosition == StackViewPosition.Top || stackPosition == StackViewPosition.Bottom);
        }
        private void UpdateTabsPosition()
        {
            if (this.ViewTemplate == null || this.pageViewElement is RadPageViewExplorerBarElement)
            {
                return;
            }
            RadPageViewStripElement pageViewElement1 = this.pageViewElement as RadPageViewStripElement;

            if (pageViewElement1 != null)
            {
                switch (this.ViewTemplate.ChildViewTabsPosition)
                {
                case TabPositions.Left:
                    pageViewElement1.StripAlignment = StripViewAlignment.Left;
                    break;

                case TabPositions.Right:
                    pageViewElement1.StripAlignment = StripViewAlignment.Right;
                    break;

                case TabPositions.Top:
                    pageViewElement1.StripAlignment = StripViewAlignment.Top;
                    break;

                case TabPositions.Bottom:
                    pageViewElement1.StripAlignment = StripViewAlignment.Bottom;
                    break;
                }
            }
            RadPageViewStackElement pageViewElement2 = this.pageViewElement as RadPageViewStackElement;

            if (pageViewElement2 == null)
            {
                return;
            }
            switch (this.ViewTemplate.ChildViewTabsPosition)
            {
            case TabPositions.Left:
                pageViewElement2.StackPosition = StackViewPosition.Left;
                break;

            case TabPositions.Right:
                pageViewElement2.StackPosition = StackViewPosition.Right;
                break;

            case TabPositions.Top:
                pageViewElement2.StackPosition = StackViewPosition.Top;
                break;

            case TabPositions.Bottom:
                pageViewElement2.StackPosition = StackViewPosition.Bottom;
                break;
            }
        }
Beispiel #3
0
 public StackViewLayoutInfo(RadPageViewStackElement layout, SizeF availableSize)
     : base((LightVisualElement)layout, availableSize)
 {
 }
 public StackViewLayoutInfo(RadPageViewStackElement layout, SizeF availableSize)
     : base(layout, availableSize)
 {
 }