Adam Nathan - WPF 4 Unleashed.pdf

(26312 KB) Pobierz
782728896.001.png
Adam Nathan
WPF 4
UNLEASHED
782728896.002.png 782728896.003.png 782728896.004.png
 
Editor-in-Chief
Karen Gettman
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
Executive Editor
Neil Rowe
Development Editor
Mark Renfrow
Managing Editor
Kristy Hart
Project Editor
Betsy Harris
Copy Editor
Kitty Wilson
Indexer
Erika Millen
1. Windows presentation foundation. 2. Application software. 3. Microsoft .NET
Proofreader
Kathy Ruiz
Technical Editors
Dwayne Need
Robert Hogue
Joe Castro
Jordan Parker
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
Publishing Coordinator
Cindy Teeters
Book Designer
Gary Adair
Every effort has been made to make this book as complete and as accurate as possi-
ble, 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.
Composition
Bronkella Publishing LLC
Sams Publishing offers excellent discounts on this book when ordered in quantity for
Introduction ................................................................................... 1
Why WPF, and What About Silverlight? .............................................. 9
XAML Demystified ......................................................................... 21
WPF Fundamentals ........................................................................ 73
Sizing, Positioning, and Transforming Elements .................................. 97
Layout with Panels ....................................................................... 115
Input Events: Keyboard, Mouse, Stylus, and Multi-Touch .................... 159
Structuring and Deploying an Application ........................................ 195
Exploiting Windows 7 ................................................................... 233
Content Controls ......................................................................... 261
Items Controls ............................................................................. 275
Images, Text, and Other Controls .................................................... 309
Resources .................................................................................... 343
Data Binding ............................................................................... 363
Styles, Templates, Skins, and Themes ............................................... 415
1
Who Should Read This Book? ............................................................ 2
Software Requirements ..................................................................... 3
Code Examples ................................................................................ 4
How This Book Is Organized .............................................................. 4
Part I: Background .................................................................... 4
Part II: Building a WPF Application ............................................. 4
Part III: Controls ...................................................................... 5
Part IV: Features for Professional Developers ................................. 5
Part V: Rich Media ................................................................... 5
Part VI: Advanced Topics ........................................................... 6
Conventions Used in This Book ......................................................... 6
9
A Look at the Past .......................................................................... 10
Enter WPF .................................................................................... 11
The Evolution of WPF ..................................................................... 14
Enhancements in WPF 3.5 and WPF 3.5 SP1 ............................... 15
Enhancements in WPF 4 ......................................................... 16
What About Silverlight? .................................................................. 18
Summary ...................................................................................... 19
21
Zgłoś jeśli naruszono regulamin