Hi, I have use wpf toolkit DatePicker on my application. I have try to create validation class to check is it value is null or not. But it not working in any manner.
My code in is like below
In contrast, I have use to use BagOTrick DatePicker it working as i expect. I want to know, Am I have any missing point ? and How to solving this problem?
bindingExpression = datePicker.GetBindingExpression(Microsoft.Windows.Controls.DatePicker.SelectedDateProperty);
bindingExpression.UpdateSource(); // make sure that source is update.