Enhancing Data Binding
Binding class has a number of properties that you can use to further configure a data binding rather than simply connecting the value of the target property directly to the source property. These properties are the keys to enabling the power and flexibility of Silverlight's data binding capabilities, so let's take a look at them now.
Bindings have a
StringFormat property that you can use to format a bound property's value before it is passed to the target control to be consumed. This can be a very useful feature when binding to a nonstring property, such as a
DateTime or a
decimal. You can use the
StringFormat property on the binding to set the format, using the same types of formatting strings as ...