Fluid pageControl

Dec 8, 2009 at 5:25 PM

Hi,

Just wondered if someone could help me out with pageControl.

I would like to be able to create 3 pages. The first page will be able to gesture right and go to the next page, the second page will be able to scroll/gesture either left or right and the third will only be able to gesture left.

Could someone point me in the right direction please.


Regards Matt

Dec 8, 2009 at 6:02 PM
Edited Dec 8, 2009 at 6:02 PM

The back gesture should be done by default. For navigating forward, you should override OnGesture on your NavigationPanel:

        public override void OnGesture(GestureEventArgs e)
        {
            base.OnGesture(e);
            if (e.Gesture == Gesture.Left)
                Forward();
        }

If your navigation has the three pages added in order it should work.

Hope this helps.

 

 

Dec 9, 2009 at 8:24 AM

Thanks very  much for your help.