Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop pivot looping

I want to create a wizard control from the pivot control. To achieve this I need to stop the pivot looping. I want to stop the pivot control moving forward from the last item to the first and backwards from the first to the last.

I'm pretty sure I should be able to intercept the manipulations e.g. cancel if I detect a right to left manipulation on the last pivot item. I can capture this in ManipulationDelta but don't know how to cancel the manipulation.

I have tried setting e.Handled = True but it didn't work.

I tried to set IsHitTestVisisble to false but this kills all manipulations. I tried setting it back to true in ManipulationCompleted but this then allows all manipulations.

Any ideas?

Cheers

Steve

like image 482
Steve Chadbourne Avatar asked Oct 06 '11 01:10

Steve Chadbourne


2 Answers

The pivot is not designed to be used as a wizard and does not support stopping it's looping behaviour as this would create an inconsistent UX for users.

If you really must create a wizard do it with multiple pages.

like image 162
Matt Lacey Avatar answered Sep 21 '22 14:09

Matt Lacey


Don't use a Pivot for a Wizard. Create your own transitions instead.

like image 42
Claus Jørgensen Avatar answered Sep 23 '22 14:09

Claus Jørgensen