# Customizing the Selection Mode

The PageViewMode.*Stack* supports three types of selection modes which define how the content area is positioned according to the selected item:

* *Standard* (default): used by default and implies that the content area is positioned right next to the stack (according to the stack position as well) regardless of the currently selected item.

  ![WinForms RadPageView ](https://www.telerik.com/products/winforms/documentation/assets/0b91db9e8af59b273fec3bacaa167d16/pageview-stackview-customizing-the-selection-mode003.png)

* *ContentWithSelected*: implies that the content area is positioned with the selected item (before it in the stack direction).

  ![WinForms RadPageView ](https://www.telerik.com/products/winforms/documentation/assets/2fd8ffaa61c5be83561ec085207ba3e1/pageview-stackview-customizing-the-selection-mode001.png)

* *ContentAfterSelected*: The selected item is highlighted and its content is displayed after it according to the stack orientation.

  ![WinForms RadPageView ](https://www.telerik.com/products/winforms/documentation/assets/bf254008500fd961a87e40624d610553/pageview-stackview-customizing-the-selection-mode002.png)

To set the selection mode you should use the *ItemSelectionMode* property of the **RadPageViewStackElement** as demonstrated in the code snippet below:

#### Setting the ItemSelectionMode property

```C#
RadPageViewStackElement stackElement = this.radPageView1.ViewElement as RadPageViewStackElement;
stackElement.ItemSelectionMode = StackViewItemSelectionMode.ContentWithSelected;

```

```VB.NET
Dim stackElement As RadPageViewStackElement = TryCast(Me.radPageView1.ViewElement, RadPageViewStackElement)
stackElement.ItemSelectionMode = StackViewItemSelectionMode.ContentWithSelected

```

> note The **ViewElement** property of the **RadPageView** control returns a reference to the main element of the currently active view in the control. So, to cast the **ViewElement** to any an element representing a specific view type, you should make sure that you have set the **ViewMode** of the **RadPageView** control to this view type.

## See Also

* [Customizing the Stack Position](https://www.telerik.com/products/winforms/documentation/controls/pageview/stackview/customizing-the-stack-position)
