Hi, I'm setting a DateTimeEdit with IsEmptyDateEnabled=True, I see the "none" button in the Calendar and it sets the DateTime to null. But I would also like to be able to hit the "delete" or "backspace" keys while the control's text is selected to nullify the its value. I noticed there's a property called "EnableBackspaceKey" and another one called "EnableDeleteKey" but setting any or both to "True" has no effect on the behavior of the control. Does anybody knows if its possible to nullify the control's DateTime value by using the keyboard?
Hi Jegan Raj,
Thanks for the workaround, I had tried the PreviewKeyDown event but its not raised for some reason and I didn't think of trying the PreviewKeyDown event instead. Anyways, I refactored your code into an Attached Behaviour which is set in the implicit style that targets DateTimeEdit, it is set to Enabled when the property IsEmptyDateEnabled is itself set to true via a style trigger. It works great. Nonetheless I think this behaviour should be wired in the control itself, in a future release perhaps!
Here's my code: