-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Windows Application Development Cookbook
By :
If you want to allow the user to have quick access to some useful operations, you can equip the page with either the top or bottom app bar. Such bars are collapsed by default, but they can be easily expanded by the user by clicking on them. In this recipe, you will learn how to add icons to both the top and bottom app bars, as well as how to handle the scenario of pressing particular icons.
To step through this recipe, you only need the automatically generated project.
To prepare an example that shows how to add either top or bottom app bar and handle an event of clicking on icons located within an app bar, perform the following steps:
To add a bottom app bar with three icons, modify the content of the MainPage.xaml file as follows:
<Page (...) Background="Black">
<Grid Padding="20" Background="White">
<TextBlock
Text="Exemplary page that contains an...