《Windows.Presentation.Foundation.Professional.Programming》翻译--目录

本文档详细介绍了Windows Presentation Foundation (WPF) 的核心概念和发展背景,并深入探讨了其设计原则与体系结构。通过实例演示如何使用Microsoft Expression Blend创建富用户界面,并讲解了XAML语言的应用,以及WPF中关键类的使用方法。

目录

Chapter 1: Windows Presentation Foundation概述                                                        1

Windows API开发简要回顾                                                                                                 2

平台的发展                                                                                                                       2

.NET Framework 3.0介绍                                                                                                    3

初识 Windows Presentation Foundation                                                                            3

设计指导原则                                                                                                                    3

体系结构                                                                                                                          5

XAML语言                                                                                                                         15

说明型和命令型                                                                                                              15

可视化设计工具                                                                                                                 18

XamlPad                                                                                                                         18

Microsoft Expression Blend                                                                                               19

Visual Designer for Windows Presentation Foundation                                                     20

Electric Rain ZAM 3D                                                                                                        21

Mobiform Aurora                                                                                                              22

总结                                                                                                                                  23

Chapter 2: WPF and .NET编程                                                                                           25

入门指南                                                                                                                           26

安装需求                                                                                                                        26

WPF的程序类型                                                                                                              26

第一个WPF程序                                                                                                             27

WPF程序开发概念                                                                                                             29

XAML                                                                                                                             29

应用程序对象                                                                                                                  30

创建用户接口                                                                                                                  32

处理事件                                                                                                                        35

使用控件                                                                                                                        41

触发器                                                                                                                           51

语言支持                                                                                                                        58

程序发布                                                                                                                        61

总结                                                                                                                                  61

Chapter 3: 解析WPF应用程序                                                                                                      63

项目的构成                                                                                 63

App.Manifest文件                                                                              66

AssemblyInfo.cs文件                                                                           66

Resources.resx文件                                                                            68

Settings.settings文件                                                                          68

MyApp.xaml文件                                                                                70

.NET Framework 3.0 Windows型应用程序                                                  71

Window1.xaml                                                                                  72

XAML 浏览器型应用程序                                                              73

Page1.xaml                                                                                      73

WCF service                                                                         75

Class1.cs                                                                                        75

WPF定制用户控件                                                                     78

UserControl1.xaml                                                                                  79

总结                                                                                    82

Chapter 4:利用Microsoft Expression Blend创建富用户界面(Rich UI)(一)  83

概述                                                                                      84

开发环境                                                                                 85

工作区面板                                                                                   86

Artboard面板                                                                                 87

环境设置                                                                                     88

项目结构                                                                               90

增加新项目                                                                                   90

创建和发布项目                                                                         91

创建矢量对象                                                                                 91

图形                                                                                           92

路径                                                                                           93

利用属性面板操作对象                                                                 94

变换面板                                                                                     94

画笔面板                                                                                     95

不透明,透明和可见性                                                                      97

操作文本                                                                               98

管理层                                                                                 99

UI层面板                                                                                                                    100

其他层面板                                                                                                                103

嵌套层面板                                                                                                                103

动画                                                                                                                             104

时间线子面板                                                                                             104

                                                                                                                   105

对象的动画属性                                                                                               106

移动路径                                                                                                          106

触发器                                                                                                             107

创建控件                                                                                                     108

模版                                                                                                                110

样式                                                                                                           111

状态                                                                                                                112

导入声音和图像                                                                                               113

总结                                                                                                                           113

Chapter 5:利用Microsoft Expression Blend创建富用户界面(Rich UI)(二) 115

Expression Blend工作流                                                                                       116

使用Visual Studio 2005编程                                                                              117

处理用户输入                                                                                                           118

键盘和鼠标类                                                                                              118

事件和事件处理                                                                                           118

定位                                                                                                                120

检测                                                                                                           124

WPF的动画接口                                                                                                       135

动画类                                                                                                             135

利用程序创建动态动画过程                                                                               135

可编程动画                                                                                                       139

Storyboards交互                                                                                                 143

WPF图形接口                                                                                                           145

几何图形                                                                                                          145

标准图形                                                                                                          146

画笔                                                                                                                 149

总结                                                                                                                           153

Chapter 6: 特技效果                                                                                                 155

画笔                                                                                                                           156

颜色画笔                                                                                                          156

渐变画笔                                                                                                          162

图像画笔                                                                                                          165

图型画笔                                                                                                          167

视觉画笔                                                                                                          169

图形特效                                                                                                                         171

变形                                                                                                                              175

转换变形                                                                                                          178

缩放变形                                                                                                             180

扭曲变形                                                                                                             183

旋转变形                                                                                                          186

透明变形                                                                                                           188

组合特效                                                                                                                      191

例子1:一个跳动地倒影球                                                                             191

例子2:动态图象浏览器                                                                                    197

Summary                                                                                                                      203

Chapter 7: 定制控件                                                                                              205

概述                                                                                                                              206

基于类的控件                                                                                                              207

用户控件类                                                                                                          207

创建用户控件                                                                                                      207

WPF的数据绑定                                                                                                          217

用于数据绑定的标记语言                                                                                    217

绑定方式                                                                                                        217

数据模版                                                                                                        219

数据转换                                                                                                     221

创建和编辑样式                                                                                                          222

指定样式的目标类型                                                                                           223

继承和覆盖样式                                                                                               224

触发器样式                                                                                                      226

利用模版定制现有的控件                                                                                          228

总结                                                                                                                              231

Chapter 8: 企业级应用WPF                                                                               233

WPF程序模式                                                                                                           234

独立的应用程序                                                                                           235

基于浏览器的应用程序                                                                                 238

安全性                                                                                                           247

状态管理                                                                                                                   248

应用程序对象                                                                                              248

单独存储                                                                                                        250

状态管理的例子                                                                                                                        252

 

导航                                                                                                                                   258

导航的原理                                                                                                 258

导航的结构                                                                                                     259

导航拓扑图                                                                                                      269

程序的区域设置                                                                                                       286

自动布局准则                                                                                                   287

使用灵活的Grids控件                                                                                        289

区域设置的属性和注释                                                                                     290

WPF发布模式                                                                                                           291

创建应用程序                                                                                                  292

发布单独的Windows应用程序                                                                            294

发布XAML浏览器程序                                                                                        295

部署.NET Framework 3.0运行环境                                                                       296

总结                                                                                                                           298

Chapter 9: 安全                                                                                                    299

WPF安全模式                                                                                                           299

信任模式和快速模式                                                                                               300

操作系统安全的核心                                                                                               300

LUA方式                                                                                                      301

Virtualization方式                                                                                          301

Sandboxing方式                                                                                            301

Cryptography Next Generation方式                                                                       302

CLR安全                                                                                                                   302

代码处理安全                                                                                                  303

关键代码安全                                                                                              311

效验                                                                                                               313

Microsoft Internet Explorer安全                                                                           313

区限制策略安全                                                                                               313

XBAP工作区安全                                                                                          314

XAML 浏览器应用程序安全                                                                               315

ClickOnce安全                                                                                                        323

信任发布者                                                                                                      323

个人验证文件                                                                                              324

.NET 3.0安全工具                                                                                                    327

总结                                                                                                                           328

Chapter 10: WPF程序和Win32程序的交互                                                             329

Win32程序用户接口概述                                                                   330

WPFHWNDs交互                                                                          330

使用WPF中的Win32 HWNDs                                                               331

WPF中使用Win32中的按钮                                                                                    332

Win32程序中使用WPF                                                                    335

WPF中使用Windows Form控件                                                        337

利用代码增加WindowsFormsHost                                                                               337

利用XAML增加HwndHost                                                                                           339

WPF 中使用ActiveX控件                                                                                        339

XAML中使用ActiveX控件                                                                                        344

Windows Forms 中使用WPF控件                                                                            345

受影响的控件属性                                                                                                    349

总结                                                                                             351

Chapter 11: 高级开发概念                                                                             353

WPF体系结构                                                                                 354

核心子系统                                                                                                              356

WPF线程模式                                                                                                          359

桌面窗口管理                                                                                                           360

WPF框架                                                                                       361

调度对象                                                                                                                 362

DPS的概念:DependencyObject/DependencyProperty                                               362

Application                                                                                                           363

Freezable                                                                                                             364

Visual                                                                                                                   364

UIElement                                                                                                             370

FrameworkElement                                                                       371

Control                                                                                     371

深入XAML                                                                                     373

XAML标记语言                                                                                                         373

运行时,操作XAMLManipulating                                                                                378

解析Window1.xaml                                                                                                   382

x:Class标记                                                                                                              383

XAML语言扩展                                                                                                         385

XAML和定制类型                                                                                                      386

WPF多线程                                                                                                                      388

单线程程序模型                                                                                      388

ThreadDispatcherObject                                                                                                389

WPF调度                                                                                                  390

与单线程应用程序的交互                                                                          391

异步线程                                                                                                    393

Windows Communication Foundation                                                                  397

面向服务                                                                                                  397

WCF体系结构                                                                                          398

WCF基础                                                                                                   399

创建一个WCF服务                                                                                       402

Windows Workflow Foundation                                                                             409

工作流的定义                                                                                           410

WF体系结构                                                                                            411

WF基础                                                                                                  411

总结                                                                                                                         427

索引                                                                                                                       429



 
Introduction This is an exciting time for developers using Microsoft technologies. A seemingly endless array of new platforms, techniques, and tools is now available or will soon be released. The developer’s playground is growing fast. One of the new platforms emerging from the think-tank at Microsoft is the .NET Framework 3.0, a key component of which (and the subject of this book) is the Windows Presentation Foundation (WPF). WPF provides both developers and designers with a unified platform for creating rich-media applications that take full advantage of the graphics capabilities of modern PC hardware. We’ve come a long way from the command-line interfaces of decades past. Today’s application user expects a visually engaging and streamlined interactive experience due in part to their exposure to rich media and content found on the Internet. WPF is all about creating a rich user interface that meets these expectations, incorporating media of all types, such as animation, video, and audio. Furthermore, through the use of a new markup syntax called XAML and a new suite of design tools called Microsoft Expression Blend, developers and designers can now collaborate on projects seamlessly as never before. Prior to WPF, designers would create graphical elements for applications and hand those elements off to developers in the form of image files. Developers would then have to model a user interface (UI) around them. Designers can now model UI using Expression Blend, save the design as a XAML file, and simply hand the file off to a developer to code against in Visual Studio using WPF. This book covers the concepts and components that make up the Windows Presentation Foundation. You learn how to create a rich UI, exploring the various controls now available to you, and how to lever-age the new content model that WPF provides. You explore the WPF object model as well as the new subsystems offered in WPF, such as the dependency property system and the routed event model. You learn how to develop and deploy WPF applications targeting both the desktop and the browser. This book also covers the new XAML syntax, which is a markup language used to define UI in your WPF applications, regardless of whether you are developing for a standalone Windows-based environment or targeting the web. Additionally, you learn the basics of working with Expression Blend, the new graphi-cal design tool offered by Microsoft. WPF is a large platform, and we’ve tried to cover a wide range of topics in this book. Our intent is to touch on a bit of everything WPF has to offer, so you know not only what’s provided by the platform, but also how to utilize it. Of course, because it’s a large platform, we won’t be able to cover everything, but we’ve tried to pick the essential concepts you’ll need to get started. We hope you find it both fun and educational and that it provides a solid foundation for you as you venture in to the new world of rich UI development using Windows Presentation Foundation.
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值