About This eBook
ePUB is an open, industry-standard format for eBooks. However, support of ePUB and its many features varies across reading devices and applications. Use your device or app settings to customize the presentation to your liking. Settings that you can customize often include font, font size, single or double column, landscape or portrait mode, and figures that you can click or tap to enlarge. For additional information about the settings and features on your reading device or app, visit the device manufacturers Web site.
Many titles include programming code or configuration examples. To optimize the presentation of these elements, view the eBook in single-column, landscape mode and adjust the font size to the smallest setting. In addition to presenting code and configurations in the reflowable text format, we have included images of the code that mimic the presentation found in the print book; therefore, where the reflowable format may compromise the presentation of the code listing, you will see a Click here to view code image link. Click the link to view the print-fidelity code image. To return to the previous page viewed, click the Back button on your device or app.
WPF 4.5 Unleashed
Adam Nathan
![Picture 1](/uploads/posts/book/58267/images/00005.jpeg)
800 East 96th Street, Indianapolis, Indiana 46240 USA
WPF 4.5 Unleashed
Copyright 2014 by Pearson Education
All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions. Nor is any liability assumed for damages resulting from the use of the information contained herein.
ISBN-13: 978-0-672-33697-3
ISBN-10: 0-672-33697-9
Library of Congress Control Number: 2013939232
Printed in the United States on America
First Printing July 2013
Editor-in-Chief
Greg Wiegand
Executive Editor
Neil Rowe
Development Editor
Mark Renfrow
Managing Editor
Kristy Hart
Senior Project Editor
Betsy Gratner
Indexer
Erika Millen
Proofreader
Kathy Ruiz
Technical Editors
Dwayne Need
Robert Hogue
Joe Castro
Jordan Parker
Publishing Coordinator
Cindy Teeters
Cover Designer
Mark Shirar
Senior Compositor
Gloria Schurick
Trademarks
All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Sams Publishing cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark.
Warning and Disclaimer
Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied. The information provided is on an as is basis. The author(s) and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book or from the use of the programs accompanying it.
Bulk Sales
Sams Publishing offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales. For more information, please contact
U.S. Corporate and Government Sales
1-800-382-3419
For sales outside of the U.S., please contact
International Sales
Some Praise for the First Edition of Windows Presentation Foundation Unleashed
The Nathan book is brilliantyoull love it. Publishers, take note: Id sure be buying a heck of a lot more technical books if more of them were like this one.
Jeff Atwood, codinghorror.com, cofounder of Stack Overflow
Windows Presentation Foundation Unleashed is a must-have book for anyone interested in learning and using WPF. Buy it, read it, and keep it close to your computer.
Josh Smith, Microsoft MVP
As we built the feature team that delivered the new WPF presentation layer for Visual Studio 2010, Windows Presentation Foundation Unleashed quickly became our must-read WPF reference book of choice, over and above other books on WPF and indeed internal documentation. Highly recommended for any developer wanting to learn how to make the most of WPF.
James Bartlett, senior lead program manager, Microsoft Visual Studio
Ive bought nearly all available WPF books, but the only one thats still on my desk is Windows Presentation Foundation Unleashed. It not only covers all WPF aspects, but it does it in the right, concise way so that reading it was a real pleasure.
Corrado Cavalli, Codeworks
Windows Presentation Foundation Unleashed is the most insightful WPF book there is. Dont be misled by its size; this book has the best introduction and deepest insights. This is the must-read for anyone getting started or wanting to get the most out of WPF.
Jaime Rodriguez, Microsoft client evangelist for Windows, WPF, Silverlight, and Windows Phone
I found Windows Presentation Foundation Unleashed to be an excellent and thorough introduction and guide to programming WPF. It is clearly written, easily understood, and yet still deep enough to get a good understanding of how WPF works and how to use it. Not a simple feat to accomplish! I heartily recommend it to all the students who take DevelopMentors WPF course! Anyone serious about doing WPF work should have a copy in their library.
Mark Smith, DevelopMentor instructor, author of DevelopMentors Essential WPF course
I have read Windows Presentation Foundation Unleashed from cover to cover and have found it to be really the most comprehensive material on WPF. I cant think of even a single instance when I have not been able to find the solution (or a pointer to one) every time that I have picked up the book to figure out the intricacies of WPF.
Durgesh Nayak, team leader, Axis Technical Group
Windows Presentation Foundation Unleashed is the book that made WPF make so much sense for me. Without Adams work, WPF would still be a mystery to me and my team. The enthusiasm for WPF is evident from the offset and it really rubs off on the reader.
Peter OHanlon, managing director, Lifestyle Computing Ltd
Adam Nathans Windows Presentation Foundation Unleashed must surely be considered one of the seminal books on WPF. It has everything you need to help you get to grips with the learning cliff that is WPF. It certainly taught me loads, and even now, after several years of full-time WPF development, Windows Presentation Foundation Unleashed is never far from my hand.
Sacha Barber, Microsoft MVP, CodeProject MVP, author of many WPF articles
Of all the books published about WPF, there are only three that I recommend. Windows Presentation Foundation Unleashed is my primary recommendation to developers looking to get up to speed quickly with WPF.
Mike Brown, Microsoft MVP, Client App Development, and president of KharaSoft, Inc.
Contents at a Glance