: Matthew MacDonald
: Pro Silverlight 3 in VB
: Apress
: 9781430224280
: 1
: CHF 40.80
:
: Allgemeines, Lexika
: English
: 640
: Wasserzeichen
: PC/MAC/eReader/Tablet
: PDF

Silverlight is a lightweight browser plug-in that frees your code from the traditional confines of the browser. It's a rules-changing, groundbreaking technology that allows you to run rich client applications right inside the browser. Even more impressively, it's able to host true .NET applications in non-Microsoft browsers (like Firefox) and on non-Microsoft platforms (like Mac OS X). Silverlight is still new and evolving fast, and you need a reliable guidebook to make sense of it.

Pro Silverlight 3 in VB, Second Editionis the perfect reference to ensure you are informed and up to date: you'll learn about the features that put Silverlight in direct competition with Adobe Flash, such as rich support for 2D drawing, animations, and media playback, and best of all, you'll experience the plumbing of .NET and the design model of WPF through Silverlight-all of the same .NET technology that developers use to design next-generation Windows applications. AuthorMatthew MacDonald provides an expertly crafted tutorial written from professional developer to professional developer. You'll learn to create rich media applications using Silverlight in the environment you're most productive in-no matter what the target platform.



Matthew MacDonald is an author,educator, and MCSD developer who has a passion for emerging technologies. He isthe author of more than a dozen books about .NET programming. In a dimly-remembered past life, he studied English literature and theoretical physics.
Contents at a Glance5
Table of Contents 6
About the Author22
About the Technical Reviewer23
Acknowledgments24
Introduction25
Understanding Silverlight25
About This Book32
The Last Word34
CHAPTER 1 Introducing Silverlight35
Silverlight Design Tools35
Visual Studio vs. Expression Blend36
Understanding Silverlight Websites37
Creating a Stand-Alone Silverlight Project38
Creating a Simple Silverlight Page41
Adding Event Handling Code43
Testing a Silverlight Application45
Creating an ASP.NET-Hosted Silverlight Project46
ASP.NET Controls That Render Silverlight Content50
Mixing ASP.NET Controls and Silverlight Content51
Silverlight Compilation and Deployment51
Compiling a Silverlight Application51
Deploying a Silverlight Application53
Silverlight Core Assemblies55
Silverlight Add-On Assemblies56
Assembly Caching56
The HTML Entry Page58
Sizing the Silverlight Content Region60
Silverlight Parameters60
Alternative Content62
Creating a Friendly Install Experience62
The Mark of the Web63
The Last Word65
CHAPTER 2 XAML66
XAML Basics67
XAML Namespaces67
Core Silverlight Namespaces68
Design Namespaces69
Custom Namespaces70
The Code-Behind Class71
Naming Elements72
Properties and Events in XAML72
Simple Properties and Type Converters74
Complex Properties75
Attached Properties77
Nesting Elements78
Events81
The Full Eight Ball Example82
XAML Resources83
The Resources Collection83
The Hierarchy of Resources85
Accessing Resources in Code86
Organizing Resources with Resource Dictionaries87
Element-to-Element Binding89
One-Way Binding89
Two-Way Binding91
The Last Word92
CHAPTER 3 Layout93
The Layout Containers93
The Panel Background95
Borders97
Simple Layout with the StackPanel98
Layout Properties100
Alignment101
Margins102
Minimum, Maximum, and Explicit Sizes104
The WrapPanel and DockPanel106
The WrapPanel107
The DockPanel108
The Grid110
Fine-Tuning Rows and Columns112
Nesting Layout Containers113
Spanning Rows and Columns115
The GridSplitter116
Coordinate-Based Layout with the Canvas119
Layering with ZIndex121
Clipping121
Custom Layout Containers123
The Two-Step Layout Process123
MeasureOverride()123
ArrangeOverride()125
The UniformGrid126
Sizing Pages131
Scrolling133
Scaling135
Full Screen137
The Last Word138
CHAPTER 4 Dependency Properties and Routed Events140
Dependency Properties140
Defining and Registering a Dependency Property141
Dynamic Value Resolution143
Attached Properties144
The WrapBreakPanel Example145
Routed Events148
The Core Element Events148
Event Bubbling151
Handled (Suppressed) Events152
An Event Bubbling Example153
Mouse Movements156
The Mouse Wheel156
Capturing the Mouse158
A Mouse Event Example159
Mouse Cursors162
Key Presses163
Key Modifiers165
Focus166
The Last Word166
CHAPTER 5 Elements168
The Silverlight Elements168
Static Text172
Font Properties174
Standard Fonts175
Font Embedding176
Underlining177
Runs178
Wrapping Text179
Images179
Image Sizing180
Image Errors181
Content Controls182
The Content Property183
Aligning Content185
Buttons186
The HyperlinkButton186
The ToggleButton and RepeatButton187
The CheckBox188
The RadioButton188
Tooltips and Pop-Ups189
Customized ToolTips190
The Popup192
Items Controls193