Apart from adding controls to the page, it is necessary to introduce interaction with them, such as performing some actions after clicking on a button or choosing an item from a drop-down list. In this recipe, you will learn how to handle the event of pressing the button.
To use this recipe, you need the project from the previous recipe. It should contain the
MainPage.xaml file with the added button.
To handle the
Click event, you need to perform the following steps:
MainPage.xamlfile in the Solution Explorer window.