Pivot Pivot Pivot Class

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

Syntax

Declaration

public class Pivotpublic class PivotPublic Class Pivot
<Pivot .../>
-or-
<Pivot ...>
  oneOrMorePivotItems
</Pivot>

Inheritance Hierarchy

Inherited Members

Inherited properties

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Tag
Tag
Tag
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Inherited events

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Inherited methods

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Remarks

For more info, see Pivots and tabs.

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. Or, you can set the ItemsSource property to a data source. Items bound in the ItemsSource can be of any type, but if they aren't explicitly PivotItem s, you must define an ItemTemplate and HeaderTemplate to specify how the items are displayed.

You can use the SelectedItem property to get or set the Pivot 's active item. Use the SelectedIndex property to get or set the index of the active item.

You can use the LeftHeader and RightHeader properties to add other controls to the Pivot header.

Control style and template

You can modify the default Style and ControlTemplate to give the control a unique appearance. For information about modifying a control's style and template, see Styling controls. The default style, template, and resources that define the look of the control are included in the generic.xaml file. For design purposes, generic.xaml is available in the (Program Files)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP&lt;SDK version>\Generic folder from a Windows Software Development Kit (SDK) installation. Styles and resources from different versions of the SDK might have different values.

Starting in Windows 10, version 1607 (Windows Software Development Kit (SDK) version 10.0.14393.0), generic.xaml includes resources that you can use to modify the colors of a control in different visual states without modifying the control template. In apps that target this software development kit (SDK) or later, modifying these resources is preferred to setting properties such as Background and Foreground. For more info, see the Light-weight styling section of the Styling controls article.

This table shows the resources used by the Pivot control.

Resource keyDescription
PivotBackgroundControl background color
PivotHeaderBackgroundHeader background color
PivotNextButtonForegroundButton icon color at rest
PivotNextButtonForegroundPointerOverButton icon color on hover
PivotNextButtonForegroundPressedButton icon color when pressed
PivotNextButtonBackgroundButton background color at rest
PivotNextButtonBackgroundPointerOverButton background color on hover
PivotNextButtonBackgroundPressedButton background color when pressed
PivotNextButtonBorderBrushButton border color at rest
PivotNextButtonBorderBrushPointerOverButton border color on hover
PivotNextButtonBorderBrushPressedButton border color when pressed
PivotPreviousButtonForegroundButton icon color at rest
PivotPreviousButtonForegroundPointerOverButton icon color on hover
PivotPreviousButtonForegroundPressedButton icon color when pressed
PivotPreviousButtonBackgroundButton background color at rest
PivotPreviousButtonBackgroundPointerOverButton background color on hover
PivotPreviousButtonBackgroundPressedButton background color when pressed
PivotPreviousButtonBorderBrushButton border color at rest
PivotPreviousButtonBorderBrushPointerOverButton border color on hover
PivotPreviousButtonBorderBrushPressedButton border color when pressed

Examples

For more examples, see the Pivot sample.

This example shows a Pivot with 3 items. It also has a RightHeader with forward and back buttons that use SelectedIndex to let a user navigate through the items.

<Pivot x:Name="rootPivot" Title="PIVOT TITLE">
    <Pivot.RightHeader>
        <CommandBar ClosedDisplayMode="Compact">
            <AppBarButton Icon="Back" Label="Previous" Click="BackButton_Click"/>
            <AppBarButton Icon="Forward" Label="Next" Click="NextButton_Click"/>
        </CommandBar>
    </Pivot.RightHeader>
    <PivotItem Header="Pivot Item 1">
        <!--Pivot content goes here-->
        <TextBlock Text="Content of pivot item 1."/>
    </PivotItem>
    <PivotItem Header="Pivot Item 2">
        <!--Pivot content goes here-->
        <TextBlock Text="Content of pivot item 2."/>
    </PivotItem>
    <PivotItem Header="Pivot Item 3">
        <!--Pivot content goes here-->
        <TextBlock Text="Content of pivot item 3."/>
    </PivotItem>
</Pivot>
private void BackButton_Click(object sender, RoutedEventArgs e)
{
    if (rootPivot.SelectedIndex > 0)
    {
        // If not at the first item, go back to the previous one.
        rootPivot.SelectedIndex -= 1;
    }
    else
    {
        // The first PivotItem is selected, so loop around to the last item.
        rootPivot.SelectedIndex = rootPivot.Items.Count-1;
    }
}

private void NextButton_Click(object sender, RoutedEventArgs e)
{
    if (rootPivot.SelectedIndex < rootPivot.Items.Count-1)
    {
        // If not at the last item, go to the next one.
        rootPivot.SelectedIndex += 1;
    }
    else
    {
        // The last PivotItem is selected, so loop around to the first item.
        rootPivot.SelectedIndex = 0;
    }
}

Constructors summary

Initializes a new instance of the Pivot type.

Properties summary

Gets or sets a value that specifies the style of focus visual used for pivot header items.

Identifies the HeaderFocusVisualPlacement dependency property.

Gets or sets the template for the Header property of PivotItem children.

Identifies the HeaderTemplate dependency property.

Gets or sets a value that indicates whether the selected header moves to the first position.

Identifies the IsHeaderItemsCarouselEnabled dependency property.

Gets or sets whether the Pivot is locked to show only the current PivotItem. While the Pivot is locked, all other PivotItems are removed, and the user cannot navigate to them. An example of locking is when the email list is put into a multi-select mode.

Identifies the IsLocked dependency property.

Gets or sets the content for the header on the control's left side.

Identifies the LeftHeader dependency property.

Gets or sets the template for the header on the control's left side.

Identifies the LeftHeaderTemplate dependency property.

Gets or sets the content for the header on the control's right side.

Identifies the RightHeader dependency property.

Gets or sets the template for the header on the control's right side.

Identifies the RightHeaderTemplate dependency property.

Gets or sets the zero-based index of the currently selected item in the Pivot.

Identifies the SelectedIndex dependency property.

Gets or sets the currently selected item in the Pivot.

Identifies the SelectedItem dependency property.

Identifies the SlideInAnimationGroupProperty XAML attached property.

Gets or sets the title to be optionally set above the headers.

Identifies the Title dependency property.

Gets or sets the title template used for displaying the title above the headers area.

Identifies the TitleTemplate dependency property.

Methods summary

Retrieves the animation group that a FrameworkElement belongs to.

Assigns a FrameworkElement to a slide-in animation group so that element is animated at the same time as the other members of that group.

Events summary

Event for indicating that an item has fully loaded.

Event for offering an opportunity to dynamically load or change the content of a pivot item before it is displayed.

Event for notifying that the pivot item has been completely unloaded from the visual pivot.

Event for offering an opportunity to dynamically load, change, or remove the content of a pivot item as it is removed.

Occurs when the currently selected item changes.

Constructors

  • Pivot()
    Pivot()
    Pivot()
    Pivot()

    Initializes a new instance of the Pivot type.

    public Pivot()public New()Public Sub New()public Pivot()

Properties

  • HeaderFocusVisualPlacement
    HeaderFocusVisualPlacement
    HeaderFocusVisualPlacement
    HeaderFocusVisualPlacement

    Gets or sets a value that specifies the style of focus visual used for pivot header items.

    public PivotHeaderFocusVisualPlacement HeaderFocusVisualPlacement { get; set; }public PivotHeaderFocusVisualPlacement HeaderFocusVisualPlacement { get; set; }Public ReadWrite Property HeaderFocusVisualPlacement As PivotHeaderFocusVisualPlacementpublic PivotHeaderFocusVisualPlacement HeaderFocusVisualPlacement { get; set; }
    <Pivot HeaderFocusVisualPlacement="pivotHeaderFocusVisualPlacementMemberName" />
    

    Property Value

    Remarks

    Use this property to specify how the focus visual is drawn around the Pivot header.

    Version compatibility

    The HeaderFocusVisualPlacement property is not available prior to Windows 10, version 1607. If your app’s 'minimum platform version' setting in Microsoft Visual Studio is less than the 'introduced version' shown in the Requirements block later in this page, you must design and test your app to account for this. For more info, see Version adaptive code.

    To avoid exceptions when your app runs on previous versions of Windows 10, do not set this property in XAML or use it without performing a runtime check. This example shows how to use the ApiInformation class to check for the presence of this property before you set it.

    <Pivot x:Name="pivot1" Loaded="Pivot_Loaded">
        ...
    </Pivot>
    
    private void Pivot_Loaded(object sender, RoutedEventArgs e)
    {
        if (ApiInformation.IsPropertyPresent("Windows.UI.Xaml.Controls.Pivot", "HeaderFocusVisualPlacement"))
        {
            pivot1.HeaderFocusVisualPlacement = PivotHeaderFocusVisualPlacement.SelectedItemHeader;
        }
    }
    
  • HeaderFocusVisualPlacementProperty
    HeaderFocusVisualPlacementProperty
    HeaderFocusVisualPlacementProperty
    HeaderFocusVisualPlacementProperty

    Identifies the HeaderFocusVisualPlacement dependency property.

    public static DependencyProperty HeaderFocusVisualPlacementProperty { get; }public static DependencyProperty HeaderFocusVisualPlacementProperty { get; }Public Static ReadOnly Property HeaderFocusVisualPlacementProperty As DependencyPropertypublic static DependencyProperty HeaderFocusVisualPlacementProperty { get; }

    Property Value

  • HeaderTemplate
    HeaderTemplate
    HeaderTemplate
    HeaderTemplate

    Gets or sets the template for the Header property of PivotItem children.

    public DataTemplate HeaderTemplate { get; set; }public DataTemplate HeaderTemplate { get; set; }Public ReadWrite Property HeaderTemplate As DataTemplatepublic DataTemplate HeaderTemplate { get; set; }
    <Pivot HeaderTemplate="resourceReferenceToDataTemplate"/>
    

    Property Value

  • HeaderTemplateProperty
    HeaderTemplateProperty
    HeaderTemplateProperty
    HeaderTemplateProperty

    Identifies the HeaderTemplate dependency property.

    public static DependencyProperty HeaderTemplateProperty { get; }public static DependencyProperty HeaderTemplateProperty { get; }Public Static ReadOnly Property HeaderTemplateProperty As DependencyPropertypublic static DependencyProperty HeaderTemplateProperty { get; }

    Property Value

  • IsHeaderItemsCarouselEnabled
    IsHeaderItemsCarouselEnabled
    IsHeaderItemsCarouselEnabled
    IsHeaderItemsCarouselEnabled

    Gets or sets a value that indicates whether the selected header moves to the first position.

    public bool IsHeaderItemsCarouselEnabled { get; set; }public bool IsHeaderItemsCarouselEnabled { get; set; }Public ReadWrite Property IsHeaderItemsCarouselEnabled As boolpublic bool IsHeaderItemsCarouselEnabled { get; set; }
    <Pivot IsHeaderItemsCarouselEnabled="bool" />
    

    Property Value

    • bool
      bool
      bool

      true if the selected header moves to the first position; false if headers always keep the same position. The default is true.

    Remarks

    This property has an effect only when the Pivot doesn't have enough space to show all the headers. If space is available, all headers are shown regardless of this property setting.

    By default, the selected Pivot header always moves to the first position (far left), and the headers carousel. The user can pan infinitely and the content just wraps around from front to back.

    When this property is false, the Pivot headers always keep the same position. Scrolling is enabled to show headers that don't fit in the viewport.

    Version compatibility

    The IsHeaderItemsCarouselEnabled property is not available prior to Windows 10, version 1607. If your app’s 'minimum platform version' setting in Microsoft Visual Studio is less than the 'introduced version' shown in the Requirements block later in this page, you must design and test your app to account for this. For more info, see Version adaptive code.

    To avoid exceptions when your app runs on previous versions of Windows 10, do not set this property in XAML or use it without performing a runtime check. This example shows how to use the ApiInformation class to check for the presence of this property before you set it.

    <Pivot x:Name="pivot1" Loaded="Pivot_Loaded">
        ...
    </Pivot>
    
    private void Pivot_Loaded(object sender, RoutedEventArgs e)
    {
        if (ApiInformation.IsPropertyPresent("Windows.UI.Xaml.Controls.Pivot", "IsHeaderItemsCarouselEnabled"))
        {
            pivot1.IsHeaderItemsCarouselEnabled = false;
        }
    }
    
  • IsHeaderItemsCarouselEnabledProperty
    IsHeaderItemsCarouselEnabledProperty
    IsHeaderItemsCarouselEnabledProperty
    IsHeaderItemsCarouselEnabledProperty

    Identifies the IsHeaderItemsCarouselEnabled dependency property.

    public static DependencyProperty IsHeaderItemsCarouselEnabledProperty { get; }public static DependencyProperty IsHeaderItemsCarouselEnabledProperty { get; }Public Static ReadOnly Property IsHeaderItemsCarouselEnabledProperty As DependencyPropertypublic static DependencyProperty IsHeaderItemsCarouselEnabledProperty { get; }

    Property Value

  • IsLocked
    IsLocked
    IsLocked
    IsLocked

    Gets or sets whether the Pivot is locked to show only the current PivotItem. While the Pivot is locked, all other PivotItems are removed, and the user cannot navigate to them. An example of locking is when the email list is put into a multi-select mode.

    public bool IsLocked { get; set; }public bool IsLocked { get; set; }Public ReadWrite Property IsLocked As boolpublic bool IsLocked { get; set; }
    <Pivot IsLocked="bool" />
    

    Property Value

    • bool
      bool
      bool

      true if the Pivot is locked; false if it is unlocked. The default is false.

  • IsLockedProperty
    IsLockedProperty
    IsLockedProperty
    IsLockedProperty

    Identifies the IsLocked dependency property.

    public static DependencyProperty IsLockedProperty { get; }public static DependencyProperty IsLockedProperty { get; }Public Static ReadOnly Property IsLockedProperty As DependencyPropertypublic static DependencyProperty IsLockedProperty { get; }

    Property Value

  • LeftHeader
    LeftHeader
    LeftHeader
    LeftHeader

    Gets or sets the content for the header on the control's left side.

    public object LeftHeader { get; set; }public object LeftHeader { get; set; }Public ReadWrite Property LeftHeader As objectpublic object LeftHeader { get; set; }
    <Pivot LeftHeader="headerString"/>
    
    

    Property Value

    • object
      object
      object

      The content of the header on the control's left side. The default is null.

    Remarks

    You can set a data template for the LeftHeader value by using the LeftHeaderTemplate property.

  • LeftHeaderProperty
    LeftHeaderProperty
    LeftHeaderProperty
    LeftHeaderProperty

    Identifies the LeftHeader dependency property.

    public static DependencyProperty LeftHeaderProperty { get; }public static DependencyProperty LeftHeaderProperty { get; }Public Static ReadOnly Property LeftHeaderProperty As DependencyPropertypublic static DependencyProperty LeftHeaderProperty { get; }

    Property Value

  • LeftHeaderTemplate
    LeftHeaderTemplate
    LeftHeaderTemplate
    LeftHeaderTemplate

    Gets or sets the template for the header on the control's left side.

    public DataTemplate LeftHeaderTemplate { get; set; }public DataTemplate LeftHeaderTemplate { get; set; }Public ReadWrite Property LeftHeaderTemplate As DataTemplatepublic DataTemplate LeftHeaderTemplate { get; set; }
    <Pivot LeftHeaderTemplate="resourceReferenceToDataTemplate"/>
    

    Property Value

  • LeftHeaderTemplateProperty
    LeftHeaderTemplateProperty
    LeftHeaderTemplateProperty
    LeftHeaderTemplateProperty

    Identifies the LeftHeaderTemplate dependency property.

    public static DependencyProperty LeftHeaderTemplateProperty { get; }public static DependencyProperty LeftHeaderTemplateProperty { get; }Public Static ReadOnly Property LeftHeaderTemplateProperty As DependencyPropertypublic static DependencyProperty LeftHeaderTemplateProperty { get; }

    Property Value

  • RightHeader
    RightHeader
    RightHeader
    RightHeader

    Gets or sets the content for the header on the control's right side.

    public object RightHeader { get; set; }public object RightHeader { get; set; }Public ReadWrite Property RightHeader As objectpublic object RightHeader { get; set; }
    <Pivot RightHeader="headerString"/>
    
    

    Property Value

    • object
      object
      object

      The content of the header on the control's right side. The default is null.

    Remarks

    You can set a data template for the RightHeader value by using the RightHeaderTemplate property.

  • RightHeaderProperty
    RightHeaderProperty
    RightHeaderProperty
    RightHeaderProperty

    Identifies the RightHeader dependency property.

    public static DependencyProperty RightHeaderProperty { get; }public static DependencyProperty RightHeaderProperty { get; }Public Static ReadOnly Property RightHeaderProperty As DependencyPropertypublic static DependencyProperty RightHeaderProperty { get; }

    Property Value

  • RightHeaderTemplate
    RightHeaderTemplate
    RightHeaderTemplate
    RightHeaderTemplate

    Gets or sets the template for the header on the control's right side.

    public DataTemplate RightHeaderTemplate { get; set; }public DataTemplate RightHeaderTemplate { get; set; }Public ReadWrite Property RightHeaderTemplate As DataTemplatepublic DataTemplate RightHeaderTemplate { get; set; }
    <Pivot RightHeaderTemplate="resourceReferenceToDataTemplate"/>
    

    Property Value

  • RightHeaderTemplateProperty
    RightHeaderTemplateProperty
    RightHeaderTemplateProperty
    RightHeaderTemplateProperty

    Identifies the RightHeaderTemplate dependency property.

    public static DependencyProperty RightHeaderTemplateProperty { get; }public static DependencyProperty RightHeaderTemplateProperty { get; }Public Static ReadOnly Property RightHeaderTemplateProperty As DependencyPropertypublic static DependencyProperty RightHeaderTemplateProperty { get; }

    Property Value

  • SelectedIndex
    SelectedIndex
    SelectedIndex
    SelectedIndex

    Gets or sets the zero-based index of the currently selected item in the Pivot.

    public int SelectedIndex { get; set; }public int SelectedIndex { get; set; }Public ReadWrite Property SelectedIndex As intpublic int SelectedIndex { get; set; }

    Property Value

    • int
      int
      int

      The zero-based index of the currently selected item.

  • SelectedIndexProperty
    SelectedIndexProperty
    SelectedIndexProperty
    SelectedIndexProperty

    Identifies the SelectedIndex dependency property.

    public static DependencyProperty SelectedIndexProperty { get; }public static DependencyProperty SelectedIndexProperty { get; }Public Static ReadOnly Property SelectedIndexProperty As DependencyPropertypublic static DependencyProperty SelectedIndexProperty { get; }

    Property Value

  • SelectedItem
    SelectedItem
    SelectedItem
    SelectedItem

    Gets or sets the currently selected item in the Pivot.

    public object SelectedItem { get; set; }public object SelectedItem { get; set; }Public ReadWrite Property SelectedItem As objectpublic object SelectedItem { get; set; }

    Property Value

    • object
      object
      object

      The currently selected PivotItem or, if the Pivot is bound to data, the data item set as the Content of the currently selected PivotItem.

  • SelectedItemProperty
    SelectedItemProperty
    SelectedItemProperty
    SelectedItemProperty

    Identifies the SelectedItem dependency property.

    public static DependencyProperty SelectedItemProperty { get; }public static DependencyProperty SelectedItemProperty { get; }Public Static ReadOnly Property SelectedItemProperty As DependencyPropertypublic static DependencyProperty SelectedItemProperty { get; }

    Property Value

  • SlideInAnimationGroupProperty
    SlideInAnimationGroupProperty
    SlideInAnimationGroupProperty
    SlideInAnimationGroupProperty

    Identifies the SlideInAnimationGroupProperty XAML attached property.

    public static DependencyProperty SlideInAnimationGroupProperty { get; }public static DependencyProperty SlideInAnimationGroupProperty { get; }Public Static ReadOnly Property SlideInAnimationGroupProperty As DependencyPropertypublic static DependencyProperty SlideInAnimationGroupProperty { get; }

    Property Value

  • Title
    Title
    Title
    Title

    Gets or sets the title to be optionally set above the headers.

    public object Title { get; set; }public object Title { get; set; }Public ReadWrite Property Title As objectpublic object Title { get; set; }
    <Pivot Title="string" />
    

    Property Value

    • object
      object
      object

      Returns String.

  • TitleProperty
    TitleProperty
    TitleProperty
    TitleProperty

    Identifies the Title dependency property.

    public static DependencyProperty TitleProperty { get; }public static DependencyProperty TitleProperty { get; }Public Static ReadOnly Property TitleProperty As DependencyPropertypublic static DependencyProperty TitleProperty { get; }

    Property Value

  • TitleTemplate
    TitleTemplate
    TitleTemplate
    TitleTemplate

    Gets or sets the title template used for displaying the title above the headers area.

    public DataTemplate TitleTemplate { get; set; }public DataTemplate TitleTemplate { get; set; }Public ReadWrite Property TitleTemplate As DataTemplatepublic DataTemplate TitleTemplate { get; set; }
    <Pivot TitleTemplate="resourceReferenceToDataTemplate"/>
    

    Property Value

  • TitleTemplateProperty
    TitleTemplateProperty
    TitleTemplateProperty
    TitleTemplateProperty

    Identifies the TitleTemplate dependency property.

    public static DependencyProperty TitleTemplateProperty { get; }public static DependencyProperty TitleTemplateProperty { get; }Public Static ReadOnly Property TitleTemplateProperty As DependencyPropertypublic static DependencyProperty TitleTemplateProperty { get; }

    Property Value

Methods

  • GetSlideInAnimationGroup(FrameworkElement)
    GetSlideInAnimationGroup(FrameworkElement)
    GetSlideInAnimationGroup(FrameworkElement)
    GetSlideInAnimationGroup(FrameworkElement)

    Retrieves the animation group that a FrameworkElement belongs to.

    public static PivotSlideInAnimationGroup GetSlideInAnimationGroup(FrameworkElement element)public static PivotSlideInAnimationGroup GetSlideInAnimationGroup(FrameworkElement element)Public Static Function GetSlideInAnimationGroup(element As FrameworkElement) As PivotSlideInAnimationGrouppublic static PivotSlideInAnimationGroup GetSlideInAnimationGroup(FrameworkElement element)

    Parameters

    Returns

  • SetSlideInAnimationGroup(FrameworkElement, PivotSlideInAnimationGroup)
    SetSlideInAnimationGroup(FrameworkElement, PivotSlideInAnimationGroup)
    SetSlideInAnimationGroup(FrameworkElement, PivotSlideInAnimationGroup)
    SetSlideInAnimationGroup(FrameworkElement, PivotSlideInAnimationGroup)

    Assigns a FrameworkElement to a slide-in animation group so that element is animated at the same time as the other members of that group.

    public static void SetSlideInAnimationGroup(FrameworkElement element, PivotSlideInAnimationGroup value)public static void SetSlideInAnimationGroup(FrameworkElement element, PivotSlideInAnimationGroup value)Public Static Function SetSlideInAnimationGroup(element As FrameworkElement, value As PivotSlideInAnimationGroup) As voidpublic static void SetSlideInAnimationGroup(FrameworkElement element, PivotSlideInAnimationGroup value)

    Parameters

Events

  • PivotItemLoaded
    PivotItemLoaded
    PivotItemLoaded
    PivotItemLoaded

    Event for indicating that an item has fully loaded.

    public event TypedEventHandler PivotItemLoadedpublic event TypedEventHandler PivotItemLoadedPublic Event PivotItemLoadedpublic event TypedEventHandler PivotItemLoaded
    <Pivot PivotItemLoaded="eventhandler" />
    
  • PivotItemLoading
    PivotItemLoading
    PivotItemLoading
    PivotItemLoading

    Event for offering an opportunity to dynamically load or change the content of a pivot item before it is displayed.

    public event TypedEventHandler PivotItemLoadingpublic event TypedEventHandler PivotItemLoadingPublic Event PivotItemLoadingpublic event TypedEventHandler PivotItemLoading
    <Pivot PivotItemLoading="eventhandler" />
    
  • PivotItemUnloaded
    PivotItemUnloaded
    PivotItemUnloaded
    PivotItemUnloaded

    Event for notifying that the pivot item has been completely unloaded from the visual pivot.

    public event TypedEventHandler PivotItemUnloadedpublic event TypedEventHandler PivotItemUnloadedPublic Event PivotItemUnloadedpublic event TypedEventHandler PivotItemUnloaded
    <Pivot PivotItemUnloaded="eventhandler" />
    
  • PivotItemUnloading
    PivotItemUnloading
    PivotItemUnloading
    PivotItemUnloading

    Event for offering an opportunity to dynamically load, change, or remove the content of a pivot item as it is removed.

    public event TypedEventHandler PivotItemUnloadingpublic event TypedEventHandler PivotItemUnloadingPublic Event PivotItemUnloadingpublic event TypedEventHandler PivotItemUnloading
    <Pivot PivotItemUnloading="eventhandler" />
    
  • SelectionChanged
    SelectionChanged
    SelectionChanged
    SelectionChanged

    Occurs when the currently selected item changes.

    public event SelectionChangedEventHandler SelectionChangedpublic event SelectionChangedEventHandler SelectionChangedPublic Event SelectionChangedpublic event SelectionChangedEventHandler SelectionChanged
    <Pivot SelectionChanged="eventhandler" />
    

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ComposableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Controls.dll