Title: Windows Presentation Foundation-WPF-Development
1Windows Presentation Foundation
- Next Generation User Experience
info_at_anubavam.com
2Introduction to WPF
- Microsoft based UI framework
- Graphical subsystem for rendering user interfaces
in Winforms. - WPF, previously known as "Avalon"
- WPF is essentially an alternative method for
developing Windows based applications.
3Introduction to WPF (Continued)
- Designed to remove dependencies on the aging
Graphics Device Interface(GDI) subsystem, WPF is
built on DirectX, which provides hardware
acceleration and enables modern UI features.
e.g.- Transparency, Gradients and Transforms.
4Introduction to WPF(Continued)
- WPF provides a consistent programming model for
building applications and provides a clear
separation between the user interface and the
business logic.
5Technology Evolution
Windows API
MFC Microsoft Foundation Class Library
Windows Forms
Windows Presentation Foundation
6Advantages of WPF
- Effective use of Graphics card. Highly suitable
for high end /upcoming computers - Built in Animation controls
- Supports most of the media/document formats
natively - XAML(Designer and developer can work
independently) - Silverlight (WPF/e)
7Disadvantages of WPF
- WPF will not run on windows 2000 or lower.
- It is Missing some controls which are available
Windows Forms - e.g. - DataGridView and PropertyGrid
- Very little help documents
- Very designer orientated
8 WPF VS WinForms Development
- WPF provides an uniform platform to use video,
speech, text, 2D and 3D graphics. - WPF applications can take advantage of Graphics
Processing Units on Graphics cards for smoother
graphics - WPF is steep learning curve
- Winforms have lots of controls and lots of help
available
9WPF VS WinForms Development(Continued)
- WPF allows separation of design work by Designers
and functionality by WPF Developers - Better GUI and smart cleint
10 Design Option - Screen
Window Form
Windows Presentation Foundation
11 Future of WinForm Development
- Experts say that Microsoft for Windows Forms
beyond Version 2.0 released in 2005) - So it might force the business to migrate their
current WinForm applications to WPF and start new
applications on WPF
12WPF and Windows OS
- WPF does not explicitly require Windows Vista.
- WPF also will work with Windows XP Service Pack 2
and with Windows Server 2003 SP1 - WPF requires.NET Framework Version 3.0 which is a
free download from Microsoft Web site. - .NET Framework 3.0 is shipped with Windows Vista.
No install hassle.
13Working with WPF
OK
C
VB.NET
XAML
Button btnnew Button() btn.Content"OK" btn.Wid
th60 btn.Backgroundnew SolidColorBrush(Colors.B
lue)
Dim btn As New Button btn.Content"OK" btn.Width6
0 btn.Backgroundnew _SolidColorBrush
_(Colors.Blue)
ltButton Width"60"gt OK ltButton.Backgroundgt Blue lt/
Button.Backgroundgt lt/Buttongt
Designer
Developer
14When to use WPF
- New applications
- To build rich and highly interactive application
that is sophisticated - Highly Custom branded
- Apply enhanced user experience
- Existing application
- If you have an existing app that is just form
based, you must just want to keep that in windows
forms - No clean separation on logic and view Then WPF
is the way
15Conclusions
- Silverlight light and WPF shares same development
tools and models - However, WPF but is optimized for a lightweight,
cross-platform runtime - Investing in either WPF development or
Silverlight development meshes your skills,
tools, and assets for these platforms