Cover page by Rebecca M. Riordan

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

22. WPF Binding

In the last chapter we used the TemplateBinding markup extension to set values in a control template to the values of the public properties of the object. In general, “binding” simply means that the value of a property is retrieved from someplace else, and when you’re working in WPF, the dependency property system does most of the work for you. You tell WPF what you want it to do, either in XAML or code, and it handles the how.

Template bindings are a particular case of binding. WPF provides a general mechanism through the Binding object and the {Binding} markup extension. You can bind the value of a dependency property to any .NET object, and you can manipulate the binding in pretty much any way you need to.

In this chapter we’ll ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required