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

Summary

Components are the backbone of module re-use. True WinRT components use WinRT types only and so can be exported to any WinRT-compatible environment, such as C++/CX, .NET, and JavaScript.

Control templates provide the ultimate control customization mechanism that can be done in XAML alone, with little or no code (code may be needed if value converters are used). Templates are appropriate if the control's appearance needs to change, but its functionality should remain intact, and is what's needed.

Custom and user controls are used when new functionality is needed that is not provided by any built-in control. By deriving from UserControl and Control, dependency properties and events can be added to create a new reusable control.

User controls ...

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