Here we are learning how to navigate in a basic two page peer-to-peer Universal Windows Platform app.
Step 1: Open a blank app with a TextBlock, Textbox and Button either from the toolbox or by copying the following XAML code into your grid. Also add a new page named newPage with a TextBlock.
Our app navigates between two pages, but it really doesn't do anything interesting yet. Often, when an app has multiple pages, the pages need to share information. Let's pass some information from the first page to the second page.
Step 2: Copy and paste the following code to the cs page which will be called on button clicking event and will pad the data along while navigating to our MainPage
Step 3: Copy and paste the following code to the newPage by overriding OnNavigatedTo event.
Step 4: Run your application and test yourself.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: