Session seven Builders & Developers workshop MSTC`15

Post on 06-Aug-2015

126 views 1 download

Tags:

transcript

Builders & Developers WorkshopSession 7

Prepared & Presented By:Moatasim Magdy

Agenda• How to use shared.• Navigation.• Command Bar.• App Bar.

How to use shared part in your code?

Steps• Right Click on shared part• Add• New Item• Class• Give a name to the class• Start implementing your functions then call it in you windows or

windows phone C# page.

Navigation• What if I want to make more than one page in my Application ?• How to do that ?

Steps to make a new page:

• Right click on your part in code ( Windows or Windows phone ).• Add.• New Item.• Blank Page.• Give name to the page.

Add this XAML code To Main Page

Add this XAML code to the new Page

• First to the one in the main page.

• Then to the one in new page

Add this C# code to the two hyper links

Command Bar• First add this to XAML code

Then add any function you want in C#

App Bar

Output

• /moatasim.magdy

• mo3tasim_94@hotmail.com