Today I faced a problem which reminded me of bindings being detached automatically in some cases. I am not sure but here is the scenario -
I attach a menu item bound to a property(implementing INotifyPropertyChanged), like this -
IsChecked="{Binding Path=DisplayLongUnit, Mode=TwoWay}"
Now in its checked event hander I update its IsChecked value after checking some condition like this -
If( condition == true){menuItem.IsChecked = true}
Now will the binding be still attached or it will get lost? (I remember reading somewhere that it will be lost).
Are there any scenarios in which bindings will be detached automatically?
One I could find out is mentioned here -
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/08d6e4c4-47ab-44f3-b19a-c0ab872fb1a8