DateTimePicker - remove Time control

Aug 18, 2011 at 10:49 AM

Is there any way to remove Time field (with spinner) from the bottom of the DateTimePicker control?

 

Thanks!

Aug 18, 2011 at 1:28 PM

Currently there is no way to remove the TimePicker from the DateTimePicker.  If this is important you could download the source code and make your modifications.

Aug 19, 2011 at 8:49 AM
Edited Aug 19, 2011 at 8:50 AM

I have changed DateTimePicker control, added a property 

Visibility TimePickerVisibility

and also have binded the property in Generic.xaml, to control:

<local:TimePicker/>

It would be great to include this in latest version, as it is useful for us to have that option.

I can send you files: DateTimePicker.cs and Generic.xaml for DateTimePicker control.