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