Delayed change 'tracking

May 8, 2009 at 12:07 AM

I wonder whether Bin-LINQ can implement a feature.

Whenever some of the dependencies change, current implementation recalculates result. When one of the dependencies is TextBox-like, you'd want to have half-second delay before applying recalculations. It means when user types a word, there will be just one recalculation instead of one for every letter typed.

I understand the change would be around IDispatcher-implementors. There are several options for visible API, but that's not too important as soon as the feature is there somewhere.

The only thing that bothers me is how safe is it to delay those events. Well, they are already somewhat delayed in some cases (when change is marshalled between threads). But particularly IBindingList notification model looks prone to delays. It is based on indices, not objects, which means if you don't convert index to object straight away, you may miss your chance forever, as the new event may render the first index unusable.

Many thanks