嵌套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>
WPF如何让时间控件精确到时分秒
最新推荐文章于 2024-05-09 19:53:44 发布