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:
But in VS 2010, we have not only the property has added but with a great support for Data Context.
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.
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.
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.
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.
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.