BUILDING WINDOWS PHONE
APPLICATIONS
Page Navigation
FOLLOW US
Twitter

: @chothanihitesh

Slideshare

: http://www.slideshare.net/Chothani-Hitesh

Email

: chothani.hitesh@gmail.com

Support

: windows.chothani@live.com

LinkedIn

: in.linkedin.com/pub/hiteshchothani/6b/311/2b8

W8 Publisher

: AppStudios

WP Publisher : AppStudios
Website

: www.appmobinfotech.com
FRAME AND PAGE


•Frame


Top-level container control



PhoneApplicationFrame class



Contains the page control and system
elements such as system tray and

application bar


Page


Fills entire content region of the frame



PhoneApplicationPage-derived class



Contains a title



Optionally surfaces its own application bar
PAGE NAVIGATION


XAML apps on Windows Phone

use a page-based navigation
model


Similar to web page model



Each page identified by a URI



Each page is essentially stateless
NAVIGATING BACK


Application can provide controls to

navigate back to preceding page


The hardware Back key will also
navigate back to preceding page


No code required – built-in behaviour
OVERRIDING BACK KEY


•May need to override Back hardware key if ‘back to previous page’ is
not logical behaviour


For example, when displaying a popup panel



User would expect Back key to close the panel, not the page
OVERRIDING THE BACK KEY
PASSING DATA BETWEEN PAGES


Can pass string data between pages using query strings



On destination page
PASSING OBJECTS BETWEEN PAGES


Often, you will pass a data object from one page to another


E.g., user selects an item in a list and navigates to a Details
page



One solution is to store your ViewModel (that is, data) in
your App class




Global to whole application

Pass the ID of the selected item in query string
HANDLING NON LINEAR NAVIGATION


Design your app navigation strategy carefully!



If you navigate from ‘third page’ to ‘main page’
and your user then presses the Back key, what
happens?





User expects app to exit
App actually navigates back to Third Page

Solution for Windows Phone 7.0 was complex
code to handle back navigation correctly, or the
Non-Linear Navigation Recipe library from

AppHub


Windows Phone APIs:


NavigationService.RemoveBackEntry()
NAVIGATIONSERVICE.REMOVEBACKENTRY()


When ‘Third Page’ navigates back to MainPage, put a marker in the query string



In OnNavigatedTo() in MainPage, look for the marker and if present, remove the ‘ Third Page’,
‘SecondPage’ and original instance of ‘MainPage’ from the navigation history stack
Thank You

More Related Content

PDF
aria-live: the good, the bad and the ugly
PDF
Accessible modal windows
PDF
Building Accessible Web Components
PDF
Evaluation of Slack
DOC
example of OMT TECHNIQUE (UML)
PDF
Creating accessible modals and autocompletes
PPT
Involver
PDF
Windows phone 8 session 13
aria-live: the good, the bad and the ugly
Accessible modal windows
Building Accessible Web Components
Evaluation of Slack
example of OMT TECHNIQUE (UML)
Creating accessible modals and autocompletes
Involver
Windows phone 8 session 13

Viewers also liked (7)

PDF
Windows phone 8 session 8
PDF
Windows phone 8 session 10
PDF
Windows phone 8 session 9
PDF
Windows phone 8 session 5
PDF
Windows phone 8 session 6
PDF
Windows phone 8 session 11
PDF
Windows phone 8 session 7
Windows phone 8 session 8
Windows phone 8 session 10
Windows phone 8 session 9
Windows phone 8 session 5
Windows phone 8 session 6
Windows phone 8 session 11
Windows phone 8 session 7
Ad

Similar to Windows phone 8 session 4 (20)

PPTX
Windows Phone 8 - 3 Building WP8 Applications
PDF
03.Controls in Windows Phone
PPTX
03 page navigation and data binding in windows runtime apps
PDF
Windows Phone 7: Navigating Between Pages
PPTX
"Discover windows phone" 02. page navigation
PPTX
Windows Phone 7 and Silverlight
PPTX
Win8 development lessons learned jayway
PDF
Navigation in Xamarin.Forms
PDF
Windows phone 7 series
PPTX
Session 1
PPTX
"Discover windows phone" 03.passing parameters
PPTX
Xamarin Navigation Patterns
PPTX
Xamarin Navigation Patterns
PDF
Windows Phone 8 Fundamental
PPTX
Windows Runtime Apps
PPTX
Presentation - Windows App Development - II - Mr. Chandan Gupta
PPTX
An end-to-end experience of Windows Phone 7 development (Part 1)
PDF
Applico mobile company
PPTX
Introduction to Universal Apps
PPTX
Blending Delicious User Experiences For Windows Phone 7 (by VerySoftware)
Windows Phone 8 - 3 Building WP8 Applications
03.Controls in Windows Phone
03 page navigation and data binding in windows runtime apps
Windows Phone 7: Navigating Between Pages
"Discover windows phone" 02. page navigation
Windows Phone 7 and Silverlight
Win8 development lessons learned jayway
Navigation in Xamarin.Forms
Windows phone 7 series
Session 1
"Discover windows phone" 03.passing parameters
Xamarin Navigation Patterns
Xamarin Navigation Patterns
Windows Phone 8 Fundamental
Windows Runtime Apps
Presentation - Windows App Development - II - Mr. Chandan Gupta
An end-to-end experience of Windows Phone 7 development (Part 1)
Applico mobile company
Introduction to Universal Apps
Blending Delicious User Experiences For Windows Phone 7 (by VerySoftware)
Ad

Recently uploaded (20)

PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PDF
HVAC Specification 2024 according to central public works department
PDF
CRP102_SAGALASSOS_Final_Projects_2025.pdf
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
English Textual Question & Ans (12th Class).pdf
PDF
Hazard Identification & Risk Assessment .pdf
PPTX
DRUGS USED FOR HORMONAL DISORDER, SUPPLIMENTATION, CONTRACEPTION, & MEDICAL T...
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PPTX
Education and Perspectives of Education.pptx
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
Journal of Dental Science - UDMY (2020).pdf
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
Unit 4 Computer Architecture Multicore Processor.pptx
Core Concepts of Personalized Learning and Virtual Learning Environments
HVAC Specification 2024 according to central public works department
CRP102_SAGALASSOS_Final_Projects_2025.pdf
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
Environmental Education MCQ BD2EE - Share Source.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
English Textual Question & Ans (12th Class).pdf
Hazard Identification & Risk Assessment .pdf
DRUGS USED FOR HORMONAL DISORDER, SUPPLIMENTATION, CONTRACEPTION, & MEDICAL T...
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Education and Perspectives of Education.pptx
Share_Module_2_Power_conflict_and_negotiation.pptx
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
AI-driven educational solutions for real-life interventions in the Philippine...
B.Sc. DS Unit 2 Software Engineering.pptx
Journal of Dental Science - UDMY (2020).pdf
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf

Windows phone 8 session 4

  • 2. FOLLOW US Twitter : @chothanihitesh Slideshare : http://www.slideshare.net/Chothani-Hitesh Email : chothani.hitesh@gmail.com Support : windows.chothani@live.com LinkedIn : in.linkedin.com/pub/hiteshchothani/6b/311/2b8 W8 Publisher : AppStudios WP Publisher : AppStudios Website : www.appmobinfotech.com
  • 3. FRAME AND PAGE  •Frame  Top-level container control  PhoneApplicationFrame class  Contains the page control and system elements such as system tray and application bar  Page  Fills entire content region of the frame  PhoneApplicationPage-derived class  Contains a title  Optionally surfaces its own application bar
  • 4. PAGE NAVIGATION  XAML apps on Windows Phone use a page-based navigation model  Similar to web page model  Each page identified by a URI  Each page is essentially stateless
  • 5. NAVIGATING BACK  Application can provide controls to navigate back to preceding page  The hardware Back key will also navigate back to preceding page  No code required – built-in behaviour
  • 6. OVERRIDING BACK KEY  •May need to override Back hardware key if ‘back to previous page’ is not logical behaviour  For example, when displaying a popup panel  User would expect Back key to close the panel, not the page
  • 8. PASSING DATA BETWEEN PAGES  Can pass string data between pages using query strings  On destination page
  • 9. PASSING OBJECTS BETWEEN PAGES  Often, you will pass a data object from one page to another  E.g., user selects an item in a list and navigates to a Details page  One solution is to store your ViewModel (that is, data) in your App class   Global to whole application Pass the ID of the selected item in query string
  • 10. HANDLING NON LINEAR NAVIGATION  Design your app navigation strategy carefully!  If you navigate from ‘third page’ to ‘main page’ and your user then presses the Back key, what happens?    User expects app to exit App actually navigates back to Third Page Solution for Windows Phone 7.0 was complex code to handle back navigation correctly, or the Non-Linear Navigation Recipe library from AppHub  Windows Phone APIs:  NavigationService.RemoveBackEntry()
  • 11. NAVIGATIONSERVICE.REMOVEBACKENTRY()  When ‘Third Page’ navigates back to MainPage, put a marker in the query string  In OnNavigatedTo() in MainPage, look for the marker and if present, remove the ‘ Third Page’, ‘SecondPage’ and original instance of ‘MainPage’ from the navigation history stack