Пример #1
0
        private void OnHiddenItemButton_Click(object sender, EventArgs e)
        {
            RadPageViewButtonElement buttonElement = sender as RadPageViewButtonElement;
            RadPageViewStackItem     item          = buttonElement.Tag as RadPageViewStackItem;

            this.owner.SelectItem(item);
            this.owner.OnItemAssociatedButtonClick(buttonElement, e);
        }
Пример #2
0
        internal Padding GetItemMargin(RadPageViewStackItem item)
        {
            StackViewPosition position = this.layoutInfo.position;
            Padding           margin   = item.Margin;

            if (!item.AutoFlipMargin)
            {
                return(margin);
            }
            switch (position)
            {
            case StackViewPosition.Left:
                return(new Padding(margin.Top, margin.Right, margin.Bottom, margin.Left));

            case StackViewPosition.Right:
                return(new Padding(margin.Bottom, margin.Left, margin.Top, margin.Right));

            default:
                return(margin);
            }
        }
Пример #3
0
        internal System.Windows.Forms.Padding GetItemMargin(RadPageViewStackItem item)
        {
            StackViewPosition position = this.layoutInfo.position;

            System.Windows.Forms.Padding itemMargin = item.Margin;

            if (!item.AutoFlipMargin)
            {
                return(itemMargin);
            }

            switch (position)
            {
            case StackViewPosition.Left:
                return(new System.Windows.Forms.Padding(itemMargin.Top, itemMargin.Right, itemMargin.Bottom, itemMargin.Left));

            case StackViewPosition.Right:
                return(new System.Windows.Forms.Padding(itemMargin.Bottom, itemMargin.Left, itemMargin.Top, itemMargin.Right));

            default:
                return(itemMargin);
            }
        }