manager.AddBinding (this);
manager.PositionChanged += new EventHandler (PositionChangedHandler);
- EventDescriptor prop_changed_event = GetPropertyChangedEvent (manager.Current, binding_member_info.BindingField);
- if (prop_changed_event != null)
- prop_changed_event.AddEventHandler (manager.Current, new EventHandler (SourcePropertyChangedHandler));
+ if (manager is PropertyManager) { // Match .net, which only watchs simple objects
+ EventDescriptor prop_changed_event = GetPropertyChangedEvent (manager.Current, binding_member_info.BindingField);
+ if (prop_changed_event != null)
+ prop_changed_event.AddEventHandler (manager.Current, new EventHandler (SourcePropertyChangedHandler));
+ }
}
if (manager.Position == -1)
+2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * Binding.cs: When connecting the event handler for the "Changed"
+ event for the property, only do it for PropertyManager, and not for
+ CurrencyManager - this is exactly what does .Net, totally ignoring any
+ change in the property of the elements of a list.
+ Fixes the tests.
+
2008-09-02 Jonathan Pobst <monkey@jpobst.com>
* XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag