Reset all filters after navigation and clear button re-initializing mail list

This commit is contained in:
Aleh Khantsevich
2024-05-08 02:05:42 +02:00
parent bed8d71f7e
commit b788531e47
4 changed files with 213 additions and 226 deletions
+8
View File
@@ -532,5 +532,13 @@ namespace Wino.Views
{
ViewModel.SyncFolderCommand?.Execute(null);
}
private async void SearchBar_TextChanged(AutoSuggestBox sender, AutoSuggestBoxTextChangedEventArgs args)
{
if(args.Reason == AutoSuggestionBoxTextChangeReason.UserInput && string.IsNullOrWhiteSpace(sender.Text))
{
await ViewModel.PerformSearchAsync();
}
}
}
}