1 / 17

Understanding WPF: Building User Interfaces in .NET with Windows Presentation Foundation

This guide delves into user interface technologies within .NET, particularly focusing on Windows Presentation Foundation (WPF). It covers practical aspects like layout, controls, data binding, and navigation. Discover how WPF unifies forms, graphics, and media to enhance user interaction. Learn essential design principles, tools, and best practices, including how to incorporate WPF into existing WinForms applications. Whether you're migrating to WPF or starting anew, this resource is invaluable for optimizing your application's user experience.

chaka
Télécharger la présentation

Understanding WPF: Building User Interfaces in .NET with Windows Presentation Foundation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ivan Towlson Mindscape Building User Interfaces in .NET with Windows Presentation Foundation

  2. Agenda • User interface technologies in .NET • WPF tiki tour • Practicalities

  3. User Interface Options in .NET • Windows Forms • ASP.NET • GDI+ • Rich documents (HTML, Adobe Reader) • Media • Windows Presentation Foundation • Silverlight

  4. What is WPF? • Umbrella framework for getting input from, or getting output to, users • Unifies forms, graphics (2D and 3D), documents and media • Take advantage of graphics cards even in normal applications • First-class support for markup

  5. Tiki Tour of WPF • XAML • Layout • Controls • Commands and events • Styles and templates • Data binding • Animation • Navigation

  6. Layout • The death of absolute positioning • Panels and documents • What are X, Dock and Row properties of?

  7. Controls and Visuals • Content models • Graphics • Transforms and animation

  8. Styles and Templates • Control = Behaviour + Rendering • Rendering = Visual Tree + Style • Custom controls vs. control templates

  9. Data Binding • Binding to a data object • Binding to a collection • Binding to other controls • The awesome power of a fully operational data template

  10. Events and Commands • Routed events and the tunnel/bubble model • Built-in commands • Custom commands

  11. Application Models • Window applications • Navigation applications • Navigation, XBAP and the browser • Structured navigation

  12. With great power...

  13. Practicalities • Interoperability and migration • Design issues – best practices, how do we structure WPF programs, etc. • Tools • Is WPF right for my project?

  14. Migration • Adding WPF UI to a WinForms/Win32 application • Reusing WinForms/Win32 UI in a WPF application

  15. Tools • Visual Studio 2005 via add-in • Visual Studio 2008 • Expression Blend • ZAM 3D and other third-party tools

  16. Should I Use WPF? • Development considerations: documentation, tools, third-party / community support • Project management considerations: availability of developers, skill levels required • Deployment considerations: OS, rollout, perf • WPF has a huge payoff in terms of productivity and especially in making it simple to step up from “GUI green screens” to visualisation

  17. Thanks! • Sells & Griffiths, “Programming WPF” 2e • Petzold, “Applications = Code + Markup” • Nathan, “WPF Unleashed” • Anderson, “Essential WPF” ivan@mindscape.co.nz http://www.mindscape.co.nz ivan@hestia.cc http://hestia.typepad.com/flatlander

More Related