views:

353

answers:

1

I keep noticing that IDataErrorInfo usage slows my software. When I type text in an TextBox, the text seems to lag behind a bit. When i remove the IDataErrorInfo implementation in the data-class being used for binding, it acts normal...

Any pointers on this?

PS: Laptop is a MacBook Pro 2.4Ghz with 2gb RAM, so that should not be an issue ;) PS2: UpdateSourceTrigger on the binding is set to LostFocus. Even then, the typing lags behind...

UPDATE: It seems the source of the slowness will be in the method that is used to 'ping' the IDataErrorInfo errors ( http://www.codeproject.com/KB/WPF/WpfVABErrorProvider.aspx )

If anyone has some alternatives here, i'd be grateful:)

+2  A: 

The WPF Bag o Tricks might have a solution for you: NotifyWorker. Hope this is of some help!

Pwninstein
I can indeed solve my problem with the technique you suggested. thanks!
Tom Deleu
Up-vote if you like my answer, too! ;) Thanks!
Pwninstein
The WPF Bag-O-Tricks is brilliant! Thanks for the link!
Mark
a.k.a - You just saved me a ton of brain-strain on my current LOB app.
Mark