Navigating data from one page to other page

This articles is about navigation from one page to other and sending data from one page to another. 

There is very simple method for the navigation. First i have created a button on a page and under that code a navigation code is written that on run time pass focus from one page to other. That page is added in the solution explorer. Apart from that a class is made where the properties methods are written.  When the information is passed from the button within the navigation code in the form of string values they are assigned to the variables in the class and that will be there until the application is closed. 

Here i have added a button that will navigate from one page to other.



This is the code that is written for navigation. you can see that after the question mark sign you can see the text values that will further be assigned. 



Here is another sample class data. Where the variable are assigned properties. That will be used in the code below. 


This is the navigation code on loading page this method will run and after that the two textblock will be assigned the values . As you can see.


Here is the result of the code. I hope it's easy and understandable to you. 



Comments

Popular posts from this blog

How to move an object in Unity 3D

Input.Getaxis, OnMouseDown, GetComponent< > - Unity Scripts

Vector Math - Unity