private void _Search_Click(object sender, System.Windows.RoutedEventArgs e) { if (_OpenText.Text.Length == 0) { return; } Photos.Clear(); Photos.UpdatePhotosWithTag(_OpenText.Text, _EditText.Text); }
public void OnPhotoBagChanged() { App.Current.Dispatcher.Invoke((Action) delegate // <--- HERE { PhotoCollection.Clear(); PhotoCollection.AddRange(PhotoBag); }); }
private void Reset() { try { PhotoCollection.Clear(); PhotoCollection = null; _pageIndex = 1; } catch (Exception) { throw; } }