How to make my custom UserControl handle a two-way Binding when it is inside a Template Setter inside a DataTrigger?
问题 If I put the TimeSpanPicker directly in the UserControl element, it works. If I put a DateTimePicker (from the Extended WPF Toolkit) instead of my TimeSpanPicker, it works in both ways. (This situation is what I wish to use, it is in the code below) If I put the TimeSpanPicker in a Template Setter inside a DataTrigger inside Style.Triggers inside UserControl.Style, the Binding stops working. The binding that does not work in any way (although it is set to TwoWay) is this: TimeSpan="{Binding