public DefaultBottomBarViewModel(ICustomFrameAdapter navigationService, IEventAggregator eventAggregator) { _navigationService = navigationService; _eventAggregator = eventAggregator; _eventAggregator.Subscribe(this); SelectedItems = new ObservableCollection <object>(); SelectedItems.CollectionChanged += OnSelectedItemsChanged; Navigate = () => _navigationService.NavigateToViewModel <PlaybackViewModel>(); }
public DefaultBottomBarViewModel(ICustomFrameAdapter navigationService, IEventAggregator eventAggregator) { _navigationService = navigationService; _eventAggregator = eventAggregator; _eventAggregator.Subscribe(this); SelectedItems = new ObservableCollection<object>(); SelectedItems.CollectionChanged += OnSelectedItemsChanged; Navigate = () => _navigationService.NavigateToViewModel<PlaybackViewModel>(); }
public async Task ApplyChanges() { await SaveSettings(); _navigationService.NavigateToViewModel <MainViewModel>(true); }
public void NavigateToPlaylist() { _navigationService.NavigateToViewModel <PlaybackViewModel>(); }
public async void SaveChanges() { await SaveSettings(); _navigationService.NavigateToViewModel <MainViewModel>(); }