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
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Creating and consuming resource dictionaries


When we discussed styles in Chapter 3, Enhancing the User Interface, we realized that styles can be placed in various scopes throughout our application. Most of the time we will place styles at the global level, which means our App.xaml file may get messy quite fast. A commonly used strategy to enhance the App.xaml file is to place styles and resources that are related to one another into what's called a resource dictionary. When an application uses multiple resource dictionaries, these dictionaries will be merged at compile time.

A nice feature of resource dictionaries is their ability to be used as hosts to sample data at design time.

Utilizing sample data for a item template

When creating an application that uses a custom item template, it's easier to design the template when you can view the data you are designing it for. When you use the binding engine to bind data in Visual Studio, you are usually left in the cold. You can set the properties...