From 760adfc126d7f8f6060456d005382fc5de8edd01 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Wed, 17 Aug 2016 01:20:22 +0200 Subject: [PATCH] Update BindingTest with changes. Data validation still doesn't work in BindingTest though. --- samples/BindingTest/MainWindow.xaml | 2 +- .../BindingTest/ViewModels/ExceptionPropertyErrorViewModel.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/BindingTest/MainWindow.xaml b/samples/BindingTest/MainWindow.xaml index 149625925a..e1aafde5b3 100644 --- a/samples/BindingTest/MainWindow.xaml +++ b/samples/BindingTest/MainWindow.xaml @@ -72,7 +72,7 @@ - + diff --git a/samples/BindingTest/ViewModels/ExceptionPropertyErrorViewModel.cs b/samples/BindingTest/ViewModels/ExceptionPropertyErrorViewModel.cs index 01155f1d9f..be34c65c40 100644 --- a/samples/BindingTest/ViewModels/ExceptionPropertyErrorViewModel.cs +++ b/samples/BindingTest/ViewModels/ExceptionPropertyErrorViewModel.cs @@ -21,7 +21,7 @@ namespace BindingTest.ViewModels } else { - throw new InvalidOperationException("Value must be less than 10."); + throw new ArgumentOutOfRangeException("Value must be less than 10."); } } }