WPF編程

出版時(shí)間: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ù)。讀到第二頁,你將會編寫一個(gè)簡單的WPF應(yīng)用程序。第一章結(jié)束時(shí),你就已經(jīng)遍覽了WPF的主要元素。    這本《WPF編程》第二版根據(jù)WPF正式發(fā)布版更新,包括了導(dǎo)航、文本與文檔、打印與XPS以及3D圖形等主題,還有一個(gè)新的附錄,涵蓋了微軟近期發(fā)布的用于通過標(biāo)準(zhǔn)Web瀏覽器傳遞豐富用戶界面的Suverhght平臺——其與Adobe Flash十分相似。第一版中的內(nèi)容已被大量擴(kuò)展和修改,此外本書還包括:    眾多C#和XAML范例,從簡單的“Hello,AvaIon”到“井”字游戲,向你展示用什么可以讓一個(gè)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個(gè)章節(jié),對導(dǎo)航、文本與文檔、打印與XPS以及3D圖形等主題作了介紹,另外,還有一個(gè)新的附錄,涵蓋了微軟近期發(fā)布的用于通過標(biāo)準(zhǔn)Web瀏覽器傳遞豐富用戶界面的Suverhght平臺。該書可供各大專院校作為教材使用,也可供從事相關(guān)工作的人員作為參考用書使用。 “《WPF編程(影印版)(第2版)》十分全面深入地剖析了WPF。Chris和lan闡釋和構(gòu)建軟件的獨(dú)特方式照亮了每一個(gè)角落并且充分展現(xiàn)了平臺的全貌。當(dāng)他們碰到它的缺點(diǎn)時(shí),不會馬上解釋,而是向你展示如何應(yīng)付它們,如何解決實(shí)際問題?!薄狢hris Anderson,原Windows Presentation Foundation架構(gòu)師“這些年來,我非常幸運(yùn)地與Chris Sells就WPF的細(xì)節(jié)有過多次對話——有些時(shí)候通過電話,有些時(shí)候在他的辦公室里(在我辦公室門前走廊的另一端),有些時(shí)候在牌桌上……《WPF編程(影印版)(第2版)》教會我很多東西?!薄狣on Box,微軟架構(gòu)師

圖書封面

圖書標(biāo)簽Tags

評論、評分、閱讀與下載


    WPF編程 PDF格式下載


用戶評論 (總計(jì)9條)

 
 

  •   雖然內(nèi)容有點(diǎn)舊了,但是還是講的很詳細(xì),值得一看
  •   我不需要英文版,我需要中文版的。沒提示這本書是英文版
  •   好重,需要好好學(xué)
  •   很厚的一本書,英文版的,買的時(shí)候沒注意 慢慢看吧 還是挺值得的.
  •   我是從看WPF電子書開始去尋找一本詳細(xì)介紹的書的。我看過幾本之后,唯獨(dú)沒有看過這本O'Reilly出版的WPF的電子版本??催^了即使是Wrox的《ProfessionalWPFProgramming》也感覺未如理想,后來把心一橫,打算買本磚頭那么大的O'Reilly賭一把,果然賭贏了。這本書很多講解就如當(dāng)頭棒喝,MSDN里面沒有循序漸進(jìn)講解的部分,這里都從原理到使用給你交代清楚了,有了一個(gè)完整的了解過程,自然覺得從.NET2.0Forms到WPF的跳躍沒有那么辛苦。當(dāng)然我是之前看了一部分《ProWPF》和寫了一小段WPF程序的,不排除是別的資料先給我打過了基礎(chǔ),我才認(rèn)為這本書好。選擇原版書的原因無非是省了十幾塊,英語版對我的影響沒多少,不如省錢實(shí)際,還不用擔(dān)心譯者的水平。
  •   這本書出版的時(shí)間是2007年(HOW TIME FLIES...哈哈哈),那個(gè)時(shí)候WPF對很多Windows程序員來說還是一項(xiàng)令人懷疑的,費(fèi)解的而且令人厭惡的技術(shù)。我當(dāng)時(shí)正在用WinForm做桌面應(yīng)用,因此我很是懷疑還有比WinForm更好的UI Framework。直到2009年底我才接觸WPF,很花時(shí)間,門檻也很高,需要學(xué)習(xí)的東西太多了,無數(shù)的DataBinding的寫法,無數(shù)的Template,一時(shí)不知道學(xué)什么好,特別是Blend的出現(xiàn)更是讓自己覺得在萬能的工具面前好渺小。所以在混沌中,又過了兩年,幾乎什么都弄不明白。2012年開始,由于工作的需要,我再也不做WinForm的開發(fā)了。從那以后,我就只用WPF了。學(xué)了很多東西,但總覺得如果有個(gè)人問我WPF到底是什么,我甚至都答不上來。所以我迫切地需要一本書來概括性地介紹WPF。盡管這本書出版的時(shí)候,Vista操作系統(tǒng)甚至還沒有普及,VS2008也還沒有發(fā)布,但是書中的基本的概念到今天仍然是適用的。章節(jié)的結(jié)構(gòu)組織得很好,作者的行文也很有序,閱讀難度不高,都可以理解。在讀了兩個(gè)月之后,我終于可以跟別人說,WPF是一種實(shí)現(xiàn)應(yīng)用程序和用戶交互的技術(shù),它可以實(shí)現(xiàn)XXX,它的事件模型OOO,VisualTree是這樣子的。。。
  •   英語學(xué)得不好,后悔了
  •   這本書挺好,《Pro WPF in C# 2008》更好,希望盡快引進(jìn)!
  •   非??斓目爝f,我喜歡。書很好,看不出影印版和原版書有什么不同(沒見過原版),和中文版的印刷相比。內(nèi)容還沒看多少。
 

250萬本中文圖書簡介、評論、評分,PDF格式免費(fèi)下載。 第一圖書網(wǎng) 手機(jī)版

京ICP備13047387號-7