我有问题。C# windows 应用程序中的等效 UpdateSourceTrigger 是什么?
public static void Bind(ComboBox cmb, ComboVAlidationRule vld)
{
Binding bndControl = new Binding("DataBind");
bndControl.Source = vld;
bndControl.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged;
bndControl.ValidationRules.Add(vld);
cmb.SetBinding(ComboBox.SelectedItemProperty, bndControl);
}