protected override void OnSelectionChangedCommand()
 {
     DownloadSelectedCommand.RaiseCanExecuteChanged();
     PlaySelectedCommand.RaiseCanExecuteChanged();
     AddSelectedToMyAudiosCommand.RaiseCanExecuteChanged();
     DeleteSelectedCommand.RaiseCanExecuteChanged();
 }
 private void OnSelectionChangedCommand()
 {
     DownloadSelectedCommand.RaiseCanExecuteChanged();
     PlaySelectedCommand.RaiseCanExecuteChanged();
     AddSelectedToMyCollectionCommand.RaiseCanExecuteChanged();
     DeleteSelectedCommand.RaiseCanExecuteChanged();
 }
Beispiel #3
0
        public override Task OnNavigatedToAsync(object parameter, NavigationMode mode, IDictionary <string, object> state)
        {
            Users.AddRange(_userService.GetUsers());

            var refresh = new Action(() =>
            {
                DeleteSelectedCommand.RaiseCanExecuteChanged();
                CreateAndSelectCommand.RaiseCanExecuteChanged();
            });

            PropertyChanged         += (s, e) => refresh();
            Users.CollectionChanged += (s, e) => refresh();
            return(Task.CompletedTask);
        }
Beispiel #4
0
 protected override void OnSelectionChangedCommand()
 {
     base.OnSelectionChangedCommand();
     DeleteSelectedCommand.RaiseCanExecuteChanged();
 }
Beispiel #5
0
 protected override void OnSelectionChangedCommand()
 {
     AddSelectedToMyVideosCommand.RaiseCanExecuteChanged();
     DeleteSelectedCommand.RaiseCanExecuteChanged();
 }