There is often a necessity to confirm some operations performed by a user, for example, removing an item or placing an order. There are various ways to do this, such as using an additional message dialog. In this recipe, you will learn how to present a message dialog after pressing the Delete button and how to handle the event of choosing an option presented in this dialog.
To step through this recipe, you only need the automatically generated project.
To prepare an example that shows how to present a message dialog and handle the event of choosing an option shown within it, perform the following steps:
MainPage.xamlfile as follows: ...