I have a Silverlight 4 application and programmatically I set some bindings on objects, eg:
Binding bBorder = new Binding();
bBorder.Source = CellItem;
bBorder.Mode = BindingMode.OneWay;
bBorder.Path = new PropertyPath("Border");
appointmentItem.SetBinding(AppointmentItem.BorderBrushProperty, bBorder);
Regardless of any best-practice lessons, if this piece of code runs twice, will I end up with a binding that has been registered twice, or is the first binding properly removed?
Thanks,
Tim
First binding will be removed and only one binding will be registered.