I have a search dialog where I want to disable the search button during the search. This is the current code but the button does not get deactivated
View:
This code must work.
private async void ExecuteSearch() { IsNotSearching = false; var task = Task.Factory.StartNew(() => { //do some searching here }); await task; IsNotSearching = true; }