Skip to Main Content
Fluent Visual Basic®
book

Fluent Visual Basic®

by Rebecca M. Riordan
October 2011
Intermediate to advanced content levelIntermediate to advanced
880 pages
14h 44m
English
Sams
Content preview from Fluent Visual Basic®

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Visual Basic® 2012 How to Program, Sixth Edition

Visual Basic® 2012 How to Program, Sixth Edition

Paul Deitel, Abbey Deitel
Microsoft® Visual Basic® 2010 Developer’s Handbook

Microsoft® Visual Basic® 2010 Developer’s Handbook

Klaus Löffelmann and Sarika Calla Purohit

Publisher Resources

ISBN: 9780132900577Purchase book