Reactive Extensions Instant Search for WPF/MVVM

后端 未结 3 1867
误落风尘
误落风尘 2020-12-19 18:20

I would like to implement a TextBox where, as you type, results appear instantly in another ListBox. I\'ve been looking for examples with Reactive Extensions (Rx), and all o

3条回答
  •  无人及你
    2020-12-19 18:49

    You can use a behavior to get this working. A great example is the UpdateBindingOnTextChanged behavior of Catel. It can be used like this:

    
        
            
        
    
    

    This will create a 500ms delay between the change and the actual update.

提交回复
热议问题