WPF如何让时间控件精确到时分秒?

kyle3889280 2014-05-17 09:21:52
WPF中有没有时间控件是精确到时分秒的,或者说有没有解决的办法?
...全文
903 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zxcc2315_baxc_b 2015-03-29
  • 打赏
  • 举报
回复
<wfi:WindowsFormsHost Width="90" > <wf:DateTimePicker Name="tpStartDate" Format="Custom" ShowUpDown="True" /> </wfi:WindowsFormsHost> <wfi:WindowsFormsHost Width="80"> <wf:DateTimePicker Name="tpStartTime" Format="time" ShowUpDown="True" /> </wfi:WindowsFormsHost>
小恒丶 2014-05-17
  • 打赏
  • 举报
回复
http://datetimepickerwpf.codeplex.com/ 用这里面这个时间控件可以
kyle3889280 2014-05-17
  • 打赏
  • 举报
回复
引用 1 楼 angshuangxi 的回复:
嵌套WinForm控件: 引用WindowsFormsIntegration 页首: xmlns:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration" xmlns:wf ="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms" <wfi:WindowsFormsHost Width="90" > <wf:DateTimePicker x:Name="tpStartDate" Format="Custom" ShowUpDown="True" /> </wfi:WindowsFormsHost> <wfi:WindowsFormsHost Width="80"> <wf:DateTimePicker x:Name="tpStartTime" Format="Time" ShowUpDown="True" /> </wfi:WindowsFormsHost>
为什么用你的方法XAML里面显示是嘿嘿的两块,运行后界面上没有显示
angshuangxi 2014-05-17
  • 打赏
  • 举报
回复
嵌套WinForm控件: 引用WindowsFormsIntegration 页首: xmlns:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration" xmlns:wf ="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms" <wfi:WindowsFormsHost Width="90" > <wf:DateTimePicker x:Name="tpStartDate" Format="Custom" ShowUpDown="True" /> </wfi:WindowsFormsHost> <wfi:WindowsFormsHost Width="80"> <wf:DateTimePicker x:Name="tpStartTime" Format="Time" ShowUpDown="True" /> </wfi:WindowsFormsHost>

110,535

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧