Exemplo n.º 1
0
 private void DefineImagesViewFilter(Predicate <object> predicate)
 {
     if (ImagesView != null)
     {
         ImagesView.Filter = predicate;
         ImagesView.Refresh();
     }
 }
Exemplo n.º 2
0
        private async void RefreshWallpapers(object parameter)
        {
            IsNotLoading = false;
            List <ImageElement> newImages = await Refresh();

            Application.Current.Dispatcher.Invoke(() =>
            {
                Images.Clear();

                foreach (ImageElement e in newImages)
                {
                    Images.Add(e);
                }
                if (ImagesView == null)
                {
                    CreateView();
                }
                else
                {
                    ImagesView.Refresh();
                }
            });
            IsNotLoading = true;
        }
 /*
  * When the list of current tags changes, update the property.
  */
 private void CurrentTags_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     OnPropertyChanged("CurrentTags");
     ImagesView.Refresh();
 }