Using Lockable Pivot in Windows Phone

Welcome again. Windows phone is totally amazing when we talk about various controls in it. Many of us developing for the Windows Phone platform do not know that there is an item in the toolkit named lockable pivot. Lockable pivot is inherited from toolkit. <toolkit:lockablepivot> . A Lockable pivot has the functionality of a lock, for this isLocked attribute of pivot.

Let us create a pivot application from the template given by Windows Phone. I introduce a lockable pivot control and name it pivot1. I also introduced two buttons. The pivot is locked with one button as: 

  1. Pivot.IsLocked = true;  

 When I unlock the pivot: 

  1. Pivot.IsLocked = false;   
  1. When you lock the pivot all the items of the pivot except the current item disappears.

  2. When you unlock the pivot all the items appear again.

A Lockable pivot can be used in an application where there is a need for focusing the pivot item. You may use it in quiz applications or in a recipe app or any other application you can think of.

Note:

The entire source code can be downloaded from the link below.



Code:

      DOWNLOAD

Personal Blog: Blend Expression.