O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding icons to app bars

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.

Getting ready

To step through this recipe, you only need the automatically generated project.

How to do it...

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:

  1. To add a bottom app bar with three icons, modify the content ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required