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

Defining a global style

Page-limited styles are a powerful mechanism to design the various elements on the page consistently. However, what should you do to make the whole application consistent? Do you need to copy such styles to all the pages? Absolutely not, because you can move the definition of styles to the App.xaml file to use them in the whole application. You will learn how to do it in this recipe.

As an example, you will create a simple menu page with a few buttons, such as Dashboard, News, and Gallery. To make the design consistent across the whole application, all buttons should have the same appearance specified by the global style.

Getting ready

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

How to do ...

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