万本电子书0元读

万本电子书0元读

顶部广告

Mastering Windows Presentation Foundation电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Sheridan Yuen

出  版  社:Packt Publishing

出版时间:2017-02-01

字       数:426.8万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Master the art of building modern desktop applications on Windows About This Book Learn how to use the MVVM software architectural pattern and see the benefits of using it with Windows Presentation Fountain (WPF) Explore various ways to enhance efficiency through performance tuning and UI automation Obtain a deep understanding of data validation and understand various methods that suit different situations Who This Book Is For This book is for working developers with a moderate level of knowledge about Windows Presentation Foundation. It will also be of special interest to ambitious individuals who want to know more about application architecture. It is also suitable for those who just want to learn how to build visually stunning user interfaces. What You Will Learn Use MVVM to improve workflow Create visually stunning user interfaces Perform data binds proficiently Implement advanced data validation Locate and resolve errors quickly Master practical animations Improve your applications’ performance In Detail Windows Presentation Foundation is rich in possibilities when it comes to delivering an excellent user experience. This book will show you how to build professional-grade applications that look great and work smoothly. We start by providing you with a foundation of knowledge to improve your workflow – this includes teaching you how to build the base layer of the application, which will support all that comes after it. We’ll also cover the useful details of data binding. Next, we cover the user interface and show you how to get the most out of the built-in and custom WPF controls. The final section of the book demonstrates ways to polish your applications, from adding practical animations and data validation to improving application performance. The book ends with a tutorial on how to deploy your applications and outlines potential ways to apply your new-found knowledge so you can put it to use right away. The book also covers 2D and 3D graphics, UI automation, and performance tuning. Style and approach Filled with intriguing and practical examples, this book delineates concepts that will help you take your WPF skills to the next level.
目录展开

Mastering Windows Presentation Foundation

Mastering Windows Presentation Foundation

Credits

About the Author

About the Reviewer

www.PacktPub.com

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. A Smarter Way of Working with WPF

What is MVVM and how does it help?

Models

View Models

Views

Data binding

So how does MVVM help?

Is there a downside?

Debunking the myth about code behind

Learning how to communicate again

Introducing the ICommand interface

Handling events in Attached Properties

Making use of delegates

Structuring the application code base

Summary

2. Debugging WPF Applications

Utilizing the Output window

Putting Presentation Trace Sources to work

Discovering inner exceptions

Debugging data bound values

Outputting values to UI controls

Catching changing Dependency Property values

Exploiting converters

Summary

3. Writing Custom Application Frameworks

What is an application framework?

Encapsulating common functionality

In base classes

Through interfaces

With Extension methods

In UI controls

With converters

Constructing a custom application framework

Separating the Data Access Layer

Providing services

Implementing Dependency Injection

Connecting Views with View Models

Summary

4. Becoming Proficient with Data Binding

Data binding basics

Binding path syntax

Escaping invalid characters

Exploring the Binding class

Directing data bound traffic

Binding to different sources

Binding with priority

Binding from within control templates

Binding source changes

Converting data bound values

Binding multiple sources to a single target property

Dependency Properties

Setting metadata

Declaring read-only Dependency Properties

Registering Attached Properties

Prioritizing value setting sources

Data templates

Taking complete control

Displaying hierarchical data

Data binding to enumeration collections

Summary

5. Using the Right Controls for the Job

Investigating the built-in controls

Inheriting framework abilities

Laying it on the line

Containing controls

Canvas

DockPanel

Grid

StackPanel

UniformGrid

WrapPanel

Providing custom layout behavior

Content controls

Presenting content

Items controls

Adorners

Modifying existing controls

Styling

Being resourceful

Merging resources

Triggering changes

Templating controls

Attaching properties

Combining controls

Creating custom controls

Summary

6. Mastering Practical Animations

Investigating timelines

Introducing key-frames

Telling stories

Controlling storyboards

Easing functions

Animating along a path

Creating everyday animations

Summary

7. Creating Visually Appealing User Interfaces

Styling applications consistently

Overriding default control styles

Using professional icons

Layering visuals

Throwing shadows

Declaring multiple borders

Reusing composite visuals

Reflecting light

Creating glowing effects

Putting it all together

Moving away from the ordinary

Casting reflections

Exploring borderless windows

Visualizing data

Livening up UI controls

Summary

8. Implementing Responsive Data Validation

Using validation rules - To do or not to do?

Getting to grips with validation interfaces

Implementing the IDataErrorInfo interface

Introducing the INotifyDataErrorInfo interface

Annotating data

Varying levels of validation

Incorporating multiple validation techniques

Customizing the error template

Avoiding UI-based validation errors

Amalgamating validation and visuals

Summary

9. Completing That Great User Experience

Providing user feedback

Utilizing multiple threads

Discovering the Async and Await keywords

Building asynchrony into our framework

Going the extra mile

Producing in-application help

Enabling user preferences

Extending common courtesies

Un-burdening the end user

Summary

10. Improving Application Performance

Leveraging the power of hardware rendering

Making more efficient resources

Freezing objects

Using the right controls for performance

Drawing conclusions

Imaging more efficiently

Enhancing the performance of textual output

Liking the linking

Data binding

Registering Dependency Properties

Binding to collections

Shrinking data objects

Virtualizing collections

Handling events

Summary

11. Deploying Your Masterpiece Application

Installing Windows applications

Utilizing ClickOnce functionality

Securing deployments

Isolating storage

Accessing application versions

Summary

12. What Next?

Turning attention to future projects

Improving our application framework

Logging errors

Using online resources

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部