Click here to load reader
Upload
yasmine-abdelhady
View
200
Download
0
Embed Size (px)
Citation preview
“Discover Windows Phone” development series
Yasmine Abdelhady
@yasabdelhady
04. The Back Button
© Yasmine Abdelhady| MEA DPE Intern
Agenda How the back button works?
Overriding the back button
© Yasmine Abdelhady| MEA DPE Intern
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
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
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
Code to override the Back Button
© Yasmine Abdelhady| MEA DPE Intern
Thank you
@yasabdelhady
yasabdelhady.wordpress.com
Facebook.com/yasabdelhady
© Yasmine Abdelhady| MEA DPE Intern