Download - Windows Presentation Foundation
![Page 1: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/1.jpg)
WPF Presentation
www.otssolutions.com
![Page 2: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/2.jpg)
Windows Presentation Foundation (WPF)
![Page 3: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/3.jpg)
Agenda
What is Windows Presentation Foundation What can it do Why Use WPF How can I make it do that Advantages of WPF Disadvantages of WPF.
![Page 4: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/4.jpg)
1 Overview
![Page 5: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/5.jpg)
Separation of Appearance and BehaviorRich compositionHighly customizableResolution independence
Overview
![Page 6: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/6.jpg)
2 Architecture of WPF
![Page 7: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/7.jpg)
Architecture of WPF
![Page 8: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/8.jpg)
3 Main Features of WPF
![Page 9: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/9.jpg)
Main Features of WPF
![Page 10: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/10.jpg)
4 What’s Windows Presentation Foundation?
![Page 11: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/11.jpg)
The Windows Presentation Foundation is Microsoft’s next generation UI framework to create applications with a rich user experience. It is part of the .NET framework 3.0 and higher.
WPF combines application UIs, 2D graphics, 3D graphics, documents and multimedia into one single framework.
Its vector based rendering engine uses hardware acceleration of modern graphic cards. This makes the UI faster, scalable and resolution independent.
What’s Windows Presentation Foundation?
![Page 12: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/12.jpg)
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
What’s Windows Presentation Foundation?
![Page 13: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/13.jpg)
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
![Page 14: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/14.jpg)
5 What type of Applications can be built
![Page 15: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/15.jpg)
WPF intended to replace both webforms and windows forms – apps can be built to run in a browser or a standalone window
Windows forms and WPF pages/windows can co-exist in the same application
One WPF page/window can have both types of controls on it
A new type of web application called XAML Browser Application XBAP (formerly Web Browser Application WBA)
What type of Applications can be built
![Page 16: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/16.jpg)
What do the applications look like
WPF intended to replace both webforms and windows forms – apps can be built to run in a browser or a standalone window
Windows forms and WPF pages/windows can co-exist in the same application
One WPF page/window can have both types of controls on it
A new type of web application called XAML Browser Application XBAP (formerly Web Browser Application WBA)
![Page 17: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/17.jpg)
6 Why use WPF?
![Page 18: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/18.jpg)
WPF is an especially great platform to use if your
applications involve various media types.If you need to incorporate video, or documents, 3D content and animated transitions between a sequence of images, or a combination of any of the above.
WPF is also great if you need to create a skinned user interface, or if you need to bind to XML data, or dynamically load portions of a user interface from a Web service, or want to create a desktop application with a Web-like navigation style.
Why use WPF?
![Page 19: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/19.jpg)
7How can I make it to do that?
![Page 20: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/20.jpg)
XAML = Extensible Application Markup Language
•Easily toolable, declarative markup•Code and content are separate•Can be rendered in the browser / standalone
application
<Button Width="100"> OK <Button.Background> LightBlue </Button.Background></Button>
XAML
Button b1 = new Button();b1.Content = "OK";b1.Background = new SolidColorBrush(Colors.LightBlue);b1.Width = 100;
C#
Dim b1 As New Buttonb1.Content = "OK"b1.Background = New _ SolidColorBrush(Colors.LightBlue)b1.Width = 100
VB.NET
How can I make it do that?
![Page 21: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/21.jpg)
8 Advantages of WPF?
![Page 22: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/22.jpg)
The ability to make very rich UIs relatively easily. Easier animation and special effects Inherent scalability WPF builds on DirectX rather than WinAPI,
harnessing the power of the client computer's graphics system thus giving much greater graphic rendering power
WPF uses a vector graphics system which means UIs are completely re-sizeable without loss of quality
WPF supports flow document model that gives a 'desktop publishing' quality of layout
Supports ‘rich data visualisation’
Advantages of WPF?
![Page 23: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/23.jpg)
9 Disadvantages of WPF?
![Page 24: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/24.jpg)
WPF will not run on windows 2000 or lower.
WPF's in-box control suite is far more limited than that of WinForms.
Disadvantages of WPF?
![Page 25: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/25.jpg)
10
WPF Summary
![Page 26: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/26.jpg)
Deliver Innovative User Experiences
Increase Developer-Designer Productivity
Achieve Flexible Application Deployment
Leverage Existing Code Base & Skill Set
WPF Summary
![Page 27: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/27.jpg)
WPF Resources
WPF @ Windows Vista Developer Centerhttp://msdn.microsoft.com/windowsvista/building/presentation/
WPF/.NET Framework 3.0 Community Site
Microsoft Expressionwww.microsoft.com/expression
![Page 28: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/28.jpg)
Thank You
![Page 29: Windows Presentation Foundation](https://reader036.vdocuments.net/reader036/viewer/2022062513/5561e791d8b42ab1068b4fe3/html5/thumbnails/29.jpg)
http://www.otssolutions.com/
India Gurgaon ( Haryana ) 795, Udyog Vihar, Phase-V Gurgaon(Haryana) India Ph: +91 124 4101350 +91 124 4748100Write to us at: [email protected]
United kingdom88 Wood Street 10th Floor London EC2V 7RSPh: +44 208 099 1660
Write to us at: [email protected]
USA 4433 Merlin Way , Soquel CA 95073United StatesPh: +1 408 540 0001
Write to us at: [email protected]