$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
PageView WinForms Control
Create slick looking tab strip or panel, overlapping tabs, organize content, insert images into items
Home > WinForms UI Controls > User Manual > Position of Stack View in C#

C# Customizing Stack Position in KetticPageView Control

The Stack view mode of KetticPageView provides flexible customization support on stack positions. KetticPageView Stack view mode supports the presentation of stack of items. The Stack View mode contains various orientations to position the stack items based on the content area, which will be positioned by the selection mode based on the chosen items. There are four orientations support and three selection types support.

Stack Positions of KetticPageView Support

The Stack View mode of KetticPageView component provides four orientations to customize the stack positions, Bottom, Left, Top and Right. The Bottom direction is the default setting. However, wherever the stack position, the chosen item content will be displayed at the position where the content area resides.
  • Bottom, the bottom stack direction positions the stack items from the bottom of the KetticPageView control up to the first item added. And the content area will be shown on-top of the stack.
  • Left, the Left stack direction positions the stack items from the left edge of the KetticPageView control right to the first item added. And the content area will be positioned right after the stack.
  • Top, the Top stack direction positions the stack items from the top edge of the KetticPageView control down to the first item added. And the content area will be positioned right after the stack.
  • Right, the Right stack direction positions the stack items from the right edge of the KetticPageView control left to the first item added. And the content area will be positioned right after the stack.

Customize Stack Position of KetticPageView in C#.NET

While customizing the stack position of the KetticPageView control, we must pay attention on the size of the KetticPageView control and the amount of the pages. It is necessary to add appropriate space for the content area. The following are the C# code to set the stack position to the right.

KetticPageViewStackElement stackElement = this.ketticPageView1.ViewElement as KetticPageViewStackElement;
stackElement.StackPosition = StackViewPosition.Right;

In the C# code example above, the KetticPageView control ViewElement property will return a reference to the main element of the current view in the control. We should set the ViewMode of the control to a specific view type which represents the element casted by the ViewElement.
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls