A Tour of Windows Presentation Foundation (WPF)
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

A Tour of Windows Presentation Foundation (WPF)

  • 1,640 views
Uploaded on

MikeTaulty_Wpf

MikeTaulty_Wpf

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,640
On Slideshare
1,634
From Embeds
6
Number of Embeds
3

Actions

Shares
Downloads
73
Comments
0
Likes
0

Embeds 6

http://blogs.msdn.com 3
http://www.slideshare.net 2
http://www.marcmywords.org 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • 06/07/09 01:40 © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Transcript

  • 1. A tour of Windows Presentation Foundation Mike Taulty Developer & Platform Group Microsoft Ltd [email_address] http://www.miketaulty.com
  • 2. WPF is a framework for rich apps
  • 3. applications built with WPF
  • 4. built in .NET on top of Direct3D *this makes graphics cards significant to the performance of the application managed unmanaged
  • 5. there are 3 public versions 2006 w/Vista 2007 w/VS 2008 2008 w/VS 2008 Sp1 Windows XP Service Pack 2+ Windows Vista Windows 7
  • 6. it provides a unified framework Vector Drawn H/W Accelerated Retained Graphics Logical Pixels Layout Composition Databinding Animation Transformation Effects
  • 7. development makes use of XAML
    • eXtensible Application Markup Language
    • Provides separation of concerns for UI/code
    • Drives tooling for designer/developer workflow
    • Load dynamically or compile with code
    • Extensible to your own types
  • 8. XAML is often “backed” by code XAML markup language defines UI .NET code handles interaction WPF .NET Application
  • 9. tooling for WPF in 2008 Develop with Visual Studio 2008 Sp1 Design Styles & Interaction in Expression Blend 2 Sp1
  • 10. “ Hello World” in WPF
  • 11. rich set of 2D graphical capabilities
  • 12. 2D Graphics in WPF
  • 13. extensible facilities for layout
  • 14. layout in WPF
  • 15. rich set of 3D graphical capabilities
  • 16. 3D Graphics in WPF
  • 17. rich set of media capabilities
  • 18. media in WPF
  • 19. capabilities for documents & text
  • 20. documents/text in WPF
  • 21. rich set of controls
    • CodePlex adds
      • WPF Toolkit
        • DataGrid
        • Calendar
        • DatePicker
      • WPF Ribbon
      • WPF Futures with more
  • 22. many controls are content controls
  • 23. content controls in WPF
  • 24. controls have visual templates
    • Separation of control behaviour from control appearance
  • 25. templating a control
  • 26. you can build your own controls
    • UserControl for composition of controls
    • Panel for custom layout
    • Control for ultimate flexibility incl. templating
  • 27. or look to 3 rd parties
  • 28. 3 rd party WPF controls
  • 29. a unified framework all with the same, consistent programming model
  • 30. a unified framework
  • 31. resources and styles
    • Elements have a dictionary of resources identified by Key
    • Resources from various files can be merged into one
    • Resolution of a resource is a hierarchical lookup
    • Styles contain setters for Properties and Values
    • Styles can be applied by type or by key
    • Styles can derived from other styles
    resources styles
  • 32. resources and styles
  • 33. built-in animation system
    • Animation is driven by Storyboards
    Storyboard DoubleAnimation ColorAnimation etc PointAnimation
  • 34. built-in triggering system
    • Declarative means of taking action when something happens
    When some property hits some value When some data hits some value When some event happens
  • 35. animations & triggers
  • 36. databinding is core in WPF
    • Elements have a DataContext
    • Resolution of declarative bindings is done by hierarchically examining an element’s DataContext
    Button Grid
  • 37. databinding is core in WPF
  • 38. databinding
  • 39. deploying WPF applications XAML Browser Application (XBAP) ClickOnce Application Full Client
  • 40. if we had a day...more topics *there are no doubt many more topics we’ve omitted 
  • 41. more WPF?
  • 42. © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.