Tải bản đầy đủ (.pptx) (11 trang)

Wpf 01 intro

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (373.64 KB, 11 trang )

Introduction
Windows Presentation Foundation


Architecture

2


HelloWorld
Code behind in cs file

3


Fundamental things
 Seperation

 UI (XAML)
 Business logic (C# / VB.Net)

 All graphics are Direct2D (part of DirectX)
 Hardware accelerated
 Vector based graphics: no quality loss when
zoom
 Using style like CSS

4


WPF Layers



5


XAML





Pronounced “zammel”
eXtensible Application Markup Language
Markup language like XML
Declarative language vs Imperative
 “What” vs “How”

6


Basic features
Root

Properties

7


Complex properties

8



Button – Declare vs
Create
 XAML code to declare a button

 C# Code to create a button

 No difference in execution & speed
 Main difference: separation from UI &
Business logic
9


Event handler

10


Visual Tree vs Logical
Tree

11



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×