You are on page 1of 11

Company

LOGO
WPF Tutorial
Owner: Khoa Nguyen + Hieu Nguyen
Content
Introduction to WPF
Why do we choose WPF?
Introduce some basic knowledge
Q&A
Thank you

Introduction to WPF
What is WPF?
WFP stands for Windows Presentation
Foundation.
WPF is Microsofts next generation UI
framework to create applications with a rich
user experience.
WPF combines application UIs, 2D graphics,
3D graphics, documents and multimedia into
one single framework.
Introduction to WPF
The following illustration gives you an
overview of the main new features of WPF

Introduction to WPF
Separation of Appearance and
Behavior
How can you initialize a control in Windows
form?
What is the difference in WPF?
WPF separates the appearance of an user
interface from its behavior. appearance is
generally specified in the XAML and behavior is
implemented in file .cs
Introduction to WPF
Rich composition
You can define almost any type of controls as
content of another.
It very easy to create a button like this:
Highly customizable
You can easily change the look of a control

Resolution independence
If you increate resolution of the screen, the
user interface stay the same size.
Why do we choose WPF
Separation of designer code and logic

Introduction to XAML
XAML stands for Extensible Application
Markup Language.
Its a simple language based on XML to
create and initialize .NET objects with
hierarchical relations.

DataBinding:
WPF provides a very simple and powerful
way to auto-update data between business
module and UI.
Ex:

Data converter
How can you bind two properties of difference
types together? Value converter will help
you to do that.

You might also like