I am having a DataTimeEditor in my window, when ever i change the date its setting in the property of my ViewModel but when i delete the date completely then(making it be empty) at this point its not at all hitting my setter property of my ViewModel. Is this the default behavior of this editor, if so how can i overcome this issue?
HI,
Your issue may be due to validation errors. Your ViewModel date property is not nullable.
I am attaching a sample project, with two datetime controls both bound to properties in my ViewMOdel The first date is not nullable the second date is nullable.
When you clear the first datetime control, you get a red box around it and the setter is not hit.
The if you clear the second datetime control, you get to the setter.
Please review my sample.
Hi Matt i was unable to run the solution as its build with version4 of but i am using version3 in my machine. i tried using the nullable date even though it not firing the setter of the property when i delete the value completely from the XamDateTime text box
thank you
Please let me know if you need further assistance regarding this issue.
I have a new sample using clr 3.5 I put a valueconstraint on the first editor.