Databind a nullable type in XAML\Windows 8 store app
问题 I have a TextBox in XAML which I'm trying to databind to a nullable int. This is the code for my textbox and linked converter: <TextBox x:Name="textArea" InputScope="Number" Text="{Binding Area, Mode=TwoWay, Converter={StaticResource NullableValueConverter}}" /> public class NullableValueConverter:IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { return value; } public object ConvertBack(object value, Type targetType, object parameter,