示例#1
0
        protected override async void OnExecuteAsync(IExplorerViewModel vm)
        {
            var selectedItem = vm.SelectedItem;

            if (selectedItem.IsFile)
            {
                await _fileLauncher.LaunchAsync(selectedItem.AsFile, displayApplicationPicker : true);
            }
        }
        protected override async void OnExecuteAsync(IExplorerViewModel vm)
        {
            var selectedItem = vm.SelectedItem;

            if (selectedItem.IsFolder)
            {
                vm.CurrentFolder = selectedItem.AsFolder;
            }
            else
            {
                await _fileLauncher.LaunchAsync(selectedItem.AsFile);
            }
        }