Accelerated Silverlight 2.pdf

(4453 KB) Pobierz
674776604 UNPDF
674776604.051.png
Accelerated Silverlight 2
Jeff Scanlon
674776604.062.png 674776604.073.png 674776604.084.png 674776604.001.png 674776604.002.png 674776604.003.png 674776604.004.png 674776604.005.png 674776604.006.png 674776604.007.png 674776604.008.png 674776604.009.png 674776604.010.png 674776604.011.png 674776604.012.png 674776604.013.png 674776604.014.png 674776604.015.png 674776604.016.png 674776604.017.png 674776604.018.png 674776604.019.png 674776604.020.png 674776604.021.png
Accelerated Silverlight 2
Copyright © 2008 by Jeff Scanlon
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, or by any information storage or retrieval
system, without the prior written permission of the copyright owner and the publisher.
ISBN-13 (pbk): 978-1-4302-1076-4
ISBN-10 (pbk): 1-4302-1076-1
ISBN-13 (electronic): 978-1-4302-1075-7
ISBN-10 (electronic): 1-4302-1075-3
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence
of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark
owner, with no intention of infringement of the trademark.
Lead Editor: Ewan Buckingham
Technical Reviewer: Fabio Claudio Ferracchiati
Editorial Board: Clay Andres, Steve Anglin, Mark Beckner, Ewan Buckingham, Tony Campbell, Gary Cornell,
Jonathan Gennick, Michelle Lowman, Matthew Moodie, Jeffrey Pepper, Frank Pohlmann, Ben
Renow-Clarke, Dominic Shakeshaft, Matt Wade, Tom Welsh
Project Manager: Richard Dal Porto
Copy Editors: Damon Larson, Ami Knox
Associate Production Director: Kari Brooks-Copony
Production Editor: Jill Ellis
Compositor: Kinetic Publishing Services, LLC
Proofreader: Linda Seifert
Indexer: Julie Grady
Artist: Kinetic Publishing Services, LLC
Cover Designer: Kurt Krames
Manufacturing Director: Tom Debolski
Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor,
New York, NY 10013. Phone 1-800-SPRINGER, fax 201-348-4505, e-mail orders-ny@springer-sbm.com , or
visit http://www.springeronline.com .
For information on translations, please contact Apress directly at 2855 Telegraph Avenue, Suite 600, Berkeley,
CA 94705. Phone 510-549-5930, fax 510-549-5939, e-mail info@apress.com , or visit http://www.apress.com .
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use.
eBook versions and licenses are also available for most titles. For more information, reference our Special
Bulk Sales–eBook Licensing web page at http://www.apress.com/info/bulksales .
The information in this book is distributed on an “as is” basis, without warranty. Although every precau-
tion has been taken in the preparation of this work, neither the author(s) nor Apress shall have any
liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly
or indirectly by the information contained in this work.
The source code for this book is available to readers at http://www.apress.com . You may need to answer
questions pertaining to this book in order to successfully download the code.
674776604.022.png 674776604.023.png 674776604.024.png 674776604.025.png 674776604.026.png 674776604.027.png 674776604.028.png 674776604.029.png 674776604.030.png 674776604.031.png 674776604.032.png 674776604.033.png 674776604.034.png 674776604.035.png 674776604.036.png 674776604.037.png 674776604.038.png 674776604.039.png 674776604.040.png 674776604.041.png 674776604.042.png 674776604.043.png
To Corey Chang, for showing me just how much patience can pay off.
674776604.044.png 674776604.045.png 674776604.046.png 674776604.047.png 674776604.048.png 674776604.049.png 674776604.050.png 674776604.052.png 674776604.053.png 674776604.054.png 674776604.055.png 674776604.056.png 674776604.057.png 674776604.058.png 674776604.059.png 674776604.060.png 674776604.061.png 674776604.063.png 674776604.064.png 674776604.065.png 674776604.066.png 674776604.067.png
Contents at a Glance
About the Author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
About the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
CHAPTER 1
Introducing Silverlight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
CHAPTER 2
Getting to Know XAML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
CHAPTER 3
Creating User Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
CHAPTER 4
Network Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
CHAPTER 5
Working with Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
CHAPTER 6
Working with Media . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
CHAPTER 7
Extending the User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
CHAPTER 8
Styling and Templating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
CHAPTER 9
Animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
CHAPTER 10 Dynamic Languages and the Browser . . . . . . . . . . . . . . . . . . . . . . . . . 207
CHAPTER 11 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
CHAPTER 12 Testing and Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
CHAPTER 13 Packaging and Deploying Silverlight Applications . . . . . . . . . . . . . . 271
CHAPTER 14 Advanced Topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
CHAPTER 15 Case Study: Campus Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
v
674776604.068.png 674776604.069.png 674776604.070.png 674776604.071.png 674776604.072.png 674776604.074.png 674776604.075.png 674776604.076.png 674776604.077.png 674776604.078.png 674776604.079.png 674776604.080.png 674776604.081.png 674776604.082.png 674776604.083.png 674776604.085.png 674776604.086.png 674776604.087.png 674776604.088.png 674776604.089.png 674776604.090.png 674776604.091.png
Zgłoś jeśli naruszono regulamin