Share via


UWP: How to print text in TextBlock from TextBox in Applications

Step 1

Creat project and open MainPage.xaml .

Step 2

Drag and drop 1 TextBox 1 TextBlock and 1 Button from Toolbox to Grid and resize

it how much you want .

 

http://4.bp.blogspot.com/-R_X5PgcWCqg/Vlaypz-fQ9I/AAAAAAAAAC0/4aQnFjc4LBM/s1600/1.PNG  

Step 3

Double click on Button and it will bring you in MainPage.xaml.cs .

Step 4

Type this code in MainPage.xaml.cs and run the project .

http://2.bp.blogspot.com/-mbW0aVL1vbk/Vlay8Oq7UgI/AAAAAAAAAC8/XLr_8Ku5tC4/s1600/3.PNG

Step 5 

 

Here will be the the output of your project .

 

http://2.bp.blogspot.com/--JOu5GS01dU/Vla0HgU3UAI/AAAAAAAAADQ/Fu0c1CgHYa0/s1600/5.PNG