SearchIconList.cs 791 B

12345678910111213141516171819202122232425262728293031
  1. using System.Collections.ObjectModel;
  2. using System.ComponentModel;
  3. namespace GeekDesk.ViewModel.Temp
  4. {
  5. public class SearchIconList
  6. {
  7. private static ObservableCollection<IconInfo> iconList = new ObservableCollection<IconInfo>();
  8. public static ObservableCollection<IconInfo> IconList
  9. {
  10. get
  11. {
  12. return iconList;
  13. }
  14. set
  15. {
  16. iconList = value;
  17. OnPropertyChanged("IconList");
  18. }
  19. }
  20. public static event PropertyChangedEventHandler PropertyChanged;
  21. private static void OnPropertyChanged(string propertyName)
  22. {
  23. PropertyChanged?.Invoke(null, new PropertyChangedEventArgs(propertyName));
  24. }
  25. }
  26. }