0

I Would like to move between pages in my application through swiping.

Here is a picture to explain my example :

enter image description here

Let's say that I have 3 Pages represented each by 3 tabs how can I swipe to move from one to another?

user2505650
  • 1,293
  • 6
  • 20
  • 38

2 Answers2

2

Pivot control is what you need. However its not used to swipe between pages just child controls of this control but it will work for what you need. And for customizing header you can have a look at this.

You can just use Pivot control as I mentioned and remove the header of pivot by keeping it empty or whatever and put a control of yours made with borders and all stuff and you can show and hide the highlight on the basis of index of the pivot control. Basically using the pivot control as you would have and instead of its header you put your control up there made up of grid control and OnIndexChanged event of pivot control you manipulate it to get a feel of what you want.

Community
  • 1
  • 1
parveen
  • 1,939
  • 1
  • 17
  • 33
  • I am looking for an alternative of Pivot Control, like the one that I described on Android Platforms. The twitter app in Windows Phone uses the feature that I describe for example. – user2505650 Dec 20 '13 at 13:58
  • @user2505650 Do you want to code it yourself or looking for a prebuilt solution? – parveen Dec 20 '13 at 14:01
  • If there is a pre built solution i would like to look for it, but I am looking as well to code it myself, so if you have any ideas for which path to take or from where to begin that would be really helpful – user2505650 Dec 20 '13 at 14:29
  • @user2505650 check my edited answer and let me know if you still have any doubts. – parveen Dec 20 '13 at 14:59
  • So for Example if I have those Three Titles : "Music" , "Cinema" , "Theatre" with a picture for each Title , How can I make them appear in the page in the same time. Because in pivot Items Only the first title appears completely and then the second one is cut, i you see what I mean , So I would like all my titles to appear in the same line – user2505650 Dec 20 '13 at 15:35
  • @user2505650 You don't have to reply on the titles of pivot control, keep them empty. Put your own titles and change the appearance of them in `SelectionChanged` event of pivot control based on the `selected index` property. – parveen Dec 20 '13 at 19:20
0

In Windows phone for achieving the same you have to make a customize control

but if you don't want to make then you could use panorama and pivot control provide by windows phone.

Pradeep Kesharwani
  • 1,480
  • 1
  • 12
  • 21