private void UserControl_Loaded(object sender, RoutedEventArgs e) { lblNoResults.Visibility = Visibility.Collapsed; txtSearch.Text = initialSearchText; ResultScroller.ScrollToHome(); ShowWait(false); }
private void _player_SearchResult(object sender, List <SearchResult> result) { this.BeginDispatch(() => { if (result.Count == 0) { lblNoResults.Visibility = Visibility.Visible; } ResultItems.ItemsSource = result; ResultScroller.ScrollToHome(); ShowWait(false); }); }