コード例 #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>();
 }
コード例 #2
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>();
 }
コード例 #3
0
        public async Task ApplyChanges()
        {
            await SaveSettings();

            _navigationService.NavigateToViewModel <MainViewModel>(true);
        }
コード例 #4
0
 public void NavigateToPlaylist()
 {
     _navigationService.NavigateToViewModel <PlaybackViewModel>();
 }
コード例 #5
0
        public async void SaveChanges()
        {
            await SaveSettings();

            _navigationService.NavigateToViewModel <MainViewModel>();
        }