New Data Binding Features in Silverlight 4

2011-08-22


Here are 3 sample code to descript new data binding features in Silverlight 4:

    
<TextBox Text="{Binding myValue, StringFormat='###.##', TargetNullValue='Value is Null', FallbackValue='Value Not Found'}" />
    
<TextBox Text="{Binding myValue2, StringFormat='c'}" />
    
<TextBox Text="{Binding myValue3, StringFormat='yyyy-mm-dd', , TargetNullValue='Value is Null'}" />