Exemplo n.º 1
0
 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>();
 }
Exemplo n.º 3
0
        public async Task ApplyChanges()
        {
            await SaveSettings();

            _navigationService.NavigateToViewModel <MainViewModel>(true);
        }
Exemplo n.º 4
0
 public void NavigateToPlaylist()
 {
     _navigationService.NavigateToViewModel <PlaybackViewModel>();
 }
Exemplo n.º 5
0
        public async void SaveChanges()
        {
            await SaveSettings();

            _navigationService.NavigateToViewModel <MainViewModel>();
        }