Right now in my DateTimeEditBox's, if the value of the date/time is null, I have it display "No date/time" by using:
<Style x:Key="DateTimePickerBoxStyle" TargetType="{x:Type editors:DateTimeEditBox}">
<Setter Property="NullContent" Value="No date/time"/>
<Setter Property="Value" Value="{x:Static system:DateTime.Now}"/>
....
if the user goes to edit the DateTimeEditBox and it's current value is null, it shows up as */*/*. Is there any way to make it so if the user clicks in the text box to edit the text (not clicking the down arrow), that it populates with today's date instead of */*/*, or even just shows up as "mm/dd/yyyy"?
I'm hoping that this can be done in the style like the NullContentProperty above so that it can easily be applied globally to all my DateTimeEditBoxes.
Any suggestions are appreciated. Thanks in advance.
Dan
[Modified at 12/04/2009 03:37 PM]
<Style x:Key="DateTimePickerBoxStyle" TargetType="{x:Type editors:DateTimeEditBox}">
<Setter Property="NullContent" Value="No date/time"/>
<Setter Property="Value" Value="{x:Static system:DateTime.Now}"/>
....
if the user goes to edit the DateTimeEditBox and it's current value is null, it shows up as */*/*. Is there any way to make it so if the user clicks in the text box to edit the text (not clicking the down arrow), that it populates with today's date instead of */*/*, or even just shows up as "mm/dd/yyyy"?
I'm hoping that this can be done in the style like the NullContentProperty above so that it can easily be applied globally to all my DateTimeEditBoxes.
Any suggestions are appreciated. Thanks in advance.
Dan
[Modified at 12/04/2009 03:37 PM]