Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom UpdateSourceTrigger with delay?

I'm looking to create a custom version of UpdateSourceTrigger that I can use with my binding. I don't know if this is possible, or if instead, I'd need to just create my own binding class. What I'm looking for is, instead of LostFocus or PropertyChanged, have something where it will update the source after some specified time limit.

I found this, but I don't know if there's a better way (one of the comments mentioned some memory leaks with the implementation).

Any ideas?

like image 652
Thelonias Avatar asked Nov 04 '11 17:11

Thelonias


1 Answers

I just noticed that WPF 4.5 has a Delay Property, see for more information this link

http://www.shujaat.net/2011/12/wpf-45-developers-preview-delay-binding.html

like image 153
rfcdejong Avatar answered Sep 22 '22 04:09

rfcdejong