7

Click here to load reader

"Discover windows phone" 04. The back button

Embed Size (px)

Citation preview

Page 1: "Discover windows phone"  04. The back button

“Discover Windows Phone” development series

Yasmine Abdelhady

@yasabdelhady

[email protected]

04. The Back Button

© Yasmine Abdelhady| MEA DPE Intern

Page 2: "Discover windows phone"  04. The back button

Agenda How the back button works?

Overriding the back button

© Yasmine Abdelhady| MEA DPE Intern

Page 3: "Discover windows phone"  04. The back button

How the Back Button Works

Think of the Back button much like the one in your browser. You can click it to navigate backwards through the history of decisions you have made in that session. It takes you across multiple sites, and every page you visited within those sites. The Back button on a Windows Phone works the same way. It will take you backwards through the pages you have visited, even across multiple applications!

© Yasmine Abdelhady| MEA DPE Intern

Page 4: "Discover windows phone"  04. The back button

Example

Open the People hub.

Select a friend from our list of contacts.

Click on you're friends website

Hit the Start button.

Open another application.

When we hit the back button, we will navigate backwards through the previous list of events.

© Yasmine Abdelhady| MEA DPE Intern

Page 5: "Discover windows phone"  04. The back button

Overriding the Back Button

In some cases, overriding the back button is needed. In Windows Phone development you can override the Back button to make it do what you want. In any case where you want to override the back button, you should be certain you’re considering what your user considers “back.”

© Yasmine Abdelhady| MEA DPE Intern

Page 6: "Discover windows phone"  04. The back button

Code to override the Back Button

© Yasmine Abdelhady| MEA DPE Intern

Page 7: "Discover windows phone"  04. The back button

Thank you

@yasabdelhady

[email protected]

yasabdelhady.wordpress.com

Facebook.com/yasabdelhady

© Yasmine Abdelhady| MEA DPE Intern