Introduction. Part I: Silverlight Fundamentals for ASP.NET Developers 1

Similar documents
DOT.NET MODULE 6: SILVERLIGHT

Beginning Silverlight 5 in C #

Silverlight Recipes. A Problem-Solution Approach. Apress* Jit Ghosh and Rob Cameron

Professional Silverlight 2

DOT NET SYLLABUS FOR 6 MONTHS

CHAPTER 1: INTRODUCING C# 3

Pro Business Applications with Silverlight 4

PART I: INTRODUCTION TO WINDOWS 8 APPLICATION DEVELOPMENT CHAPTER 1: A BRIEF HISTORY OF WINDOWS APPLICATION DEVELOPMENT 3

10262A VB: Developing Windows Applications with Microsoft Visual Studio 2010

Variable Scope The Main() Function Struct Functions Overloading Functions Using Delegates Chapter 7: Debugging and Error Handling Debugging in Visual

CHAPTER 1: GETTING STARTED WITH ASP.NET 4 1

Microsoft Silverlight 4 Business Application Development

Introduction p. 1 Getting Started Hello, Real World p. 9 Creating, Deploying, and Profiling an App p. 9 Understanding the App Package p.

Windows Presentation Foundation

Jim Jackson II Ian Gilman

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio

Developing Rich Internet Applications Using Microsoft Silverlight 4

Developing Windows Applications with Microsoft Visual Studio 2010

Beginning ASP.NET. 4.5 in C# Matthew MacDonald

Before You Begin. and Visual Basic 1

Developing Windows Applications with Microsoft Visual Studio 2010

DE Developing Windows Applications with Microsoft Visual Studio 2010

Windows Presentation Foundation for.net Developers

DEVELOPING WINDOWS APPLICATIONS WITH MICROSOFT VISUAL STUDIO 2010

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010

Apex TG India Pvt. Ltd.

C# Programming: From Problem Analysis to Program Design. Fourth Edition

Developing Windows Applications with Microsoft Visual Studio 2010 (MS 10262)

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

10267 Introduction to Web Development with Microsoft Visual Studio 2010

Visual C# 2008 How to Program, 3/E Outline

Pro Windows 8.1. Development with. XAML and C# Jesse Liberty. Philip Japikse. Jon Galloway

--Microsoft-- --Windows Phone--

Windows Presentation Foundation. Jim Fawcett CSE687 Object Oriented Design Spring 2018

Visual Basic 2008 How to Program, 4/E Outline

Microsoft Visual Studio 2010

Chapters and Appendix F are PDF documents posted online at the book s Companion Website (located at

COURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010

CHAPTER 1: VISUAL STUDIO

Accelerated Silverlight 3

Silverlight. 2 Bible. Brad Dayley and Lisa DaNae Dayley

[MS10553]: Fundamentals of XAML and Microsoft Expression Blend

Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning

Introduction to Web Development with Microsoft Visual Studio 2010

NE Fundamentals of XAML and Microsoft Expression Blend

ALPHAPRIMETECH 112 New South Road, Hicksville, NY 11801

Open Source Library Developer & IT Pro

Pro JavaScript. Development. Coding, Capabilities, and Tooling. Den Odell. Apress"

DE Introduction to Web Development with Microsoft Visual Studio 2010

BCIS 4650 Visual Programming for Business Applications

"Charting the Course... SharePoint 2007 Hands-On Labs Course Summary

WPF. Source Module 01: Lesson1

COURSE OUTLINE MOC 20480: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3

Flex 3 Pre-release Tour

Beginning Silverlight 3

Fundamentals of XAML and Microsoft Expression Blend

COPYRIGHTED MATERIAL. viii. About the Authors...v Acknowledgments...vii Introduction...xxvii

Programming Windows, Sixth Edition

DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

Introduction to Web Development with Microsoft Visual Studio 2010 (10267A)

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio

Introducing. Silverlight 4. Gear up fast to develop line of business rich internet applications using Silverlight 4. Ashish Ghoda

Developing Native Windows Phone 7 Applications for SharePoint

brief contents PART 1 INTRODUCING WINDOWS PHONE... 1 PART 2 CORE WINDOWS PHONE... 57

Index. Windows 10 running, 199 suspended state, 199 terminate apps,

CHAPTER 1: INTRODUCTION TO THE IDE 3

Introduction p. 1 Who Should Read This Book? p. 2 Software Requirements p. 3 Code Examples p. 3 How This Book Is Organized p. 4 Conventions Used in

Road Map for Essential Studio 2010 Volume 1

What s New Essential Studio User Interface Edition

Introduction to Web Development with Microsoft Visual Studio 2010

Windows Presentation Foundation (WPF)

Road Map for Essential Studio 2011 Volume 4

HTML5 in Action ROB CROWTHER JOE LENNON ASH BLUE GREG WANISH MANNING SHELTER ISLAND

Building Rich Interactive Applications with Silverlight

Developing Web Applications Using Microsoft Visual Studio 2008 SP1

Programming Microsoft's Clouds

DOT NET Syllabus (6 Months)

Windows Presentation Foundation Programming Using C#

Chapter 1 Getting Started with Windows Presentation Foundation

COPYRIGHTED MATERIAL. Contents. Chapter 1: Introducing Microsoft Expression Web 1. Chapter 2: Building a Web Page 21. Acknowledgments Introduction

Telerik Test Studio. Web/Desktop Testing. Software Quality Assurance Telerik Software Academy

Pro Silverlight 3 in VB

Developing Web Applications Using ASP.NET Duration:56 Hours

What s New Essential Studio User Interface Edition, 2011 Volume 4

Professional SharePoint 2010 Development

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p.

"Charting the Course... MOC A Developing Data Access Solutions with Microsoft Visual Studio Course Summary

Flash Domain 2: Identifying Rich Media Design Elements

DEVELOPING WEB APPLICATIONS WITH MICROSOFT VISUAL STUDIO Course: 10264A; Duration: 5 Days; Instructor-led

Introduction... xxi. Chapter 1: Introducing Visual Basic In Depth... 2

P a g e 1. Danish Tecnological Institute. Developer Collection Online Course k Developer Collection

Developing ASP.NET MVC 5 Web Applications. Course Outline

Patrocinadores. Web Platforms. DEV002 The Microsoft Web Story. Jeff Prosise Cofounder, Wintellect ASP.NET 2.0 ASP.

Developing Rich Internet Applications Using Microsoft Silverlight 4

Pro JavaFX 2. Weiqi Gao, Ph.D. Stephen Chin. Apress* James L. Weaver. Dean Iverson with Johan Vos, Ph.D.

Foundations of Python

Index. Battling complexity, 211 Button controls properties, 54 Save button, 53 54

Road Map for Essential Studio 2011 Volume 2

Transcription:

Introduction xxi Part I: Silverlight Fundamentals for ASP.NET Developers 1 Chapter 1: Silverlight in a Nutshell 3 Uphill Struggle 3 Rich Client or Web Reach? 4 Silverlight Steps In 4 The Impact of Silverlight on Your Existing ASP.NET Real Estate 6 What You Should Still Do in ASP.NET 6 The Development Environment Overview 7 Summary 8 Chapter 2: Silverlight Architecture 9 Client/Server Architecture Overview 9 Platforms 10 The Server 11 The Client 11 Architecture 12 Presentation Core 13.NET Framework 16 Installed Files 23 ASP.NET Integration 24 ASP.NET Composite Controls 25 Using ASP.NET Application Services 25 Communicating with ASP.NET from Silverlight 26 Dynamic Generation of XAML from the Server 26 Using the ASP.NET Server Controls for Silverlight 27 Application Life Cycle 27 Updating Silverlight 28 Summary 29 COPYRIGHTED MATERIAL

Chapter 3: XAML Condensed 31 xiv Why All ASP.NET Developers Should Know the Basics 31 XAML Syntax and Terminology 33 Namespaces 33 White Space 34 Object and Property Elements 36 Type Converters 37 Markup Extensions 38 Attached Properties 40 Basic Drawing 41 The Code-Behind 46 Dynamically Loading XAML 49 Available Tools 56 Piecing It All Together 57 Summary 61 Chapter 4: Programming Silverlight 63 How a Silverlight Application Is Composed 63 Packaging a Silverlight Application 64 System.Windows.Application 66 Application Instantiation 69 A Basic Silverlight Page 72 JavaScript How Much You Need to Know 76 JavaScript The Basics 77 Object Model 77 Adding JavaScript to a Page 77 Variable Usage 78 Functions 78 Conditional Statements 79 Handling Events 80 DOM Manipulation 80 The Silverlight Object Model 84 DependencyObject, UIElement, and FrameworkElement 84 Walking the Tree 85 Events, Threading, and Browser Interaction 90 Events 90 Threading and Asynchrony 95 Browser Interaction 105 On-Demand XAP Loading 114 System.Net.WebClient 114 Summary 116

Part II: Developing ASP.NET Applications with Silverlight 119 Chapter 5: Creating the User Interface 121 Expression Suite A Whirlwind Tour 121 Expression Web 122 Expression Blend 123 Expression Design 129 Expression Media 129 Expression Encoder 130 Expression Studio 130 ASP.NET versus Silverlight Layout 130 Layout Options in ASP.NET 130 Layout Options in Silverlight 131 Full-Screen Support 154 Localization 162 Summary 165 Chapter 6: Silverlight Controls 167 Introduction to Silverlight Controls 168 Defining Controls in XAML 169 Handling Control Events Declaratively 170 Handling Control Events Programmatically 171 User Input Controls 172 The TextBlock Control 173 The TextBox Control 174 The PasswordBox Control 176 The Button Control 176 The HyperlinkButton Control 177 The CheckBox Control 178 The RadioButton Control 179 The RepeatButton Control 180 The Slider Control 182 The Calendar Control 183 The DatePicker Control 186 The ToolTip Control 187 Items Controls 188 The ListBox Control 189 The DataGrid Control 191 The ScrollViewer Control 193 The ComboBox Control 195 The Popup Control 196 xv

Media Controls 198 The Image Control 199 The MediaElement Control 200 Displaying Download Progress with the ProgressBar Control 202 The MultiScaleImage Control 203 Silverlight Toolkit Controls 205 AutoCompleteBox Control 206 WrapPanel Control 207 TreeView Control 208 Chart Control 210 Summary 212 Chapter 7: Styles and Templates 213 Styles 213 Applying Inline Styles 214 Specifying Styles in a Central Location 218 Templating 224 ControlTemplate 224 TemplateBinding 232 Integrating with ASP.NET 235 Using the ASP.NET Profile Provider 235 ImplicitStyleManager 239 Summary 242 Chapter 8: User Interaction 243 The Silverlight Interaction Context 243 Working with UIElements Events 244 Interacting with Input Devices 250 Getting the Most from Input Devices 258 Navigation 266 Silverlight Navigation in the ASP.NET World 266 Single Plug-in Navigation 267 Multiple Plug-in Navigation 280 Summary 283 Chapter 9: Communicating with the Server 285 Silverlight Networking and Communication Features 285 What Type of Data Can Silverlight Access and Process? 286 Supported Domains and URLs 286 xvi

Communication Options 286 Data-Processing Options 288 Cross-Domain Support 289 Flash Cross-Domain Policy Files 290 Silverlight Cross-Domain Policy Files 291 Creating Services for Silverlight 292 Creating a WCF Service for Silverlight 292 Creating an ASP.NET Web Service for Silverlight 301 Calling Services with Silverlight 304 Calling a WCF Service 304 Calling an ASP.NET Web Service 308 Calling REST APIs 310 Making RESTful Calls in Silverlight 310 Processing XML Data 314 Processing JSON Data 328 Working with Syndication Feeds 332 Using Sockets to Communicate over TCP 337 Using WCF Polling Duplex Services to Communicate over HTTP 347 Summary 359 Chapter 10: Working with Data 361 Data Framework 362 Exploring the Namespaces 363 Is That All? 364 Data-Binding Essentials 365 Binding 101 366 Binding in Practice 370 Conversions 382 Dependency Properties 384 Performance Considerations 386 Retrieving and Storing Data 387 Working with Data Repositories 387 Caching 401 Data Controls 401 Data Templates 402 DataGrid 403 Manipulating Data 407 Traditional Handling 407 LINQ 408 LINQ to XML 412 Validation 416 xvii

Input Validation 416 Using Dynamic Languages 418 Data-Binding Validation 419 Summary 420 Chapter 11: Creating Custom Controls 423 User Controls 423 Understanding User Controls 424 Creating User Controls 429 Customizing Current Controls 435 Understanding Visual Customization 435 Customizing with Styles 437 Customizing with Skins 440 Putting Everything Together 443 Custom Controls 447 What Is a Custom Control? 448 Your First Custom Control 449 Parts Model 454 Summary 460 Chapter 12: Securing Your Silverlight Application 461 You re under Attack! 461 The Security Model 463 Working in a Sandbox 466 Cross-Domain Security 470 Integrating with ASP.NET Security 470 Obfuscation 478 Cryptography 479 Summary 479 Chapter 13: Audio and Video 481 First Steps 481 Embedding Audio and Video in Your ASP.NET Application 482 Finer Control 491 Controlling Playback 491 Controlling Playback from ASP.NET 500 Timeline Markers 503 SetSource 512 Streaming 514 Summary 514 xviii

Chapter 14: Graphics and Animation 515 Breathing Life into ASP.NET 515 Before Silverlight 516 Silverlight-Enabled Graphics and Animation 516 Graphics in Silverlight 516 The Shape Class 517 Path and Geometry Objects 521 Painting with Brush Objects 526 Transforms 535 Image Handling 540 Image and BitmapImage 540 Advanced Panning and Zooming with Deep Zoom 542 Animating Your User Interface 547 Timeline 547 From/To/By Animations 547 Key Frame Animations 553 Summary 556 Chapter 15: Troubleshooting 559 Is There a Problem? 560 Common Types of Problems 560 Your Toolkit 562 Visual Studio 563 Debugging Your Application 566 HTTP Tracers 570 Red Gate s Reflector 575 Reducing the Likelihood of Problems 576 Unit Testing 576 UI Testing 581 Exception Handling 586 Instrumentation 587 Summary 587 Chapter 16: Performance 589 Performance Bottlenecks 590 Developers versus Designers 590 High Processor Usage 591 Low Frame Rate 591 Unresponsive UI 591 xix

Instrumentation 591 Monitoring the Frame Rate 592 Manual Timing 594 Improving Performance 596 Animation 597 Text 597 Game Loops 598 Windowless 600 Transparent Backgrounds 601 Opacity and Visibility 602 Full-Screen Mode 603 Height and Width 605 XAML versus Images 606 Threading 607 JavaScript versus Managed Code 607 Element Reuse 611 Layouts 612 Working with Data 613 Reduce Chatty Applications 616 Runtime Performance 617 Summary 619 Index 621 xx