Title: Windows Presentation Foundation
1Windows Presentation Foundation
2The WPF Approach
- Unified approach to UI, Documents, and Media
- Integrated development and experiences
- New Windows Infrastructure
- Retained graphics, vector based engine
- Built on modern display hardware (D3D)
- Modern development framework and patterns
- Designers and Tools Matter
- Bringing designers into the process
- Declarative programming models for toolablity and
flexibility
3The WPF Approach
- Unified approach to UI, Documents, and Media
- Integrated development and experiences
- New Windows Infrastructure
- Retained graphics, vector based engine
- Built on modern display hardware (D3D)
- Modern development framework and patterns
- Designers and Tools Matter
- Bringing designers into the process
- Declarative programming models for toolablity and
flexibility
4Designer DetailsLost in Translation
5- while (!design.IsPerfect)
-
- Designer.CreateNewDesign()
- Developer.ImplementNewDesign()
- design.IsPerfect false
-
- if (Schedule.SlipCount gt x) break
6designer independent UI creator
no more translation errors parallel
workflow realtime iteration and feedback
7(No Transcript)
8(No Transcript)
9Declarative Programming with XAML
- Markup for Windows
- Build applications in simple declarative
statements - Can be used for any CLR object hierarchy
- Code and content are separate
- Streamline collaboration between designers and
developers - Easy for tools to consume and generate
10XAML or Code?
11XAML or Code?
Code Behind
12targeted experiences
Window1.xaml.cs Contains Application
logic Created by Application developer
Window1.xaml Professional Version
Window1.xaml Consumer Version
Window1.xaml Media Center Version
13The WPF Approach
- Unified approach to UI, Documents, and Media
- Integrated development and experiences
- New Windows Infrastructure
- Retained graphics, vector based engine
- Built on modern display hardware (D3D)
- Modern development framework and patterns
- Designers and Tools Matter
- Bringing designers into the process
- Declarative programming models for toolablity and
flexibility
14WPF Architecture
15Windows Presentation Foundation
Demo
16Integration with existing Apps
- Can use WPF with existing code
- WPF inside existing code
- Existing code inside WPF
- Integrate at the component or Window level
- Maximum richness gt all WPF
17Mixed App Considerations
- Higher long-term cost, lower initial cost
- Run in browser
- Integrate your business logic
- Using XAML in C
- Airspace layered windows
18Airspace
- Each pixel belongs to one hwnd
File Edit View Help
File Edit View Help
Win32
WPF
Win32
WPF
DirectX
DirectX
19Airspace caution!
File Edit View Help
File Edit View Help
Win32
WPF
Win32
WPF
DirectX
DirectX
20Mixed Application Ideas
New chrome
Faster canvas?
21Mixed Application Ideas
- Wizards and help systems
- Generate HTML gt Generate XAML
- WPF wrapper around an existing control
22Call To Action
- Build Great Windows Vista Applications
- Help create and ride the upgrade wave
- Learn how WPF can help you improve your
application - Invest in your User Experience
- Involve Designers
- Make a leap in functionality
- Choose the right way to move your codebase forward