售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜