Calling SetBinding() twice in Silverlight application?
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
Answers & Comments...
Answer: 1
Answer: 1
First binding will be removed and only one binding will be registered.
by : Dmitry Martovoihttp://stackoverflow.com/users/976231
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog