WPF4 DatePicker - adding time

Now that WPF4 has the official MS DatePicker, I wondered if there is a way to allow the DateTime part of the time to be edited. I donโ€™t see anything, but it seems obvious that he missed?

+3
source share
1 answer

I do not believe that "DatePicker" has a built-in "Time" function in .NET 4

http://msdn.microsoft.com/en-us/library/system.windows.controls.datepicker.aspx

You might be able to create a custom control that uses the DatePicker for the Date part, or maybe even create a ControlTemplate for the DatePicker to add a time picker ... but no ... it is not built in for us unfortunately.

0
source

Source: https://habr.com/ru/post/1744476/


All Articles