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

Chapter 5. Working with Data

Data makes the world go round. I'm sure you have heard this phrase before, and Silverlight is no stranger to that saying. Silverlight offers a rich platform for working with data, and in this chapter, we are going to cover it thoroughly. We will discuss data binding, a major concept for working with data in Silverlight. We will then move on to discussing data formatting and value converters; and finish off with data validation, which is something that no data-driven application is complete without.

In this chapter, we will cover the following topics:

  • Implementing data binding

  • Formatting data

  • Creating and consuming value converters

  • Implementing data validation

Implementing data binding

Data binding, at its core, provides a simple way for a Silverlight developer to work with data by separating the display module from the data management module. By establishing a connection between data objects from the backend and the UI layer, you get a mechanism that lets you update...