12. XAML Binding
If you were to ask me what sets XAML apart from other UI platforms, my answer would be templates and data binding. Of course, dependency properties and resources add useful functionality in their own right, but in my universe, they primarily exist to make templates and binding possible.
We explored control templates in the last chapter, and I hope you agree that they’re a vast improvement over having to perform low-level graphic manipulations when you need to change the visual appearance and visual behavior—but not the basic functionality—of a control. We’ve also seen two examples of binding. We used the TemplateBinding
in building our control templates, and I gave you an example of an element binding back in Chapter 10 when ...
Get Fluent Windows® 8.1 App Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.