logo资料库

Microsoft Expression Blend 4 Step by Step.pdf

第1页 / 共433页
第2页 / 共433页
第3页 / 共433页
第4页 / 共433页
第5页 / 共433页
第6页 / 共433页
第7页 / 共433页
第8页 / 共433页
资料共433页,剩余部分请下载后查看
Copyright
Contents at a Glance
Table of Contents
Acknowledgements
Introduction
**Chapter 1. Welcome to the Silverlight and WPF World
Introducing Silverlight and WPF
The Designer/Developer Workflow
Expression Studio: The Designer’s World
Visual Studio: The Developer’s World
Key Points
Chapter 2. Exploring the Expression Blend 4 IDE
Downloading and Installing Expression Blend 4 and Supporting Tools
Downloading Expression Blend 4, Trial Version
Downloading the .NET Framework 4 Runtime
Downloading Silverlight 4
Installing the .NET Framework 4 Runtime
Installing Expression Studio 4 Ultimate with Expression Blend 4
Installing Silverlight 4
Opening and Testing Your First Silverlight Project
Exploring the User Interface
Exploring the Panels
Understanding the Tools Panel, Authoring Views, and Workspace Configurations
Customizing the User Interface
Changing the Color Scheme, Artboard Background, and Other Options
Controlling Expression Blend’s Panels
Switching Between Workspaces
Key Points
Chapter 3. Designing an Interface
Visual Elements
Creating a New Project
Using Basic Shapes
Drawing Paths
Using Custom Shapes
Using Controls
Using Layout Panels
Arranging Objects
Using Images and Video
Using Images
Using Video
Key Points
Chapter 4. XAML and C#
XAML—What Is It?
Using the XAML Editor in Expression Blend
XAML Objects
XAML Properties
The XAML Root Element
Naming Objects
Introducing C# for Designers
Objects, Classes, and Other Terminology
XAML Code and Code-Behind Files
Creating Objects in C#
Using Event Handlers
Key Points
Chapter 5. Animations and Transformations
Transformation
Resizing (Not a Transformation)
Transformations
Animation
Creating a Storyboard and Adding an Animation
Controlling the Storyboard
Changing the Storyboard
Modifying an Animation and Adding New Keyframes
Easing an Animation
Using Storyboards
Key Points
Chapter 6. Adding Interactivity
Behaviors
The Basics of Behaviors
Using Default Behaviors
Using the ToggleButton Control to Change Properties
Switching Visual States
Key Points
Chapter 7. Creating Design Assets
Using Expression Design
Exploring the Expression Design Toolbox
The Properties Panel
The Layers Panel
The Action Bar
Preparing Assets
Exporting to XAML from Expression Design
Importing Design Assets from Adobe Applications
Key Points
Chapter 8. Resources
Color Resources
Brush Resources
Image Brush Resources
Other Resources
Modifying Resources
Working with External Resource Dictionaries
Key Points
Chapter 9. Skinning Controls
Structure of Common Silverlight Controls
The Button Control
The CheckBox Control
The Slider Control
The TextBox Control
The ScrollBar Control
The ListBox Control
Creating and Using Styles
Templates
Creating Beautiful Custom Buttons
Creating Silverlight Themes
Drawing Controls
Skinning a Control for a Theme
Optimizing an Output Theme
Template Binding
Key Points
Chapter 10. Working with Data
Sample Data
Creating and Modifying Sample Data
Changing a Data Template
Data Binding
Element Property Binding
Using a Master/Details Scenario to Display Data
Key Points
Chapter 11. Using SketchFlow
Sketching
Creating and Running a SketchFlow Project
Creating an Application Flow
Navigation and Component Screens
Adding Controls and Data
Adding Controls to Your Prototype
Using Sample Data
Sketch Illustrations
Adding Interactivity to a SketchFlow Project
Adding Additional Navigation
Using States and Behaviors
Changing SketchFlow Player Settings
Packaging a Prototype
Getting Feedback
Generating Documentation
Key Points
Chapter 12. Designer/Developer Collaboration
A Typical Design Workflow
The Designer’s Role
The Developer’s Role
Key Points
Index
Author Bios
www.allitebooks.com
Microsoft® Expression Blend® 4 Step by Step Elena Kosinska Chris Leeds
Published with the authorization of Microsoft Corporation by: O’Reilly Media, Inc. 1005 Gravenstein Highway North Sebastopol, CA 95472 Copyright © 2011 by Elena Kosinska and MediaCarbon, Inc. All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. Unless otherwise noted, the example companies, organizations, products, domain names, email addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, email address, logo, person, place, or event is intended or should be inferred. Microsoft Press titles may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://my.safaribooksonline.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without express written permission of O’Reilly Media, Inc. 1 2 3 4 5 6 7 8 9 QG 6 5 4 3 2 1 Microsoft, Microsoft Press, the Microsoft Press brand, Access, ASP.NET, DirectX, DreamSpark, Deep Zoom, Excel, Expression Blend, Expression Design, Expression Encoder, Expression Studio, Expression Web, FrontPage, .NET, Office, Silverlight, SQL Server, Visual Basic, Visual C++, Visual C#, Visual Studio, Visual Web Developer, Web Platform, WebsiteSpark, and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. This book expresses the author’s views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the author, O’Reilly Media, Inc., Microsoft Corporation, nor their respective resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book. Acquisitions and Developmental Editor: Russell Jones Production Editor: Adam Zaremba Editorial Production: Online Training Solutions, Inc. Technical Reviewer: Kathleen Anderson Illustrator: Robert Romano Indexer: Ginny Munroe Cover: Karen Montgomery 978-0-735-63901-0 www.allitebooks.com
Dedication This book is dedicated to my lovely family—my husband, Konstantin, who always believes in me and lends moral support to all my projects, and my beautiful newborn son, Leo, who gave me inspiration for this book. –Elena Kosinska www.allitebooks.com
www.allitebooks.com
Contents at a Glance 1 Welcome to the Silverlight and WPF World . . . . . . . . . . . . . . . . . . 1 2 Exploring the Expression Blend 4 IDE . . . . . . . . . . . . . . . . . . . . . . 13 3 Designing an Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 4 XAML and C# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 5 Animations and Transformations . . . . . . . . . . . . . . . . . . . . . . . . . 127 6 Adding Interactivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 7 Creating Design Assets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 8 Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 9 Skinning Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247 10 Working with Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289 11 Using SketchFlow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321 12 Designer/Developer Collaboration . . . . . . . . . . . . . . . . . . . . . . . . 363 v www.allitebooks.com
www.allitebooks.com
Table of Contents Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xiii Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv 1 Welcome to the Silverlight and WPF World . . . . . . . . . . . . . . . . . . 1 Introducing Silverlight and WPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 The Designer/Developer Workflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Expression Studio: The Designer’s World . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Visual Studio: The Developer’s World . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Key Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2 Exploring the Expression Blend 4 IDE . . . . . . . . . . . . . . . . . . . . . . 13 Downloading and Installing Expression Blend 4 and Supporting Tools . . . . . . 14 Downloading Expression Blend 4, Trial Version . . . . . . . . . . . . . . . . . . . . . 14 Downloading the .NET Framework 4 Runtime . . . . . . . . . . . . . . . . . . . . . . 15 Downloading Silverlight 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Installing the .NET Framework 4 Runtime . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Installing Expression Studio 4 Ultimate with Expression Blend 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Installing Silverlight 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Opening and Testing Your First Silverlight Project . . . . . . . . . . . . . . . . . . . . . . . . 21 Exploring the User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Exploring the Panels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Understanding the Tools Panel, Authoring Views, and Workspace Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Customizing the User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Changing the Color Scheme, Artboard Background, and Other Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Controlling Expression Blend’s Panels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Switching Between Workspaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Key Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 vii www.allitebooks.com
分享到:
收藏