Windows Presentation Foundation 4.5 Cookbook

Pavel Yosifovich

  • 出版商: Packt Publishing
  • 出版日期: 2012-09-17
  • 售價: $2,550
  • 貴賓價: 9.5$2,423
  • 語言: 英文
  • 頁數: 464
  • 裝訂: Paperback
  • ISBN: 184968622X
  • ISBN-13: 9781849686228
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

For C# developers, this book offers a fast route to getting more closely acquainted with the ins and outs of Windows Presentation Foundation. The recipe approach smoothes out the complexities and enhances learning.

  • Full of illustrations, diagrams, and tips with clear step-by-step instructions and real world examples
  • Gain a strong foundation of WPF features and patterns
  • Leverage the MVVM pattern to build decoupled, maintainable apps

In Detail

Windows Presentation Foundation (WPF) provides developers with a unified programming model for building rich Windows smart client user experiences that incorporate UI, media, and documents.

WPF has become the leading technology for developing rich client applications on the Windows platform, packed with features and capabilities. However, WPF is big; in fact, it's huge, causing a steep learning curve for the beginner and even for those already using some WPF features.

Windows Presentation Foundation 4.5 Cookbook provides clear recipes for common WPF tasks. It includes detailed explanations and code examples for customizing and enhancing the basic scenarios, while gaining a deep understanding of WPF mechanics and capabilities.

WPF is different and requires a different mind-set and approach. This book provides recipes and insights not only in its design but also its practical implementation details.

Starting from the foundations of WPF, such as dependency properties and XAML, the book touches on all major WPF aspects, such as controls and layout, resources, and digs deep into its unprecedented data binding capabilities.

The book shows data and control templates in action, which allow full customizations of displayed data and controls in a declarative way. Supported by styles and resources makes data binding all the more powerful. The Model View View-Model pattern is presented as an effective way of maximizing decoupling of components, while providing an elegant way of expanding applications while maintaining a tight grip on complexity.

The later parts discuss custom elements and controls – the ultimate customization mechanism, and looks at multithreading issues, and how .NET 4.5 task parallelism features can enhance application performance.

What will you learn from this book

  • Get tips and insights to maximize your productivity
  • Learn to build complex and flexible user interfaces using XAML
  • Perform lengthy operations asynchronously while keeping the UI responsive
  • Get well-versed with WPF features such as data binding, layout, resources, templates, and styles
  • Customize a control's template to alter appearance but preserve behaviour

Approach

This book is written in an easy-to-read style, with a strong emphasis on real-world, practical examples. Step-by-step explanations are provided for performing important tasks.

Who this book is written for

If you are C# developer looking forward to increasing your understanding and knowledge of WPF, then this is the best guide for you. Basic experience with Visual Studio 2010 is mandatory, as well as good C# skills. Previous experience with Windows Forms is not required.

商品描述(中文翻譯)

對於C#開發人員來說,這本書提供了一條快速了解Windows Presentation Foundation (WPF)的途徑。這本書以食譜的方式解決了複雜性並增強了學習效果。

該書充滿了插圖、圖表和提示,並提供清晰的逐步指示和真實世界的示例。它幫助您建立WPF功能和模式的堅實基礎,並利用MVVM模式構建解耦且易於維護的應用程序。

WPF為開發人員提供了一個統一的編程模型,用於構建豐富的Windows智能客戶端用戶體驗,包括UI、媒體和文檔。

WPF已成為在Windows平台上開發豐富客戶端應用程序的領先技術,擁有豐富的功能和能力。然而,WPF非常龐大,對於初學者甚至已經使用一些WPF功能的人來說,學習曲線非常陡峭。

《Windows Presentation Foundation 4.5 Cookbook》提供了常見WPF任務的清晰食譜。它包括詳細的解釋和代碼示例,用於自定義和增強基本場景,同時深入了解WPF的機制和能力。

WPF與眾不同,需要不同的思維方式和方法。本書提供了設計和實際實施細節的食譜和見解。

從WPF的基礎開始,例如依賴屬性和XAML,本書涵蓋了所有主要的WPF方面,如控件和佈局、資源,並深入研究了其前所未有的數據綁定能力。

本書展示了數據和控件模板的實際應用,這允許以聲明方式完全自定義顯示的數據和控件。通過樣式和資源的支持,數據綁定變得更加強大。模型-視圖-視圖模型模式被提出作為最大化組件解耦的有效方法,同時提供了一種優雅的方式來擴展應用程序,同時保持對複雜性的嚴格掌控。

後面的部分討論了自定義元素和控件-最終的自定義機制,並探討了多線程問題,以及如何使用.NET 4.5的任務並行性功能來增強應用程序性能。

您將從本書中學到什麼:
- 獲得提高生產力的提示和見解
- 學習使用XAML構建複雜靈活的用戶界面
- 在保持UI響應的同時,異步執行耗時操作
- 熟悉WPF的功能,如數據綁定、佈局、資源、模板和樣式
- 自定義控件的模板以改變外觀但保留行為

本書以易於閱讀的風格撰寫,強調實際的、實用的示例。提供了逐步解釋以執行重要任務。

本書適合C#開發人員,希望增加對WPF的理解和知識。需要具備Visual Studio 2010的基本經驗,以及良好的C#技能。不需要有Windows Forms的先前經驗。