private void SetupValues() { Values.CollectionChanged += (sender, e) => UpdateData(); var valuesChangedHandler = (EventHandler) delegate { UpdateData(); }; Values.AddHandlers( added => added.IsEmpty.ValueChanged += valuesChangedHandler, removed => removed.IsEmpty.ValueChanged -= valuesChangedHandler ); }