In just 24 sessions of one hour or less, Sams Teach Yourself Windows 8.1 Apps with XAML and C# in 24 Hours will help you build compelling apps for Windows 8.1 devices of all kinds.
Printed entirely in color, with helpful figures and syntax coloring to make code samples appear as they do in Visual Studio. In just 24 sessions of one hour or less, you will be able to begin effectively using WPF to solve real-world problems, developing rich user interfaces in less time than you thought possible. Using a straightforward, step-by-step approach, each lesson builds on a real-world foundation forged in both technology and business matters, allowing you to learn the essentials of WPF from the ground up. Step-by-step instructions carefully walk you through the most common questions, issues, and tasks. The Q&A sections, quizzes, and exercises help you build and test your knowledge. By the Way notes present interesting pieces of information. Did You Know? tips offer advice or teach an easier way to do something. Watch Out! cautions advise you about potential problems and help you steer clear of disaster. Learn how to... Use XAML to build user interfaces Leverage data binding to minimize tedious code Create visually engaging applications Architect and design WPF applications using proven patterns such as MVP Incorporate audio and video into your applications Customize controls with styles, templates, and animation Apply best practices for developing software with WPF Deploy WPF applications to the desktop and Web Take advantage of WPF''s advanced printing capabilities Grow as a developer by improving your overall software design skills Introduction 1 Part I Getting Started 1 What WPF Is and Isn''t 5 2 Understanding XAML 17 3 Introducing the Font Viewer 27 4 Handling Application Layout 41 5 Using Basic Controls 59 6 Introducing Data Binding 75 Part II Reaching the User 7 Designing an Application 93 8 Building a Text Document Editor 107 9 Getting a Handle on Events 121 10 Commands 145 11 Output 157 Part III Visualizing Data 12 Building a Contact Manager 177 13 Presenters and Views 193 14 Resources and Styles 211 15 Digging Deeper into Data Binding 229 16 Visualizing Lists 251 Part IV Creating Rich Experiences 17 Building a Media Viewer 267 18 Drawing with Shapes 291 19 Colors and Brushes 315 20 Transforms and Effects 331 21 Using Control Templates 347 22 Triggers 369 23 Animation 383 24 Best Practices 407 Part V Appendixes Appendix A: Tools and Resources 423 Appendix B: 3D Tutorial Using ZAM 3D 427 Appendix C: Project Source (downloadable) 437 Index 439
The #1 WPF Book--Now Updated for WPF 4.5! Thorough, authoritative coverage, practical examples, clear writing, and full-color presentation make this one of the most widely acclaimed programming books of the last decade. Windows Presentation Foundation (WPF) is the recommended technology for creating modern Windows desktop apps. Whether you want to develop traditional user interfaces or integrate 3D graphics, audio/video, animation, dynamic skinning, touch, rich document support, speech recognition, or more, WPF enables you to do so in a seamless, resolution-independent manner that scales from small tablets to large TVs. WPF 4.5 Unleashed is the authoritative book that covers it all, in a practical and approachable fashion, authored by WPF guru and Microsoft architect Adam Nathan. Covers everything you need to know about Extensible Application Markup Language (XAML) Examines the WPF feature areas in incredible depth: controls, layout, resources, data binding, styling, graphics, animation, and more Delves into topics that aren’t covered by most books: 3D, speech, audio/video, documents, effects Shows how to create popular UI elements and leverage built-in controls such as the new Office-style Ribbon Demonstrates how to create sophisticated UI mechanisms, such as Visual Studio-like collapsible/dockable panes Explains how to create first-class custom controls for WPF Demonstrates how to create hybrid WPF software that leverages Windows Forms, DirectX, ActiveX, or other non-WPF technologies Explains how to exploit desktop features, such as Jump Lists and taskbar customizations, and the same toast notifications used by Windows Store apps
Windows® Phone 8 Unleashed is the definitive guide to Microsoft’s new Windows Phone 8 platform for intermediate to advanced developers. Written by Microsoft MVP and leading Windows Phone and WPF innovator Daniel Vaughan, this full-color guide covers everything developers need to rapidly build highly competitive Windows Phone 8 mobile apps. Vaughan teaches through complete sample apps—leveraging the MVVM pattern—illuminating each key concept with fully explained code and real-world context. He presents best practices for building highly functional, maintainable, and attractive mobile interfaces; integrating touch, rich media, and data; testing; profiling; and more. Expanded and updated, Vaughan shares expert insights available in no other book, drawing on his exceptional access to the Windows Phone development team through the elite Microsoft Silverlight and WPF Insiders group. Along the way, he presents exceptionally practical and thorough coverage of many powerful new Windows Phone 8 platform enhancements, including full chapters on voice commands and speech synthesis, incorporating speech-driven experiences, Wallet integration, new Live Tile capabilities, the Nokia Maps control, launching apps via file and protocol associations, and much more. Detailed information on how to… * Get started quickly with Windows Phone XAML development in Visual Studio * Master the Capabilities Model, threading, and the Execution Model * Create attractive mobile interfaces using Windows Phone’s rich set of controls, including the Windows Phone Toolkit * Make the most of the application bar and other interface elements * Enhance user experience with advanced support for touch, gestures, and sensors * Build location-aware apps that use Nokia Maps and location services * Incorporate speech-driven experiences * Quickly internationalize apps for global markets * Leverage Windows Phone 8’s improved camera support * Connect apps to online services via SOAP, REST, and OData * Validate user input on the client side or via WCF services * Use Windows Phone 8’s powerful local database support * Implement background actions, file transfers, and audio playback * Automatically launch your app using file and protocol associations * Unit test to find defects earlier, saving time and money
You're a developer who knows nothing to WPF. Which is fine, except that you need to start coding your next application using WPF and the MVVM pattern. Don't worry: I have you covered. I've been training hundreds of developers like you during 15 years, and converted my experience into this book. I know from experience teaching what takes more time to learn in WPF, and will spend time only where appropriate. Plus this book is packed with exercises which build up into a full project: you develop a small e-commerce sample application. You’ll allow users to browse for products, and you’ll also create a back-end where users will be able to list and edit products. Read this book, and you can code your WPF application within a week.
Printed entirely in color, with helpful figures and syntax coloring to make code samples appear as they do in Visual Studio. Windows Presentation Foundation (WPF) is a key component of the .NET Framework 3.0, giving you the power to create richer and more compelling applications than you dreamed possible. Whether you want to develop traditional user interfaces or integrate 3D graphics, audio/video, animation, dynamic skinning, rich document support, speech recognition, or more, WPF enables you to do so in a seamless, resolution-independent manner. Windows Presentation Foundation Unleashed is the authoritative book that covers it all, in a practical and approachable fashion, authored by .NET guru and Microsoft developer Adam Nathan. · Covers everything you need to know about Extensible Application Markup Language (XAML) · Examines the WPF feature areas in incredible depth: controls, layout, resources, data binding, styling, graphics, animation, and more · Features a chapter on 3D graphics by Daniel Lehenbauer, lead developer responsible for WPF 3D · Delves into non-mainstream topics: speech, audio/video, documents, bitmap effects, and more · Shows how to create popular UI elements, such as features introduced in the 2007 Microsoft Office System: Galleries, ScreenTips, custom control layouts, and more · Demonstrates how to create sophisticated UI mechanisms, such as Visual Studio-like collapsible/dockable panes · Explains how to develop and deploy all types of applications, including navigation-based applications, applications hosted in a Web browser, and applications with great-looking non-rectangular windows · Explains how to create first-class custom controls for WPF · Demonstrates how to create hybrid WPF software that leverages Windows Forms, ActiveX, or other non-WPF technologies · Explains how to exploit new Windows Vista features in WPF applications
Full Color: Figures and code appear as they do in Visual Studio. Universal Windows apps are a total game-changer. You can now write once and deploy your app to any modern PC, tablet, phone, or other Windows device. Suddenly, it’s quick and easy to serve new devices and form factors, sharing unified assets ranging from code to styles to user controls. It has never been easier to reach multiple-device markets! Now, the world’s #1 expert on Microsoft XAML brings together all the knowledge Windows developers need to build universal apps that adapt smoothly for any device running Windows 8.1, Windows Phone 8.1, or their successors. Drawing on his unsurpassed personal experience and direct input from Microsoft’s Windows and Visual Studio teams, Adam Nathan illuminates core development concepts, answers your most important questions, and candidly assesses the technology’s strengths and limitations. This full-color guide walks you through every key task involved in building a universal Windows app: layout and input, working with the app model, using advanced controls, leveraging XAML’s powerful rich media features, and much more. Detailed information on how to... Quickly build universal, localized apps that exploit the vast global scale of the Windows Store Size, position, and transform elements within layouts that gracefully adapt to different devices Handle input from touch, mouse, pen, keyboard, and any sensor Monetize apps with Windows Store sales, in-app purchases, and advertising Make the most of controls for managing content, items, text, images, media, speech, and more Create efficient 2D vector graphics and animations Use styles, templates, and visual states to redesign controls without losing functionality Bind data sources to simplify data presentation and updates Easily integrate data from apps, users, and networks Support Windows app commands: Search, Share, Print, Play, Project, Settings Use contracts to build apps that cooperate to perform complex tasks Improve the user experience even when your app isn’t running
Master Windows 8.1/Windows Runtime Programming Through 80 Expert Projects This is the most complete, hands-on, solutions-focused guide to programming modern Windows applications with the Windows Runtime. Leading Windows development consultants Jeremy Likness and John Garland present easy-to-adapt C# and XAML example code for more than 80 projects. Their real-world application examples help you apply Windows 8.1’s best improvements, including large tiles, the new search control, flyouts, command bars, native WinRT networking, and new deployment and sideloading options. Drawing on their pioneering experience, they illuminate key areas of the Windows Runtime API, offering uniquely detailed coverage of encryption, cloud connectivity, devices, printers, and media integration. You’ll find cutting-edge tips and tricks available in no other book. This is an indispensable resource for all intermediate-to-advanced Windows developers, and for any architect building desktop, tablet, or mobile solutions with Microsoft technologies. Its focus on both C# and XAML will make it valuable to millions of Windows developers already familiar with Silverlight, WPF, and/or .NET. Coverage includes • Creating robust app interfaces with the newest XAML controls, including flyouts and command bars • Saving data in a persistent “roaming zone” for syncing across Windows 8.1 devices • Using Visual State Manager (VSM) to build apps that adapt to various device resolutions and orientations • Integrating virtually any form of data into your apps • Connecting with web services, RSS, Atom feeds, and social networks • Securing apps via authentication, encrypting, signing, and single sign-on with Microsoft Account, Facebook, Google, and more • Leveraging Windows 8.1 media enhancements that improve battery life and app performance • Networking more effectively with Windows 8.1’s revamped HTTP implementation and new location APIs • Using Tiles and Toasts to keep apps alive and connected, even when they aren’t running • Enabling users to send content between devices via NFC tap and send • Ensuring accessibility and globalizing your apps • Efficiently debugging, optimizing, packaging, and deploying your apps • Building sideloadable apps that don’t have to be published in Windows Store “This book doesn’t just focus on singular concepts, it also provides end-to-end perspective on building an app in WinRT. It is one of those essential tools for Windows developers that will help you complete your software goals sooner than without it!” —Tim Heuer, Principal Program Manager Lead, XAML Platform, Microsoft Corporation
If you want to build applications that take full advantage of Windows Vista's new user interface capabilities, you need to learn Microsoft's Windows Presentation Foundation (WPF). This new edition, fully updated for the official release of .NET 3.0, is designed to get you up to speed on this technology quickly. By page 2, you'll be writing a simple WPF application. By the end of Chapter 1, you'll have taken a complete tour of WPF and its major elements. WPF is the new presentation framework for Windows Vista that also works with Windows XP. It's a cornucopia of new technologies, which includes a new graphics engine that supports 3-D graphics, animation, and more; an XML-based markup language, called XAML, for declaring the structure of your Windows UI; and a radical new model for controls. This second edition includes new chapters on printing, XPS, 3-D, navigation, text and documents, along with a new appendix that covers Microsoft's new WPF/E platform for delivering richer UI through standard web browsers -- much like Adobe Flash. Content from the first edition has been significantly expanded and modified. Programming WPF includes: Scores of C# and XAML examples that show you what it takes to get a WPF application up and running, from a simple "Hello, Avalon" program to a tic-tac-toe game Insightful discussions of the powerful new programming styles that WPF brings to Windows development, especially its new model for controls A color insert to better illustrate WPF support for 3-D, color, and other graphics effects A tutorial on XAML, the new HTML-like markup language for declaring Windows UI An explanation and comparison of the features that support interoperability with Windows Forms and other Windows legacy applications WPF represents the best of the control-based Windows world and the content-based web world. Programming WPF helps you bring it all together.