开发者

WPF4 DatePicker - adding time

开发者 https://www.devze.com 2022-12-30 00:45 出处:网络
Now that there is an official MS DatePicker in WPF4, I was wondering if there was a way to let it edit the Ti开发者_C百科me part of a DateTime as well.I can\'t see anything, but it seems rather obviou

Now that there is an official MS DatePicker in WPF4, I was wondering if there was a way to let it edit the Ti开发者_C百科me part of a DateTime as well. I can't see anything, but it seems rather obvious to have missed out?


I don't believe there is any 'Time' functionality built into the DatePicker out of the box 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 portion, or possibly even create a ControlTemplate for the DatePicker to add a Time Selection element... but no... it's not built in for us unfortunately.

0

精彩评论

暂无评论...
验证码 换一张
取 消