01_57874x ffirs.qxd 8/15/05 3:40 PM Page iii Professional WinFX™ Beta: Covers “Avalon” Windows Presentation Foundation and “Indigo” Windows Communication Foundation Jean-Luc David, Bill Ryan, Ron DeSerranno, and Alexandra Young 01_57874x ffirs.qxd 8/15/05 3:40 PM Page i Professional WinFX™ Beta: Covers “Avalon” Windows Presentation Foundation and “Indigo” Windows Communication Foundation 01_57874x ffirs.qxd 8/15/05 3:40 PM Page ii 01_57874x ffirs.qxd 8/15/05 3:40 PM Page iii Professional WinFX™ Beta: Covers “Avalon” Windows Presentation Foundation and “Indigo” Windows Communication Foundation Jean-Luc David, Bill Ryan, Ron DeSerranno, and Alexandra Young 01_57874x ffirs.qxd 8/15/05 3:40 PM Page iv Professional WinFX™ Beta: Covers “Avalon” Windows Presentation Foundation and “Indigo” Windows Communication Foundation Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2005 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN-13: 978-0-7645-7874-8 ISBN-10: 0-7645-7874-X Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 1B/TR/QY/QV/IN No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or byanymeans, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Pub- lisher, orauthorization through payment of the appropriate per-copy feeto the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA01923, (978) 750-8400, fax (978) 646-8600. Requests tothe Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at http://www.wiley.com/go/permissions. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY:THE PUBLISHER AND THE AUTHOR MAKE NO REP- RESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACYOR COMPLETENESS OF THE CON- TENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR APARTICULAR PURPOSE. NO WARRANTY MAY BE CRE- ATED OR EXTENDED BYSALES OR PROMOTIONALMATERIALS. THE ADVICE AND STRATEGIES CON- TAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONALSERVICES. IF PROFESSIONALASSISTANCE IS REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE AUTHOR SHALLBE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZATION OR WEBSITE IS REFERRED TO IN THIS WORK AS ACITATION AND/OR APOTENTIALSOURCE OF FUR- THER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFOR- MATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAYHAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ. For general information on our other products and services or to obtain technical support, please contact our Customer Care Department within the U.S. at (800) 762-2974, outside the U.S. at (317) 572-3993 or fax (317) 572-4002. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. Trademarks:Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. WinFX is a trademark of Microsoft Corporation in theUnited States and/or other countries. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book. 01_57874x ffirs.qxd 8/15/05 3:40 PM Page v About the Authors Jean-Luc Davidis a Toronto-based software developer and consultant. He founded Stormpixel.com in 1998, where he specializes in web design and in developing custom desktop, Tablet and Windows Mobile applications for his clients. Jean-Luc has written many technical articles for companies such as ASPToday.com, C|NET and XML.COM. Jean-Luc has the unique distinction of being the first Canadian to receive the Microsoft .NET MVPAward. Ron DeSerrannois the founder and CEO of Mobiform Software Ltd. His software development career first began at the Space and Atmospheric Research Group, Physics Department, at the University of Western Ontario. He was a Microsoft Certified Trainer and consultant and taught courses in both NewYork and Toronto. For five years, he was development lead and architect for Rockwell’s flagship Industrial Automation product RSView, an invaluable tool for globally scaled companies such as Kraft and General Motors. Other ventures include the establishment of BoardMaster Software and Motivus Software Ltd. Mr. DeSerranno is considered one of the leading authorities on XML-based graphics technologies and has been designing and developing world-class software products for many years. Hiscurrent focus is on WinFX by Microsoft. Bill Ryanis a Microsoft MVPin Windows Embedded Product group. He’s currently working as a seniorsoftware developer at InfoPro, Inc in Augusta, Georgia. He is a .NET enthusiast and spends a lot of time working with bleeding-edge technologies. His favorite areas in technology are ADO.NET, the Compact Framework, Microsoft Speech Server, Biztalk Server, and Yukon. Outside of technology, his interests include reading, cult movies, techno-music, and cuckoo clocks. You can usually find Bill in one of the Microsoft .NET newsgroups, his blog (www.msmvps.com/WilliamRyan) or some of his Web sites (www.knowdotnet.com, www.devbuzz.com). Alexandra Youngof Mobiform Software is the team leader for Avalon and XAMLeducation as well as user interface design for Mobiform’s XAMLDesigner for WinFX, Aurora. With over six years experience in web, multimedia, and database design, Alexandra has acquired necessary skills to program in XAML, ASP, ASP.Net, Visual Basic, VB.Net, T/SQL, and C#. Fully under- standing the tools available to designers and developers has led to her passion for, success in, and drive to understand and evangelize new software technologies. These skills have been instrumental in the education of Mobiform’s customers. Experience in various software products has given Alexandra a full understanding of the limitations andbenefits of products produced by the likes of Microsoft, Adobe, and Macromedia. This knowledge has fueled her enthusiasm for the universal benefits of Microsoft’s “Avalon” API and XAMLmarkup language. She knows that this technology will revolutionize the way we design and build Web and software applications. 01_57874x ffirs.qxd 8/15/05 3:40 PM Page vi 01_57874x ffirs.qxd 8/15/05 3:40 PM Page vii For my beautiful wife,Miho,who has patiently stood by me and supported me through the writing of this book. A special thanks goes out to the David family for their ongoing support. 01_57874x ffirs.qxd 8/15/05 3:40 PM Page viii