private void SelectedBlobs_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { SelectedBlob = SelectedBlobs.Count == 1 ? SelectedBlobs[0] : null; DeleteBlobsCommand?.RaiseCanExecuteChanged(); ViewBlobCommand?.RaiseCanExecuteChanged(); RenameCommand?.RaiseCanExecuteChanged(); ExternalOpenCommand?.RaiseCanExecuteChanged(); CopySelectedBlobsCommand?.RaiseCanExecuteChanged(); ShowBlobPropertiesCommand?.RaiseCanExecuteChanged(); DownloadBlobsCommand?.RaiseCanExecuteChanged(); }
public async Task ItemActionAsync(Blob blob) { if (blob.Kind == BlobItemKind.Folder) { //GoLevelUpCommand.Execute(null); FolderPath = StoragePath.Normalize( StoragePath.Combine(FolderPath, blob.Name == ParentFolderName ? StoragePath.LevelUpFolderName : blob.Name), true); } else { ViewBlobCommand.Execute(null); } }