public SongListControl()
 {
     InitializeComponent();
     MessageBus.Instance.Subscribe(this);
     items = new MusicViewModelList();
     items.CollectionChanged += items_CollectionChanged;
     dataGrid.ItemsSource     = items;
 }
Esempio n. 2
0
 public SongListControl()
 {
     InitializeComponent();
     Global.ListenToEvent("Theme", OnTheme);
     initInputFilter();
     combo_sort.SelectionChanged += (s, e) => ApplySort();
     items = new MusicViewModelList();
     items.CollectionChanged += items_CollectionChanged;
     Source = new ListCollectionView(items);
     virtualView.DataContext       = Source;
     virtualView.SelectionChanged += OnSelectionChanged;
     listView = virtualView;
     Global.ListenToEvent("PlayNextMode", OnPlayNextMode);
     this.PropertyChanged += OnPropertyChanged;
     btn_more.Click       += btn_more_Click;
 }