嵌套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
社区成员
642,577
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧