Windows 8 – FlipView – Programatically adding Next and Previous

 

image

So when using a flipview control there is no need for ‘next’ and ‘previous’ buttons as they are built into the UI already:

image

But … the Windows 8 UI is new and unless you are using a mouse those buttons above will stay hidden.  So these programmatic buttons serve as clues that you can indeed go backwards and forwards through the apps detail screens (I have witnessed many people repeatedly using the back button to go back to the summary screen before touching the next item to go back to the details view – at least until the penny drops!

And the code is straightforward! Here is the XAML I used:

image

and here is the code behind:

image


NB You can download Surface News for free here:

http://apps.microsoft.com/webpdp/app/surface-news/0491cb58-5e16-4007-865b-f4058703ce91

Advertisements

~ by Ian on November 26, 2012.

One Response to “Windows 8 – FlipView – Programatically adding Next and Previous”

  1. […] Read original post at Ian Walkers' Blog […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: