我在 Windows 窗体中托管 WPF 用户控件在 wpf 用户控件中,我正在使用来自 wpfToolkit.extended 的时间选择器
如果我使用向上键或向下键,或者只是在文本字段中输入时间,则源不会更新,尽管我使用的是 Updatesourcetrigger = propertychanged。
当我在下拉列表中选择一个时间时,一切都会按应有的方式进行。这是工具包的命名空间。
xmlns:xctk="clr-namespace:Xceed.Wpf.Toolkit;assembly=WPFToolkit.Extended"
这是时间选择器的 xaml
<xctk:TimePicker Format="LongTime" TimeInterval="00:15:00.000" Value="{Binding Path=StartTime, UpdateSourceTrigger=PropertyChanged}" ></xctk:TimePicker>
如果我在 WPFusercontrol 外部单击而不首先将焦点更改到 wpf usercontrol 中的另一个控件。绑定时间不更新。
知道如何解决这个问题吗?