Book Image

MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide

By : Johnny Tordgeman
Book Image

MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide

By: Johnny Tordgeman

Overview of this book

Microsoft Silverlight is a powerful development platform for creating engaging, interactive applications for many screens across the Web, desktop, and mobile devices. Silverlight is also a great (and growing) Line-Of-Business platform and is increasingly being used to build data-driven business applications. Silverlight is based on familiar .NET languages such as C# which enables existing .NET developers to get started developing rich internet applications almost immediately. "MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide" will show you how to prepare for and pass the (70-506): TS: Microsoft Silverlight 4 Development exam.Packed with practical examples and Q&As, MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide starts by showing you how to lay out a user interface, enhance the user interface, implement application logic, work with data and interact with a host platform amongst others.
Table of Contents (15 chapters)
MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide
About the Author
About the Reviewers

Handling events

If you have ever worked with events in any .NET-based language, you will feel right at home with Silverlight. Just like other .NET languages, you can select an element in the design area, and generate the event handler automatically using Visual Studio 2010. Of course, you are not limited to adding events only in the designer, you can attach events in the code behind as well.

The Silverlight event model is based upon the concept of bubbling events. This means that a control can raise an event that will be handled by its parent control. For example, if we have a Border control that has a StackPanel with images as its content, we can handle the MouseLeftButtonDown event on the border level, instead of having to handle it for each individual image. Bubbling is a type of routed events and the only one that Silverlight supports. Bubbling means going up the control hierarchy and while WPF does support the tunneling type of routed event (going down the hierarchy), Silverlight does...