Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.
-
Upload
imogene-walsh -
Category
Documents
-
view
215 -
download
0
Transcript of Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.
![Page 1: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/1.jpg)
Discover, Master, Influence 1
Windows Presentation FoundationDavid Burela
Senior Developer, Readify
![Page 2: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/2.jpg)
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
![Page 3: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/3.jpg)
Basics
• Built on top of DirectX• Windows Presentation Foundation
– Controls– Data binding– Layout– 2-D and 3-D graphics– Animation– Styles– Templates– Media– Documents, typography
![Page 4: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/4.jpg)
Separating things
XAML C#
Programmer
Retrieving dataSubmitting resultsResponding to events…
Designer
Look and feelWiring controls to methodsAnimationStyle...
![Page 5: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/5.jpg)
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
![Page 6: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/6.jpg)
USING XAML TO DEFINE UIDemo
![Page 7: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/7.jpg)
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
![Page 8: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/8.jpg)
ANIMATION WITH EXPRESSION BLEND
Demo
![Page 9: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/9.jpg)
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
![Page 10: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/10.jpg)
STYLESDemo
![Page 11: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/11.jpg)
DataBinding
• Similar to Winforms and ASP.Net databinding• Databind datasources to controls
– Automatically populate controls with data– Automatic refreshing
• No DataGrid control to databind collections to
• DataTemplate tells data how to display itself
![Page 12: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/12.jpg)
DATABINDINGDemo
![Page 13: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/13.jpg)
SHINY THINGSDemo
![Page 14: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/14.jpg)
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
![Page 15: Discover, Master, Influence1 Windows Presentation Foundation David Burela Senior Developer, Readify.](https://reader035.fdocuments.us/reader035/viewer/2022062721/56649f1c5503460f94c31f06/html5/thumbnails/15.jpg)
Discover, Master, Influence 15
A Readify Developer Network sessionBy David Burela, Senior Developer, Readify
Email Address: [email protected] on Blog: http://DavidBurela.wordpress.com