90 likes | 225 Vues
Discover the next-generation user interaction API in Windows, WPF (Windows Presentation Foundation), which unifies graphics, controls, media, and documents. This session delves into core data binding concepts, demonstrating how to work with lists and hierarchies effectively. Explore the power of dependency properties, converters, templates, and how they enhance data binding. Learn to think of data binding as a document-view relationship rather than merely a technical process. Join us to master the art of binding and elevate your applications with WPF's rich content capabilities.
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