Possibilities in Silverlight 4 with VS 2010: Part II


Introduction

In Part I of this article series we have seen some features available to Silverlight 4 with VS 2010. We will continue to explore more in this article.

Data Context Editing in VS 2010

As we know Data Context property is missing in VS 2008, see below figure:

image1.gif

But in VS 2010, we have not only the property has added but with a great support for Data Context.

image2.gif

Choosing Source

Choosing a source is very easy in VS 2010, such as if you want to add Element Name or Relative Source just browse through and you will bind to it at ease.

image3.gif

Choosing Path

Similar to selecting Element Name or Relative Source, we can select a Path by Selecting from the List displayed on the left side and choosing from right side pane.

image4.gif

Choosing Converter

As shown in below figure, you can choose your Converter if you have any. It would be listed in the Listbox displayed in the left side.

image5.gif

Choosing Options

We have a list of options to give when we bind. Such as Mode, UpdateSourceTrigger…, even we can include the ExceptionNotification or validations options also.

image6.gif

With String Format Option

Here is the interesting part, we can format our string based on the following values. Sometimes you don't need to type the full string formatting; instead the following shortcuts are used.

image7.gif

 

Up Next
    Ebook Download
    View all
    Learn
    View all