出版時間:2008-5 出版社:東南大學(xué)出版社 作者:塞爾斯 頁數(shù):835
Tag標(biāo)簽:無
前言
First Edition Over the past two-plus years, my day job has involved XAML-izing'various parts of the Microsoft universe. My standard refrain when encountering XAML newbies has been "read the XAML appendix from Chris and Ian's book." That appendix (originally printed in the beta edition of this book) was easily the most direct and to-thepoint treatment of the topic I've seen, and several dozen of my coworkers got their first taste of XAML from Ian's excellent writing. (Ian wrote the XAML appendix.) Over the past year, as I've started to make the transition from runfime plumber to pixel pusher, the chapters on WPF proper were super-efficient in getting me off the ground (things have changed a lot since I wrote my last WndProc). At the time this edition hits the shelves, there are numerous books dedicated to WPF, written by some pretty notable folks. This book is unique in that Ian has been telling the story on the road for a couple of years getting the right balance of conceptual understanding and pragmatic "everyone screws this up" experience. I know from personal experience that there's nothing like teaching to hone a story to perfection-this book is evidence of that. . Ian's co-author should thank his lucky stars that lan was willing to travel the planet trying out the material rather than taking a cushy job in Windows. Now that they've gotten this book out, maybe Ian should take a cushy job, too. He's certainly earned it. Second Edition Wow, I can't believe that after all that time in the chute, ,NET 3.0 and Windows Vista have finally shipped. I vividly remember scrambling backstage at PDC 2003 with Chris trying to ready the first live demonstration of .NET 3.0 (then called WinFX) for the keynote speaker, Jim Allchin. It was an especially stressful keynote because Les Angeles was plagued with brush fires at the time and Chris Anderson's flight had been canceled; fortunately Chris Sells had already arrived and was ready to pinch-hit both in preparation and presentation if Chris, in fact, couldn't make it to L.A. in time. At the rime, Chris' job at Microsoft was to make sure that Vista——including WPF——was a smashing success. Little did he know it would take almost four years until the product actually shipped (which of course is a prerequisite for success). So, what's the big deal with WPF? Like its sister .NET 3.0 technology, Windows Workflow Foundation (WF), WPF embraces the "it takes a village" approach to software development and uses XAML to allow people with different skill sets to collaborate in the development process. In the case of WF, XAML lets high-level process and rule descriptions integrate with imperative code written in C# or Visual Basic. In the case of WPF, XAML is the bridge between us code monkeys and the beret-wearing, black-turtleneck set who design visuals that look like they weren't designed by, well, us code monkeys. WPF really is an impressive piece of technology: documents, forms, and multimedia all wrapped up nicely in a markupand code-friendly package. What I find even more impressive is the fact that Chris found the time outside his day job to pull together the book you're holding in your hands right now, capturing those four-plus years of experience with WPF (including screenshots!) into a digestible and portable form. I've had the good fortune of having many conversations with Chris over the years about the nuances of WPF——sometimes on the phone, sometimes in his office (it's across the hall from mine), and sometimes at the poker table. This book has taught me a whole lot more. Now that it's all shipped, let the light blinking begin! ——Don Box Architect, Microsoft .. When I joined Microsoft 11 years ago, I first worked in the IT group, building applications to help the Microsoft sales force analyze data. I developed using Visual Basic 4.0 on early versions of Windows 95 and Windows NT 3.51 before moving over to work on the development team for Visual Basic 5.0, and later, 6.0. As time went on, I worked on Visual J++, Windows Foundation Classes, .NET, Windows Forms, ASP.NET, and eventually the Windows Presentation Foundation (WPF). When I learned to program Windows, I read the book that was considered the "bible" of Windows programming at the time, Programming Windows 3.1 by Charles Petzold (Microsoft Press). After helping to build the next-generation programming platform for Microsoft——the .NET Framework——I was first introduced to Chris Sells because he'd written the "bible" of programming .NET client applications: Windows Forms Programming (Addison-Wesley). Later, while I was building WPF, Chris and Ian were already writing the first book for that technology, too. As part of his work, Chris provided feedback on early versions of WPF, drawing on his extensive experience as a preeminent author and educator for programming client applications for Windows. In fact, based on his sensibilities, we actually refer to a customer-focused style of system design used in my group as the "Sellsian" approach. Of course, Chris didn't write this book all by himself. Ian Griffiths is a tremendously gifted technologist with a pedigree that includes working with DevelopMentor and now Pluralsight as a consultant, developer, speaker, and author (his works include .NET Windows Forms in a Nutshell [O'Reilly]), focusing on a wide range of technologies including Windows Forms and WPF. I've had less opportunity to spend time with Ian; however, in every interaction with him, I have been amazed! Chris and Ian have both followed client technology since the early days of Windows. While I have spent my career building platforms, Chris and Ian have spent their careers making them accessible to fi broad range of developers. As Chris puts it, they've been "following along behind [me] with a broom and a dustpan, cleaning up [my] messes for years." This book is a thorough and comprehensive dive into WPF. Chris and Ian's unique approach to explaining and building software illuminates the corners and open vistas of the platform. When they bump into its limitations, they don't just explain them, but they show you how to work around them and solve real-world problems.
內(nèi)容概要
這本書的設(shè)計(jì)初衷是讓你快速掌握微軟Windows Presentation Foundation,如果想要構(gòu)建完全利用Windows Vista和Windows XP用戶界面潛能的應(yīng)用程序,這就是一項(xiàng)你需要學(xué)習(xí)的技術(shù)。讀到第二頁,你將會編寫一個簡單的WPF應(yīng)用程序。第一章結(jié)束時,你就已經(jīng)遍覽了WPF的主要元素。 這本《WPF編程》第二版根據(jù)WPF正式發(fā)布版更新,包括了導(dǎo)航、文本與文檔、打印與XPS以及3D圖形等主題,還有一個新的附錄,涵蓋了微軟近期發(fā)布的用于通過標(biāo)準(zhǔn)Web瀏覽器傳遞豐富用戶界面的Suverhght平臺——其與Adobe Flash十分相似。第一版中的內(nèi)容已被大量擴(kuò)展和修改,此外本書還包括: 眾多C#和XAML范例,從簡單的“Hello,AvaIon”到“井”字游戲,向你展示用什么可以讓一個WPF應(yīng)用程序啟動并運(yùn)行; 關(guān)于WPF帶給Windows開發(fā)強(qiáng)大的新編程風(fēng)格的極富見地的討論,特別是它的新控件模型 講解顏色插值,以更好地闡釋W(xué)PF對3D、顏色以及其他圖形效果的支持 XAML教程,即介紹聲明Windows UI的新的類HTML標(biāo)記語言 說明并比較Windows Form與其他舊Windows應(yīng)用程序支持的互操作特性 WPF代表了基于控制的Windows和基于內(nèi)容的Web這兩大世界中的最先進(jìn)技術(shù)。《WPF編程》幫助你將它們結(jié)合在一起。
作者簡介
作者:(美)塞爾斯 等
書籍目錄
ForewordsPreface1. Hello, WPF WPF from Scratch XAML Browser Applications (XBAPs) Content Models Layout Controls Data Binding Dependency Properties Resources Styles Animation Control Templates Graphics 3D Documents and Printing2. Applications and Settings Application Lifetime Application Deployment Settings3. Layout Layout Basics StackPanel WrapPanel DockPanel Grid Canvas Viewbox Common Layout Properties When Content Doesn't Fit ScrollViewer Custom Layout4. Input Routed Events Mouse Input Keyboard Input Ink Input Commands Code-Based Input Handling Versus Triggers5. Controls What Are Controls? Buttons Slider and Scroll Controls ProgressBar Text Controls ToolTip GroupBox and Expander List Controls Menus Toolbars GridSplitter6. Simple Data Binding Without Data Binding Data Binding Debugging Data Binding7. Binding to List Data Binding to List Data Data Source Providers Master-Detail Binding Hierarchical Binding8. Styles Without Styles Inline Styles Named Styles Element-Typed Styles Data Templates and Styles Triggers9. Control Templates Beyond Styles Logical and Visual Trees Data-Driven UI 10. Windows and Dialogs Window Dialogs11. Navigation NavigationWindow Pages Frames XBAPs Navigation to HTML12. Resources Creating and Using Resources Resources and Styles Binary Resources Global Applications13. Graphics Graphics Fundamentals Shapes Bitmaps Brushes and Pens Transformations Visual Layer Programming14. Text and Flow Documents Fonts and Text Styles Text and the User Interface Text Object Model Typography15. Printing and XPS XPs XPS Document Classes Generating XPS Output XPS File Generation Features System.Printing Displaying Fixed Documents16. Animation and Media Animation Fundamentals Timelines Keyframe Animations Path Animations Clocks and Control Transition Animations Audio and Video17. 3D Graphics 3D Content in a 2D World Cameras Models Lights Textures Transforms 3D Data Visualization Hit Testing18. Custom Controls Custom Control Basics Choosing a Base Class Custom Functionality Supporting Templates in Custom Controls Default Styles UserControl AdornersA. XAMLB. InteroperabilityC. Asynchronous and Multithreaded WPF ProgrammingD. WPF Base TypesE. SilverlightIndex
編輯推薦
《WPF編程(影印版)(第2版)》是《WPF編程》之第二版,全書共人分18個章節(jié),對導(dǎo)航、文本與文檔、打印與XPS以及3D圖形等主題作了介紹,另外,還有一個新的附錄,涵蓋了微軟近期發(fā)布的用于通過標(biāo)準(zhǔn)Web瀏覽器傳遞豐富用戶界面的Suverhght平臺。該書可供各大專院校作為教材使用,也可供從事相關(guān)工作的人員作為參考用書使用。 “《WPF編程(影印版)(第2版)》十分全面深入地剖析了WPF。Chris和lan闡釋和構(gòu)建軟件的獨(dú)特方式照亮了每一個角落并且充分展現(xiàn)了平臺的全貌。當(dāng)他們碰到它的缺點(diǎn)時,不會馬上解釋,而是向你展示如何應(yīng)付它們,如何解決實(shí)際問題?!薄狢hris Anderson,原Windows Presentation Foundation架構(gòu)師“這些年來,我非常幸運(yùn)地與Chris Sells就WPF的細(xì)節(jié)有過多次對話——有些時候通過電話,有些時候在他的辦公室里(在我辦公室門前走廊的另一端),有些時候在牌桌上……《WPF編程(影印版)(第2版)》教會我很多東西。”——Don Box,微軟架構(gòu)師
圖書封面
圖書標(biāo)簽Tags
無
評論、評分、閱讀與下載