90 likes | 215 Views
Ivan Towlson ECN Group. Your Data, Your Way Data Binding in the Windows Presentation Foundation. Preamble – WPF WTF?. The next-generation user interaction API for Windows Unifies graphics, forms/controls, media, documents and markup Graphical objects, not procedural drawing
E N D
Ivan Towlson ECN Group Your Data, Your WayData Binding in the Windows Presentation Foundation
Preamble – WPF WTF? • The next-generation user interaction API for Windows • Unifies graphics, forms/controls, media, documents and markup • Graphical objects, not procedural drawing • Built into Vista, part of .NET 3.0 download for XP
Agenda • Motivation and background • Core data binding concepts • Lists and hierarchies • Tips, tricks and toys
Dependency Properties This is where databinding happens
Summary • Don’t think of it as data binding – think of it as document-view • Converters and templates reusably encapsulate mappings, renderings and editors • The true power is in the WPF content model and in declarative styles, triggers, etc. – data binding is the way to plug your models into that power • Data + converters/templates + rich content = ...
Thanks! • Resources: • Books: Petzold, Nathan, Anderson, Sells & Griffiths 2e • Web: www.beacosta.com, sessions.visitmix.com (check out the session videos for XB003 comics and XBD05 supply chain visualisation) ivan@hestia.cc http://hestia.typepad.com/flatlander ivan.towlson@ecngroup.co.nz http://www.ecngroup.co.nz