1 / 20

Windows Presentation Foundation (WPF)

Windows Presentation Foundation (WPF). Marcus Perryman http://blogs.msdn.com/marcpe mailto:marcus.perryman@microsoft.com. What’s Windows Presentation Foundation?. Visually stunning user interfaces Themes Unified programming model Declarative programming Integrated designer tools. Agenda.

nani
Download Presentation

Windows Presentation Foundation (WPF)

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. Windows Presentation Foundation (WPF) Marcus Perryman http://blogs.msdn.com/marcpe mailto:marcus.perryman@microsoft.com

  2. What’s Windows Presentation Foundation? • Visually stunning user interfaces • Themes • Unified programming model • Declarative programming • Integrated designer tools

  3. Agenda • What is Windows Presentation Foundation? • What can it do? • How can I make it do that? • Ok, so how did you build the Nugget Viewer?

  4. What’s Windows Presentation Foundation? • Next generation presentation subsystem for Windows • Unified programming model • Harness the power of new graphics hardware • Provide designers direct input into project development Enables developers and designers to create visually stunning user interfaces

  5. DirectX HTML HTML GDI+ Win Forms Word GDI Web Forms PDF MFC VB Forms Media Player WPF: Programming Model Unification Unified WPF API Documents User Interface Media

  6. WPF: Using the Hardware • Vector-based composition engine uses the PC’s graphics power • Quality is preserved with scale • CPU freed from graphics work • Gain capability from graphics card advances

  7. WPF: Common Design Language • Declarative design model links designers and developers

  8. Direct 3D USER32 WPF Architectural Sketch PresentationFramework PresentationCore Composition Engine

  9. My First WPF Application Demo WinFX Feb CTP

  10. Compile and Run Load, Parse, Display 0101010 0101010 BAML Parse Load, Display <Button Width="100"> OK <Button.Background> LightBlue </Button.Background> </Button> Button b1 = new Button(); b1.Content = "OK"; b1.Background = new SolidColorBrush(Colors.LightBlue); b1.Width = 100; XAML or Code?

  11. Class Compile and Run Partial Class Public Button b1; Public Button b2; Load (“My.Baml”) 0101010 0101010 My.Baml <Button Width="100"> OK <Button.Background> LightBlue </Button.Background> </Button> Button b1 = new Button(); b1.Content = "OK"; b1.Background = new SolidColorBrush(Colors.LightBlue); b1.Width = 100; Parse & Generate XAML or Code? ‘Code Behind’

  12. Adding WPF to Existing WinForms Applications Demo WinFX Feb CTP

  13. What Can It Do? Text Animation 3D Data Binding • Drawing • Painting • Controls • Layout • Document interface

  14. WPF Capabilities Demo WinFX Feb CTP

  15. How Can I Make It Do That?Tools for Building WPF Applications • Edit XAML directly in your favourite text editor (e.g. notepad) • It’s verbose and has strict semantics • Tricky to get the settings right • Developers: • Visual Studio 2005 with ‘WinFX’ extension • Windows SDK and XamlPad application • Designers / Developers: • Microsoft Expression Interactive Designer (Sparkle) • 3rd Party tools like Electric Rain’s Zam3D

  16. Design Tools Demo WinFX Feb CTP Expression ID March CTP

  17. Roadshow Nugget Viewer • Using Templates • Databinding • Using 3D effects • Interacting with code • Using the object model

  18. Building the Nugget Viewer Demo WinFX Feb CTP Expression ID March CTP

  19. Where Next? WPF http://msdn.microsoft.com/winfx/reference/presentation WinFX http://msdn.microsoft.com/winfx http://www.roadtowinfx.com

  20. © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only.MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.

More Related