private async void _txtSearch_QuerySubmitted(object sender, AutoSuggestBoxQuerySubmittedEventArgs e) { if (!await Methods.AppSettings.ValidateStoragePermission() || string.IsNullOrEmpty(_txtSearch.Text)) { return; } var text = _txtSearch.Text; if (e?.ChosenSuggestion != null) { text = e.ChosenSuggestion.ToString(); } if (string.IsNullOrWhiteSpace(text)) { return; } var l = await this.StartLoading(); var videos = ControllerRepository.Y(x => x.SearchAsync(UserData.CurrentUser.EntityId.Value, text, 6, 1, null, VideoSearchType.All)).Await(); var src = new SearchView(videos, _txtSearch.Text); src.Open(); l.EndLoading(); }