Study_ZHANG 2023-06-17 16:59 采纳率: 25%
浏览 105

WPF的handycontrol中时间选择器

时间选择器,这样可以

<hc:DateTimePicker hc:InfoElement.ShowClearButton="True" Style="{StaticResource DateTimePickerPlus}" Text="{Binding locationCardModel.MiddleShift, Mode=TwoWay}"  
                                           Width="400" FontSize="14"  />

这个添加了Text="{Binding locationCardModel.MiddleShift}" 就不行,去掉Text就不会报错了

<hc:TimePicker hc:InfoElement.ShowClearButton="True" Style="{StaticResource TimePickerExtend}" Text="{Binding locationCardModel.MiddleShift}"  
                                           Width="400" FontSize="14"/>

这个是为什么
报错

img

  • 写回答

1条回答 默认 最新

  • threenewbee 2023-06-17 17:05
    关注

    MainWindow的构造函数贴一下

    评论

报告相同问题?

问题事件

  • 创建了问题 6月17日