There are many mobile platforms available in market like Android, iOS, Windows Phone, Black Barry, Symbian etc. So Web & Desktop Application Developers are turning towards development of mobile apps because there is a huge potential in this area.
If you are aware about iOS, Android, Windows Phone App Development then you might know that App consists of different activities. And considering small size of mobile screen, developers can show very little on 1 activity. Even for Animation between activities, developers have to handle explicitly to show different animation. To Overcome that Problem, Windows Phone SDK Come up with superb solution. Windows Phone introduced option Of Panorama & Pivot Page.
What is Panorama Page & How to Set it Up?
Panorama in simple English terms is “unbroken view of whole region surrounding an observer”. Similarly Panorama page in Windows Phone app provides us capability to divide entire region (page) into different parts & show it dynamically or according to user’s need.
(1) Right Click On Window Phone Project –> Add –> New Item .
(2) Select Windows Phone Panorama Page & Click on Add.
See Few Examples of it.
The part which is in focus in images will be shown on mobile screen. Other parts can be made visible by sliding on the screen (left & right).
This is very useful in case if you have multiple pages of 1 category. You can show them using single Panorama Page.
How To Add Controls
We Can Add Items Using Single Drag & Drop here.
To Go To the next item, You can click on Right Top where you see it. This will slide to another part of panorama page. There also You can add controls using Drag & Drop. You can again go to item1 also.
Also You can add n number of items(parts) in panorama page.
What Is Pivot Page & Difference between Pivot & Panorama Page
It is very similar to tab control of the web apps. Using which we can provide navigation. Using Page Headers or sliding through pages, we can change the views of pivot pages.
There is not much difference Panorama & Pivot Page. They both have similar functionalities. Panorama Pages are like magazine covers & Use pivots if you want show large piece of information to users.
How To Add Pivot Page
(1) Right Click On Window Phone Project –> Add –> New Item.
(2) Select Windows Phone Pivot Page & Click on Add.
Note :- There won’t be different code base file of different views of Pivot & Panorama Page. There is 1 & only 1 code base file.
Check Example :-
It is very useful in case of there are multiple views of 1 single page. You can easily switch between them. Very Similar to tabs in web app.
How To Add Controls
(1) By Default item1 will be selected. You Can Add Controls there by drag & drop from toolbox.
(2) To Select 2nd item, Click on the highlighted area in code. In view, It will show item2 now. To Go to item1. Click on code where item1 has written.