I am trying to add delay of one second as the user is typing the word to search in the search box rather than updating it continuously as he is typing. I know that there is a "Delay" keyword that can be used but this requires to hardcode a value into the xaml file.
I want to be able to read the delay interval from the configuration file. I have define a delay value in the Settings.settings and want to be able to do something like the following;
In the xaml file, I have something like the following:
Text="{Binding myText, Source={StaticResource queryView},
UpdateSourceTrigger=PropertyChanged,
Delay=Property.Settings.Default.DelayValue}"
I want to do be able to set the Delay from the configuration file like the way shown in the code.
I am unable to set it and am very new to C#. Can someone guide me on how to be able to set the Delay without hardcoding it. The current approach is failing. :(
Thanks.