This project has moved. For the latest updates, please go here.

TimePickerVisibility Property - Set TimePicker Visibility

Jan 2, 2013 at 3: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
		{
			get
			{
				return (Visibility)GetValue(TimePickerVisibilityProperty);
			}
			set
			{
				SetValue(TimePickerVisibilityProperty, value);
			}
		} 
		#endregion

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.
Thanks!
Jan 10, 2013 at 5:02 PM

This issue was created based on this discussion:

http://wpftoolkit.codeplex.com/workitem/19173

Jan 19, 2013 at 8: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 3:13 PM

Then don't forget to vote for the issue !