Pivot Control for Windows 10

Pivot represents a control that provides quick navigation of views within an app.

Step 1: Open a blank app and add a Pivot Control either from the toolbox or by copying the following XAML code into your grid.

  1. <Pivot x:Name="rootPivot" Title="PIVOT TITLE">  
  2.     <PivotItem Header="Pivot Item 1">  
  3.         <TextBlock Text="Here you can add any controls" />  
  4.     </PivotItem>  
  5.     <PivotItem Header="Pivot Item 2">  
  6.         <TextBlock Text="Here you can add any controls" />  
  7.     </PivotItem>  
  8.     <PivotItem Header="Pivot Item 3">  
  9.         <TextBlock Text="Here you can add any controls" />  
  10.     </PivotItem>  
  11. </Pivot>  


Use a Pivot to present groups of content that a user can swipe through. You typically use a Pivot as the top level control on a page. Pivot is an ItemsControl, so it can contain a collection of items of any type. Any item you add to the Pivot that is not explicitly a PivotItem is implicitly wrapped in a PivotItem. Because a Pivot is often used to navigate between pages of content, it's common to populate the Items collection directly with XAML UI elements.

Step 2: Run your application and test yourself.