Answered by:
Show empty DatePicker if value is null

Question
-
Hi,
My WindowsPhone App has an optional Date-Field. If no date is set I want to display an empty DatePicker and otherwise the picked Date. How can I do this?
Thank you
Bernd
- Edited by Stonemiller Friday, January 30, 2015 1:48 PM
Friday, January 30, 2015 1:47 PM
Answers
-
You'll have to write your own datepicker to get this solution.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.- Marked as answer by Stonemiller Friday, February 6, 2015 7:00 PM
Thursday, February 5, 2015 4:17 PMModerator
All replies
-
There's no such thing as a null date. Set it to today's date as the default.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.Friday, January 30, 2015 7:32 PMModerator -
Unfortunately this is no solution for me.
If there is always a date visible, the user doesn't
know if he still has to set the date or is it already set.
- Edited by Stonemiller Wednesday, February 4, 2015 5:55 PM
Wednesday, February 4, 2015 5:54 PM -
You'll have to write your own datepicker to get this solution.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.- Marked as answer by Stonemiller Friday, February 6, 2015 7:00 PM
Thursday, February 5, 2015 4:17 PMModerator -
Ok. Thank you for your help.Friday, February 6, 2015 7:00 PM