WPF怎么让时间控件精确到时分秒
WPF如何让时间控件精确到时分秒?
WPF中有没有时间控件是精确到时分秒的,或者说有没有解决的办法?
------解决思路----------------------
嵌套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>
------解决思路----------------------
http://datetimepickerwpf.codeplex.com/
用这里面这个时间控件可以
WPF中有没有时间控件是精确到时分秒的,或者说有没有解决的办法?
------解决思路----------------------
嵌套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>
------解决思路----------------------
http://datetimepickerwpf.codeplex.com/
用这里面这个时间控件可以