This project has moved and is read-only. For the latest updates, please go here.

TimePickerVisibility Property - Set TimePicker Visibility

Jan 2, 2013 at 4:45 PM

I've added a new property to the DateTimePicker of TimePickerVisibility to allow changing the visibility for the TimePicker.

I don't have time to create a patch (I'd have to learn how), so here is the code changes instead:

DateTimePicker.cs - add the following property at line 130

		#region TimePickerVisibility
		public static readonly DependencyProperty TimePickerVisibilityProperty = DependencyProperty.Register("TimePickerVisibility", typeof(Visibility), typeof(DateTimePicker), new UIPropertyMetadata(default(Visibility)));
		public Visibility TimePickerVisibility
				return (Visibility)GetValue(TimePickerVisibilityProperty);
				SetValue(TimePickerVisibilityProperty, value);

Generic.xaml - add the following to the TimePicker on line 147
Visibility="{TemplateBinding TimePickerVisibility}"

Please let me know when this is included, so that I can update from my dll to the general release.
Jan 10, 2013 at 6:02 PM

This issue was created based on this discussion:

Jan 19, 2013 at 9:58 AM

This is one of the amendments we have made to the toolkit in our project as well.   Would be good to see something like this included in the base release.  

Jan 21, 2013 at 4:13 PM

Then don't forget to vote for the issue !