I have an event (ctc) that fires when a text change occurs in a ComboBox, I want to delay its firing for one second.
I wrote this code so far and put it in the MainWindow
:
Timer aTimer = new Timer();
aTimer.Interval = 1000;
aTimer.Elapsed += new ElapsedEventHandler(ctc);
aTimer.Enabled = true;
I am new to WPF and I want to know what to put in ElapsedEventHandler
parenthesis, I put the even name but I am getting an error.
Also do I need to add anything to Xaml code for the ComboBox ?