Windows Presentation Foundation pot

164 3.1K 0
Windows Presentation Foundation pot

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

HO CHI MINH UNIVERSITY OF INDUSTRY What's New in WPF Version 4.5? HO CHI MINH UNIVERSITY OF INDUSTRY Windows Presentation Foundation 1 Benefits 2 Tools 3 Discussion of WPF applicability 4 HO CHI MINH UNIVERSITY OF INDUSTRY What is WPF? WPF is a new API for building Windows applications The goal of Windows Presentation Foundation (WPF) is to provide these advances for Windows. Included in version 4.0 of the Microsoft .NET Framework, WPF allows building interfaces that incorporate documents, media, two- and three-dimensional graphics, animations, Web-like characteristics, and much more. HO CHI MINH UNIVERSITY OF INDUSTRY What Windows Presentation Foundation Provides? Three most important:  a unified platform for modern user interfaces  the ability for developers and designers to work together,  and a common technology for Windows and Web browser user interfaces. HO CHI MINH UNIVERSITY OF INDUSTRY What is WPF good for?  To enable designers and developers to work together  To allow an easy way to customize the look of controls without changing its behavior  To allow 3D graphics more easily in Windows applications  To allow an easy way to do animations in Windows applications  To enable the creation of applications which scale nicely to high resolution screens HO CHI MINH UNIVERSITY OF INDUSTRY Which of these UI have you worked with?  GDI (20 years), GDI+, WinForms  DirectX (11 years), Direct3D  Quartz, DirectShow (8 years) – Problems: • Showing their age • Each API is different • Mixing APIs is challenging HO CHI MINH UNIVERSITY OF INDUSTRY Next Gen  WPF – replaces GDI  Direct3D – large games, used by WPF  Media Foundation – ultimately will replace DirectShow  MCML –markup language for Media Center Edition applications  XNA – small games HO CHI MINH UNIVERSITY OF INDUSTRY WPF  Declarative programming with XAML markup  For Designers and Developers  Rewritten from scratch – Built on top of Direct3D – Hardware accelerated – Vector based – Resolution independent (1/96 inch) – Retained graphics HO CHI MINH UNIVERSITY OF INDUSTRY  Most of WPF is written in managed code  milcore is the only unmanaged component of WPF Overview of WPF Architecture HO CHI MINH UNIVERSITY OF INDUSTRY Managed Code: Code write in .net framework environment is call Managed code, they will be executed direct from CLR(Common Language Runtime). CLR will manage memory, security problem, debugging…and other useful features [...]... Concepts HO CHI MINH UNIVERSITY OF INDUSTRY 1 WPF code and XAML: first app WPF code – New consoles project (or Windows Apps) – Reference: PresentationCore, PresentationFramework, and WindowsBase How to create this window? HO CHI MINH UNIVERSITY OF INDUSTRY using System .Windows; using System .Windows. Controls; namespace StudyWPFApplication { public class Class1 { [STAThread]//Must insert before Main public... OF INDUSTRY HO CHI MINH UNIVERSITY OF INDUSTRY 2 Basic Window properties      Title WindowStyle Content Brush Foreground Background SolidColorBrush LinearGradientBrush TileBrush GradientBrush RadialGradientBrush HO CHI MINH UNIVERSITY OF INDUSTRY HO CHI MINH UNIVERSITY OF INDUSTRY SolidColorBrush using System .Windows. Media Color cr = new Color(); cr.B = cr.R = cr.G = 122; cr.A = 255; SolidColorBrush . a new API for building Windows applications The goal of Windows Presentation Foundation (WPF) is to provide these advances for Windows. Included in version. app  WPF code – New consoles project (or Windows Apps) – Reference: PresentationCore, PresentationFramework, and WindowsBase How to create this window?

Ngày đăng: 15/03/2014, 15:20

Từ khóa liên quan

Mục lục

  • Slide 1

  • Slide 2

  • Slide 3

  • Slide 4

  • Slide 5

  • Slide 6

  • Slide 7

  • Slide 8

  • Slide 9

  • Slide 10

  • Slide 11

  • Slide 12

  • Slide 13

  • Slide 14

  • Slide 15

  • Slide 16

  • Slide 17

  • Slide 18

  • Slide 19

  • Slide 20

Tài liệu cùng người dùng

Tài liệu liên quan