I'm designing a reading app with pivot control. When coming from the first page, I want to disable the right-flick event so that the user can just flick left to get to the next page. When coming from the last page, I want to disable the left-flick event.
There is a lockablePivot control in Silverlight Toolkit, but this control will disable all the flick event. Would anybody give me some suggestions.
Using a PivotItem like this goes against the UI Guide and shouldn't really be implemented. However, for the sake of theory if nothing else, you could do something like this.
Give your first and last PivotItem a name.
Handle the Pivot's
LoadingPivotItem
andLoadedPivotItem
events. You can then do something like this:I think you should rethink your design decision here. Metro design language states how pivots work and people are used to this. Changing this will make the user experience worse for people because they expect you to be able to flick round in the pivot.
Have you looked at the LockablePivot Control in microsoft silverlight toolkit?
http://www.windowsphonegeek.com/articles/Windows-Phone-Toolkit-LockablePivot-in-depth