1 / 15

Windows Presentation Foundation David Burela Senior Developer, Readify

Learn about Windows Presentation Foundation (WPF), one of the 4 pillars of .NET 3.0 and Microsoft's latest rendering technology for creating rich client applications. Discover the basics, separating things with XAML, wiring controls to methods, animation, styles, data binding, and more.

tkendrick
Download Presentation

Windows Presentation Foundation David Burela Senior Developer, Readify

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 David Burela Senior Developer, Readify

  2. What is WPF? • Stands for Windows Presentation Foundation • One of the 4 pillars of .NET 3.0 • Microsoft’s latest rendering technology for creating rich client applications

  3. Basics • Built on top of DirectX • Windows PresentationFoundation • Controls • Data binding • Layout • 2-D and 3-D graphics • Animation • Styles • Templates • Media • Documents, typography

  4. Separating things XAML C# Designer Look and feel Wiring controls to methods Animation Style ... Programmer Retrieving data Submitting results Responding to events …

  5. Controls • Standard (Button, TextBox, etc.) • Media element - embedded movies/streaming movies • Layout • Controls can be nested • NO DataGrid! (initially) • DataTemplates are a much nicer way to display data

  6. Demo Using XAML to Define UI

  7. Animation • Declarative animation • Almost any property that can be set can be animated • Height, position, background colour • Size/rotation/colour • Can be animated easily using Expression blend

  8. Demo Animation with expression blend

  9. Styles • Used to set the property of more than one element • Can theme an entire application • Define button styles, list styles, etc. • Similar to CSS • Inheritance (Extending styles) • Default style vs. explicit style setting

  10. Demo Styles

  11. DataBinding • Similar to Winforms and ASP.Netdatabinding • Databinddatasources to controls • Automatically populate controls with data • Automatic refreshing • No DataGrid control to databind collections to • DataTemplate tells data how to display itself

  12. Demo DataBinding

  13. Demo Shiny things

  14. Silverlight • WPF • Requires windows PC with full .Net 3.5 SP1 runtime • Silverlight • Subset of WPF • Only requires a 4mb installer • PC, Mac& Linux • IE, Firefox, Opera, Safari, Chrome

  15. A Readify Developer Network session By David Burela, Senior Developer, Readify Email Address: David.Burela@readify.net Resources on Blog: http://DavidBurela.wordpress.com

More Related