SlideShare a Scribd company logo
“Discover Windows Phone”
development series
03. Passing Parameters
Yasmine Abdelhady
@yasabdelhady
Yasmine.Abdelhady@Hotmail.com

© Yasmine Abdelhady| MEA DPE Intern
Agenda

© Yasmine Abdelhady| MEA DPE Intern

 Passing Parameters while Navigating to another page.
 Let's say that you want to merge Meals.xaml and Beverages.xaml
in the same page, since they do the same functionality but only
display different content. You can also merge the two event
handlers of the button since they're also similar. Let's start step by
step.

© Yasmine Abdelhady| MEA DPE Intern
How to do this?

© Yasmine Abdelhady| MEA DPE Intern

 We have multiple pages, and we want to give the user a way to get
between them. Let's build a simple navigation UI that will allow us
to do just that.
 1) Open the application we created together through the previous
couple of posts.
2) From the Solution Explorer, delete Beverages.xaml and
Meals.xaml
3) Create a new page by right clicking the project>Add>New
Item>Windows Phone Portrait Page and name it Menu.xaml

© Yasmine Abdelhady| MEA DPE Intern
4) In Mainpage.xaml, change the event handler functionof both buttons to
button_click, as shown in the picture

© Yasmine Abdelhady| MEA DPE Intern
5) In MainPage.xaml.cs, delete the old two event handler functions, which
were button_meals_click and button_beverages_click and add a new
function button_click as shown in the picture

© Yasmine Abdelhady| MEA DPE Intern
6) Go to Menu.xaml.cs, where the parameter that was passed to from
MainPage.xaml.cs. Add to the OnNavigatedTo, if it is not there add it.

© Yasmine Abdelhady| MEA DPE Intern
@yasabdelhady

yasmine.Abdelhady@Hotmail.com

Thank you 
yasabdelhady.wordpress.com

Facebook.com/yasabdelhady

© Yasmine Abdelhady| MEA DPE Intern

More Related Content

What's hot

Print from-kindle-fire
Print from-kindle-firePrint from-kindle-fire
Print from-kindle-fire
Jonny Greenwood
 
Autopilot
AutopilotAutopilot
Autopilot
coseng zuiken
 
Getting started
Getting started Getting started
Getting started
Lynnette Humphrey
 
How to encrypt emails
How to encrypt emailsHow to encrypt emails
How to encrypt emails
IJNet
 
Autopilot method $
Autopilot method $Autopilot method $
Autopilot method $
RyanRoberts127
 
Autopilotnew money money $$
Autopilotnew money money $$Autopilotnew money money $$
Autopilotnew money money $$
KamilBejm1
 
EARN $300 DAILY AUTOPILOT NO INVESTMENT EASY METHOD
EARN $300 DAILY AUTOPILOT NO INVESTMENT EASY METHODEARN $300 DAILY AUTOPILOT NO INVESTMENT EASY METHOD
EARN $300 DAILY AUTOPILOT NO INVESTMENT EASY METHOD
Fatima1567
 
Make money without a Investment
Make money without a InvestmentMake money without a Investment
Make money without a Investment
Omer Keceli
 
Cash Kingdom Autopilot income 2017
Cash Kingdom Autopilot income 2017Cash Kingdom Autopilot income 2017
Cash Kingdom Autopilot income 2017
Mohamed Rafat
 
Autopilot
AutopilotAutopilot
Autopilot
FloordeWit1
 
Como ganar dinero gratis!
Como ganar dinero gratis!Como ganar dinero gratis!
Como ganar dinero gratis!
Fernando Ramos Inostroza
 
1 computer training 1
1 computer training 11 computer training 1
1 computer training 1
sklip
 
How to embed a google calendar in a twinspace page
How to embed a google calendar in a twinspace pageHow to embed a google calendar in a twinspace page
How to embed a google calendar in a twinspace page
Petros Michailidis
 
I pad setup fave 3 4-13 01
I pad setup fave 3 4-13 01I pad setup fave 3 4-13 01
I pad setup fave 3 4-13 01
sdennis222
 
Kendra Cooper's Resizing Images with Smart Art Tutorial
Kendra Cooper's Resizing Images with Smart Art TutorialKendra Cooper's Resizing Images with Smart Art Tutorial
Kendra Cooper's Resizing Images with Smart Art Tutorial
KendraCooper6
 
Autopilot method
Autopilot methodAutopilot method
Autopilot method
Fartizy
 
Autopilot (1)
Autopilot (1)Autopilot (1)
Autopilot (1)
Marc Taylor
 

What's hot (17)

Print from-kindle-fire
Print from-kindle-firePrint from-kindle-fire
Print from-kindle-fire
 
Autopilot
AutopilotAutopilot
Autopilot
 
Getting started
Getting started Getting started
Getting started
 
How to encrypt emails
How to encrypt emailsHow to encrypt emails
How to encrypt emails
 
Autopilot method $
Autopilot method $Autopilot method $
Autopilot method $
 
Autopilotnew money money $$
Autopilotnew money money $$Autopilotnew money money $$
Autopilotnew money money $$
 
EARN $300 DAILY AUTOPILOT NO INVESTMENT EASY METHOD
EARN $300 DAILY AUTOPILOT NO INVESTMENT EASY METHODEARN $300 DAILY AUTOPILOT NO INVESTMENT EASY METHOD
EARN $300 DAILY AUTOPILOT NO INVESTMENT EASY METHOD
 
Make money without a Investment
Make money without a InvestmentMake money without a Investment
Make money without a Investment
 
Cash Kingdom Autopilot income 2017
Cash Kingdom Autopilot income 2017Cash Kingdom Autopilot income 2017
Cash Kingdom Autopilot income 2017
 
Autopilot
AutopilotAutopilot
Autopilot
 
Como ganar dinero gratis!
Como ganar dinero gratis!Como ganar dinero gratis!
Como ganar dinero gratis!
 
1 computer training 1
1 computer training 11 computer training 1
1 computer training 1
 
How to embed a google calendar in a twinspace page
How to embed a google calendar in a twinspace pageHow to embed a google calendar in a twinspace page
How to embed a google calendar in a twinspace page
 
I pad setup fave 3 4-13 01
I pad setup fave 3 4-13 01I pad setup fave 3 4-13 01
I pad setup fave 3 4-13 01
 
Kendra Cooper's Resizing Images with Smart Art Tutorial
Kendra Cooper's Resizing Images with Smart Art TutorialKendra Cooper's Resizing Images with Smart Art Tutorial
Kendra Cooper's Resizing Images with Smart Art Tutorial
 
Autopilot method
Autopilot methodAutopilot method
Autopilot method
 
Autopilot (1)
Autopilot (1)Autopilot (1)
Autopilot (1)
 

Similar to "Discover windows phone" 03.passing parameters

"Discover windows phone" 05. Application Bar
"Discover windows phone" 05. Application Bar"Discover windows phone" 05. Application Bar
"Discover windows phone" 05. Application Bar
Yasmine Abdelhady
 
Using webblocks for popups in Outsystems Mobile
Using webblocks for popups in Outsystems MobileUsing webblocks for popups in Outsystems Mobile
Using webblocks for popups in Outsystems Mobile
Frank Boldingh
 
Create New Android Activity
Create New Android ActivityCreate New Android Activity
Create New Android Activity
Transpose Solutions Inc
 
Ecommerce Mini Project / Group Project Design
Ecommerce Mini Project / Group Project DesignEcommerce Mini Project / Group Project Design
Ecommerce Mini Project / Group Project Design
Hemant Sarthak
 
There's Apps for that
There's Apps for thatThere's Apps for that
There's Apps for that
Andreas Weder
 
Windows Communication Foundation (WCF) programming using Visual Studio
Windows Communication Foundation (WCF) programming using Visual StudioWindows Communication Foundation (WCF) programming using Visual Studio
Windows Communication Foundation (WCF) programming using Visual Studio
Dharma Raju
 
Girl Scouts Website Designer Badge Seminar - Workbook
Girl Scouts Website Designer Badge Seminar - WorkbookGirl Scouts Website Designer Badge Seminar - Workbook
Girl Scouts Website Designer Badge Seminar - Workbook
Lauren Hayward Schaefer
 
Wireless Wednesdays: Part 2
Wireless Wednesdays: Part 2Wireless Wednesdays: Part 2
Wireless Wednesdays: Part 2
Teamstudio
 
Project BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docx
Project BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docxProject BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docx
Project BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docx
stilliegeorgiana
 
Create yourfirstandroidapppdf
Create yourfirstandroidapppdfCreate yourfirstandroidapppdf
Create yourfirstandroidapppdf
murad3003
 
Easyweb demonstration scenario : What's Easyweb?
Easyweb  demonstration scenario : What's Easyweb?Easyweb  demonstration scenario : What's Easyweb?
Easyweb demonstration scenario : What's Easyweb?
Dong Nguyen
 
3 Working With Templates And NVU.pdf
3 Working With Templates And NVU.pdf3 Working With Templates And NVU.pdf
3 Working With Templates And NVU.pdf
EyosyasWoldekidan2
 
Software engineering modeling lab lectures
Software engineering modeling lab lecturesSoftware engineering modeling lab lectures
Software engineering modeling lab lectures
marwaeng
 
Web services in asp.net
Web services in asp.netWeb services in asp.net
Web services in asp.net
Dharma Raju
 
Web Page Creation
Web Page CreationWeb Page Creation
Web Page Creation
Rastaman05
 
Android application (how to add a splash screen with timer) tutorial #4
Android application (how to add a splash screen with timer) tutorial #4Android application (how to add a splash screen with timer) tutorial #4
Android application (how to add a splash screen with timer) tutorial #4
Yasmine Sherif EL-Adly
 
Exploring iTools
Exploring iToolsExploring iTools
Exploring iTools
www.netgains.org
 
Working with Multiple Application - R.D.Sivakumar
Working with Multiple Application - R.D.SivakumarWorking with Multiple Application - R.D.Sivakumar
Working with Multiple Application - R.D.Sivakumar
Sivakumar R D .
 
Homestead Weather workshop
Homestead Weather workshopHomestead Weather workshop
Homestead Weather workshop
Jean-Louis (JL) Marechaux
 
hopTo Work Step by Step Test Drive
hopTo Work Step by Step Test DrivehopTo Work Step by Step Test Drive
hopTo Work Step by Step Test Drive
hopTo
 

Similar to "Discover windows phone" 03.passing parameters (20)

"Discover windows phone" 05. Application Bar
"Discover windows phone" 05. Application Bar"Discover windows phone" 05. Application Bar
"Discover windows phone" 05. Application Bar
 
Using webblocks for popups in Outsystems Mobile
Using webblocks for popups in Outsystems MobileUsing webblocks for popups in Outsystems Mobile
Using webblocks for popups in Outsystems Mobile
 
Create New Android Activity
Create New Android ActivityCreate New Android Activity
Create New Android Activity
 
Ecommerce Mini Project / Group Project Design
Ecommerce Mini Project / Group Project DesignEcommerce Mini Project / Group Project Design
Ecommerce Mini Project / Group Project Design
 
There's Apps for that
There's Apps for thatThere's Apps for that
There's Apps for that
 
Windows Communication Foundation (WCF) programming using Visual Studio
Windows Communication Foundation (WCF) programming using Visual StudioWindows Communication Foundation (WCF) programming using Visual Studio
Windows Communication Foundation (WCF) programming using Visual Studio
 
Girl Scouts Website Designer Badge Seminar - Workbook
Girl Scouts Website Designer Badge Seminar - WorkbookGirl Scouts Website Designer Badge Seminar - Workbook
Girl Scouts Website Designer Badge Seminar - Workbook
 
Wireless Wednesdays: Part 2
Wireless Wednesdays: Part 2Wireless Wednesdays: Part 2
Wireless Wednesdays: Part 2
 
Project BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docx
Project BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docxProject BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docx
Project BasicsLesson 1© 2014, John Wiley & Sons, Inc.M.docx
 
Create yourfirstandroidapppdf
Create yourfirstandroidapppdfCreate yourfirstandroidapppdf
Create yourfirstandroidapppdf
 
Easyweb demonstration scenario : What's Easyweb?
Easyweb  demonstration scenario : What's Easyweb?Easyweb  demonstration scenario : What's Easyweb?
Easyweb demonstration scenario : What's Easyweb?
 
3 Working With Templates And NVU.pdf
3 Working With Templates And NVU.pdf3 Working With Templates And NVU.pdf
3 Working With Templates And NVU.pdf
 
Software engineering modeling lab lectures
Software engineering modeling lab lecturesSoftware engineering modeling lab lectures
Software engineering modeling lab lectures
 
Web services in asp.net
Web services in asp.netWeb services in asp.net
Web services in asp.net
 
Web Page Creation
Web Page CreationWeb Page Creation
Web Page Creation
 
Android application (how to add a splash screen with timer) tutorial #4
Android application (how to add a splash screen with timer) tutorial #4Android application (how to add a splash screen with timer) tutorial #4
Android application (how to add a splash screen with timer) tutorial #4
 
Exploring iTools
Exploring iToolsExploring iTools
Exploring iTools
 
Working with Multiple Application - R.D.Sivakumar
Working with Multiple Application - R.D.SivakumarWorking with Multiple Application - R.D.Sivakumar
Working with Multiple Application - R.D.Sivakumar
 
Homestead Weather workshop
Homestead Weather workshopHomestead Weather workshop
Homestead Weather workshop
 
hopTo Work Step by Step Test Drive
hopTo Work Step by Step Test DrivehopTo Work Step by Step Test Drive
hopTo Work Step by Step Test Drive
 

Recently uploaded

Opencast Summit 2024 — Opencast @ University of Münster
Opencast Summit 2024 — Opencast @ University of MünsterOpencast Summit 2024 — Opencast @ University of Münster
Opencast Summit 2024 — Opencast @ University of Münster
Matthias Neugebauer
 
Patch Tuesday de julio
Patch Tuesday de julioPatch Tuesday de julio
Patch Tuesday de julio
Ivanti
 
(CISOPlatform Summit & SACON 2024) Gen AI & Deepfake In Overall Security.pdf
(CISOPlatform Summit & SACON 2024) Gen AI & Deepfake In Overall Security.pdf(CISOPlatform Summit & SACON 2024) Gen AI & Deepfake In Overall Security.pdf
(CISOPlatform Summit & SACON 2024) Gen AI & Deepfake In Overall Security.pdf
Priyanka Aash
 
Using LLM Agents with Llama 3, LangGraph and Milvus
Using LLM Agents with Llama 3, LangGraph and MilvusUsing LLM Agents with Llama 3, LangGraph and Milvus
Using LLM Agents with Llama 3, LangGraph and Milvus
Zilliz
 
Vulnerability Management: A Comprehensive Overview
Vulnerability Management: A Comprehensive OverviewVulnerability Management: A Comprehensive Overview
Vulnerability Management: A Comprehensive Overview
Steven Carlson
 
Girls Call Churchgate 9910780858 Provide Best And Top Girl Service And No1 in...
Girls Call Churchgate 9910780858 Provide Best And Top Girl Service And No1 in...Girls Call Churchgate 9910780858 Provide Best And Top Girl Service And No1 in...
Girls Call Churchgate 9910780858 Provide Best And Top Girl Service And No1 in...
maigasapphire
 
What's new in android: jetpack compose 2024
What's new in android: jetpack compose 2024What's new in android: jetpack compose 2024
What's new in android: jetpack compose 2024
Toru Wonyoung Choi
 
High Profile Girls Call ServiCe Hyderabad 0000000000 Tanisha Best High Class ...
High Profile Girls Call ServiCe Hyderabad 0000000000 Tanisha Best High Class ...High Profile Girls Call ServiCe Hyderabad 0000000000 Tanisha Best High Class ...
High Profile Girls Call ServiCe Hyderabad 0000000000 Tanisha Best High Class ...
aslasdfmkhan4750
 
(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...
(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...
(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...
Priyanka Aash
 
Uncharted Together- Navigating AI's New Frontiers in Libraries
Uncharted Together- Navigating AI's New Frontiers in LibrariesUncharted Together- Navigating AI's New Frontiers in Libraries
Uncharted Together- Navigating AI's New Frontiers in Libraries
Brian Pichman
 
Connector Corner: Leveraging Snowflake Integration for Smarter Decision Making
Connector Corner: Leveraging Snowflake Integration for Smarter Decision MakingConnector Corner: Leveraging Snowflake Integration for Smarter Decision Making
Connector Corner: Leveraging Snowflake Integration for Smarter Decision Making
DianaGray10
 
High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...
High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...
High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...
bhumivarma35300
 
Three New Criminal Laws in India 1 July 2024
Three New Criminal Laws in India 1 July 2024Three New Criminal Laws in India 1 July 2024
Three New Criminal Laws in India 1 July 2024
aakash malhotra
 
BLOCKCHAIN TECHNOLOGY - Advantages and Disadvantages
BLOCKCHAIN TECHNOLOGY - Advantages and DisadvantagesBLOCKCHAIN TECHNOLOGY - Advantages and Disadvantages
BLOCKCHAIN TECHNOLOGY - Advantages and Disadvantages
SAI KAILASH R
 
Tailored CRM Software Development for Enhanced Customer Insights
Tailored CRM Software Development for Enhanced Customer InsightsTailored CRM Software Development for Enhanced Customer Insights
Tailored CRM Software Development for Enhanced Customer Insights
SynapseIndia
 
(CISOPlatform Summit & SACON 2024) Digital Personal Data Protection Act.pdf
(CISOPlatform Summit & SACON 2024) Digital Personal Data Protection Act.pdf(CISOPlatform Summit & SACON 2024) Digital Personal Data Protection Act.pdf
(CISOPlatform Summit & SACON 2024) Digital Personal Data Protection Act.pdf
Priyanka Aash
 
Introduction-to-the-IAM-Platform-Implementation-Plan.pptx
Introduction-to-the-IAM-Platform-Implementation-Plan.pptxIntroduction-to-the-IAM-Platform-Implementation-Plan.pptx
Introduction-to-the-IAM-Platform-Implementation-Plan.pptx
313mohammedarshad
 
"Mastering Graphic Design: Essential Tips and Tricks for Beginners and Profes...
"Mastering Graphic Design: Essential Tips and Tricks for Beginners and Profes..."Mastering Graphic Design: Essential Tips and Tricks for Beginners and Profes...
"Mastering Graphic Design: Essential Tips and Tricks for Beginners and Profes...
Anant Gupta
 
Types of Weaving loom machine & it's technology
Types of Weaving loom machine & it's technologyTypes of Weaving loom machine & it's technology
Types of Weaving loom machine & it's technology
ldtexsolbl
 
Premium Girls Call Mumbai 9920725232 Unlimited Short Providing Girls Service ...
Premium Girls Call Mumbai 9920725232 Unlimited Short Providing Girls Service ...Premium Girls Call Mumbai 9920725232 Unlimited Short Providing Girls Service ...
Premium Girls Call Mumbai 9920725232 Unlimited Short Providing Girls Service ...
shanihomely
 

Recently uploaded (20)

Opencast Summit 2024 — Opencast @ University of Münster
Opencast Summit 2024 — Opencast @ University of MünsterOpencast Summit 2024 — Opencast @ University of Münster
Opencast Summit 2024 — Opencast @ University of Münster
 
Patch Tuesday de julio
Patch Tuesday de julioPatch Tuesday de julio
Patch Tuesday de julio
 
(CISOPlatform Summit & SACON 2024) Gen AI & Deepfake In Overall Security.pdf
(CISOPlatform Summit & SACON 2024) Gen AI & Deepfake In Overall Security.pdf(CISOPlatform Summit & SACON 2024) Gen AI & Deepfake In Overall Security.pdf
(CISOPlatform Summit & SACON 2024) Gen AI & Deepfake In Overall Security.pdf
 
Using LLM Agents with Llama 3, LangGraph and Milvus
Using LLM Agents with Llama 3, LangGraph and MilvusUsing LLM Agents with Llama 3, LangGraph and Milvus
Using LLM Agents with Llama 3, LangGraph and Milvus
 
Vulnerability Management: A Comprehensive Overview
Vulnerability Management: A Comprehensive OverviewVulnerability Management: A Comprehensive Overview
Vulnerability Management: A Comprehensive Overview
 
Girls Call Churchgate 9910780858 Provide Best And Top Girl Service And No1 in...
Girls Call Churchgate 9910780858 Provide Best And Top Girl Service And No1 in...Girls Call Churchgate 9910780858 Provide Best And Top Girl Service And No1 in...
Girls Call Churchgate 9910780858 Provide Best And Top Girl Service And No1 in...
 
What's new in android: jetpack compose 2024
What's new in android: jetpack compose 2024What's new in android: jetpack compose 2024
What's new in android: jetpack compose 2024
 
High Profile Girls Call ServiCe Hyderabad 0000000000 Tanisha Best High Class ...
High Profile Girls Call ServiCe Hyderabad 0000000000 Tanisha Best High Class ...High Profile Girls Call ServiCe Hyderabad 0000000000 Tanisha Best High Class ...
High Profile Girls Call ServiCe Hyderabad 0000000000 Tanisha Best High Class ...
 
(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...
(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...
(CISOPlatform Summit & SACON 2024) Keynote _ Power Digital Identities With AI...
 
Uncharted Together- Navigating AI's New Frontiers in Libraries
Uncharted Together- Navigating AI's New Frontiers in LibrariesUncharted Together- Navigating AI's New Frontiers in Libraries
Uncharted Together- Navigating AI's New Frontiers in Libraries
 
Connector Corner: Leveraging Snowflake Integration for Smarter Decision Making
Connector Corner: Leveraging Snowflake Integration for Smarter Decision MakingConnector Corner: Leveraging Snowflake Integration for Smarter Decision Making
Connector Corner: Leveraging Snowflake Integration for Smarter Decision Making
 
High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...
High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...
High Profile Girls call Service Pune 000XX00000 Provide Best And Top Girl Ser...
 
Three New Criminal Laws in India 1 July 2024
Three New Criminal Laws in India 1 July 2024Three New Criminal Laws in India 1 July 2024
Three New Criminal Laws in India 1 July 2024
 
BLOCKCHAIN TECHNOLOGY - Advantages and Disadvantages
BLOCKCHAIN TECHNOLOGY - Advantages and DisadvantagesBLOCKCHAIN TECHNOLOGY - Advantages and Disadvantages
BLOCKCHAIN TECHNOLOGY - Advantages and Disadvantages
 
Tailored CRM Software Development for Enhanced Customer Insights
Tailored CRM Software Development for Enhanced Customer InsightsTailored CRM Software Development for Enhanced Customer Insights
Tailored CRM Software Development for Enhanced Customer Insights
 
(CISOPlatform Summit & SACON 2024) Digital Personal Data Protection Act.pdf
(CISOPlatform Summit & SACON 2024) Digital Personal Data Protection Act.pdf(CISOPlatform Summit & SACON 2024) Digital Personal Data Protection Act.pdf
(CISOPlatform Summit & SACON 2024) Digital Personal Data Protection Act.pdf
 
Introduction-to-the-IAM-Platform-Implementation-Plan.pptx
Introduction-to-the-IAM-Platform-Implementation-Plan.pptxIntroduction-to-the-IAM-Platform-Implementation-Plan.pptx
Introduction-to-the-IAM-Platform-Implementation-Plan.pptx
 
"Mastering Graphic Design: Essential Tips and Tricks for Beginners and Profes...
"Mastering Graphic Design: Essential Tips and Tricks for Beginners and Profes..."Mastering Graphic Design: Essential Tips and Tricks for Beginners and Profes...
"Mastering Graphic Design: Essential Tips and Tricks for Beginners and Profes...
 
Types of Weaving loom machine & it's technology
Types of Weaving loom machine & it's technologyTypes of Weaving loom machine & it's technology
Types of Weaving loom machine & it's technology
 
Premium Girls Call Mumbai 9920725232 Unlimited Short Providing Girls Service ...
Premium Girls Call Mumbai 9920725232 Unlimited Short Providing Girls Service ...Premium Girls Call Mumbai 9920725232 Unlimited Short Providing Girls Service ...
Premium Girls Call Mumbai 9920725232 Unlimited Short Providing Girls Service ...
 

"Discover windows phone" 03.passing parameters

  • 1. “Discover Windows Phone” development series 03. Passing Parameters Yasmine Abdelhady @yasabdelhady Yasmine.Abdelhady@Hotmail.com © Yasmine Abdelhady| MEA DPE Intern
  • 2. Agenda © Yasmine Abdelhady| MEA DPE Intern  Passing Parameters while Navigating to another page.
  • 3.  Let's say that you want to merge Meals.xaml and Beverages.xaml in the same page, since they do the same functionality but only display different content. You can also merge the two event handlers of the button since they're also similar. Let's start step by step. © Yasmine Abdelhady| MEA DPE Intern
  • 4. How to do this? © Yasmine Abdelhady| MEA DPE Intern  We have multiple pages, and we want to give the user a way to get between them. Let's build a simple navigation UI that will allow us to do just that.
  • 5.  1) Open the application we created together through the previous couple of posts. 2) From the Solution Explorer, delete Beverages.xaml and Meals.xaml 3) Create a new page by right clicking the project>Add>New Item>Windows Phone Portrait Page and name it Menu.xaml © Yasmine Abdelhady| MEA DPE Intern
  • 6. 4) In Mainpage.xaml, change the event handler functionof both buttons to button_click, as shown in the picture © Yasmine Abdelhady| MEA DPE Intern
  • 7. 5) In MainPage.xaml.cs, delete the old two event handler functions, which were button_meals_click and button_beverages_click and add a new function button_click as shown in the picture © Yasmine Abdelhady| MEA DPE Intern
  • 8. 6) Go to Menu.xaml.cs, where the parameter that was passed to from MainPage.xaml.cs. Add to the OnNavigatedTo, if it is not there add it. © Yasmine Abdelhady| MEA DPE Intern