O'Reilly logo

Mastering Windows 8 C++ App Development by Pavel Yosifovich

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

Custom control templates

In Chapter 4, Layout, Elements, and Controls, we discussed various elements and controls provided by WinRT. Customizing the appearance of elements and controls can be done using the following levels (from simple to complex). Of course, not all elements/controls support all levels:

  • Change property values; by far the simplest customizations are achieved by changing properties. Common examples are the font-related properties (FontSize, FontFamily, and so on), Foreground and Background, and many others.
  • For content controls (those deriving from ContentControl), the Content property can be set to any element, as complex as required. For example, this can make a Button show images, text, and anything else that's required, while ...

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