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 or modifying the control styles


Just like in real life, first impressions mean a lot. When your users need to fill out a form for example, which is more likely to get their attention, the plain old vanilla form or a customized styled form? The answer in most cases is a customized one.

Take a look at the following screenshots, which show the comparison between an unstyled (left) form and a styled (right) form in Silverlight:

The styling controls in Silverlight are very similar to the styling controls in HTML using Cascading Style Sheets (CSS). While it is possible (and valid) to add the style tag on almost any HTML elements and set all kinds of properties such as direction, font-weight, color, and so on; it can get messy (and not very readable) very fast. CSS was invented to help separate the visual code from the functional code, instead of setting the same style over and over again, for elements (like the textboxes in our form example) you can create a class once and just set it...