Just a short question :
In wpf, how do I set and get updatesourcetrigger of a textbox in codebehind ?
Thanks
Update :
I follow
I think this the right way to do this:
Binding binding = new Binding();
binding.Source = new CustomerViewModel();;
binding.Path = new PropertyPath("Customer.Name");
binding.Mode = BindingMode.TwoWay;
binding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged;
txtCustName.SetBinding(TextBox.TextProperty, binding);