Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows...

14
Introduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University of Calgary, Canada September 2009 Nicolai Marquardt University of Calgary – Interactions Lab

Transcript of Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows...

Page 1: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

Introduction to Windows Presentation Foundation (WPF)

Nicolai Marquardt

CPSC 581, Saul GreenbergiLab - University of Calgary, CanadaSeptember 2009

Nicolai Marquardt University of Calgary – Interactions Lab

Page 2: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

581 TA

Name: Nicolai easier: NicEmail: [email protected]

Office: Math Science, 6th floor, 671

Nicolai Marquardt University of Calgary – Interactions Lab

Page 3: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

Overview for today

1. Introduction to .NET 3.x and WPF (… a few slides)2. Top 3 recommended books, links, and resources3. “Hello WPF” and “Hello animated WPF”

Nicolai Marquardt University of Calgary – Interactions Lab

Page 4: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

Introduction to WPF and .NET

Nicolai Marquardt University of Calgary – Interactions Lab

Source: Adam Nathan “Windows Presentation Foundation Unleashed”, SAMS Publishing 2007

Page 5: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

What we will learn in the tutorials…

Nicolai Marquardt University of Calgary – Interactions Lab

• Developing applications with C#, WPF, and XAML• Using VisualStudio 2008

• Topics:• User interface elements• Animation and storyboards• Transformations (e.g., scale, rotate, translate)• Video• Sound (e.g., MIDI)• Data binding• Expression Blend designer• (… and a few others)

Page 6: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

Unified framework: 2D, 3D, speech, video, etc.

Nicolai Marquardt University of Calgary – Interactions Lab

Examples: http://windowsclient.net/community/showcase.aspx

Page 7: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

Hardware accelerated

Nicolai Marquardt University of Calgary – Interactions Lab

Example: British Libraryhttp://www.bl.uk/onlinegallery/virtualbooks/

Page 8: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

Resolution independent

Nicolai Marquardt University of Calgary – Interactions Lab

Source: Adam Nathan “Windows Presentation Foundation Unleashed”, SAMS Publishing 2007

Page 9: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

Extensible Application Markup Language (XAML)

Nicolai Marquardt University of Calgary – Interactions Lab

C#XAML

Page 10: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

Rich composition and customization

Nicolai Marquardt University of Calgary – Interactions Lab

XAML

Example: video inside of button

Page 11: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

Top 3 recommended WPF books, links, and resources

Nicolai Marquardt University of Calgary – Interactions Lab

Adam Nathan “Windows Presentation Foundation Unleashed”SAMS Publishing 2007

Page 12: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

Top 3 recommended WPF books, links, and resources

Microsoft Developer Network (MSDN)

http://msdn.microsoft.comhttp://social.msdn.microsoft.com/forums/

Nicolai Marquardt University of Calgary – Interactions Lab

Page 13: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

Top 3 recommended WPF books, links, and resources

Microsoft WindowsClient.NET

http://windowsclient.net/wpf/http://windowsclient.net/learn/videos_wpf.aspx

Nicolai Marquardt University of Calgary – Interactions Lab

Page 14: Introduction to Windows Presentation Foundation (WPF) · PDF fileIntroduction to Windows Presentation Foundation (WPF) Nicolai Marquardt CPSC 581, Saul Greenberg iLab - University

Walkthrough

“Hands-on”:

• Create “Hello WPF” application• Create “Hello animated WPF” application

Nicolai Marquardt University of Calgary – Interactions Lab