简体   繁体   中英

Windows 10 Universal App: Preventing Headers from Rotating in Pivot Control

I am attempting to keep my pivot headers from cycling like a carousel but can't seem to find the right property or setting to do so. Is it possible to disable?

Basically stop this from happening:

State One:

| One | Two | Three | Four |

State Two - After Left Swipe:

| Two | Three | Four | One |

I don't mind the text highlight changing as it moves down etc, I just don't want my pivot items shifting position. I know I can solve this using additional controls and disabling the headers altogether, but I was hoping there is a built in solution.

It's worth noting that if you Pivot element only has 4 or fewer PivotItems the headers aren't actually treated as a carousel so they won't rotate.

Microsoft design guidelines recommend keeping the number of PivotItems to 5 or fewer.

My solution was to simply use 4 PivotItems only.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM