Skip to content

Latest commit

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

AppsFolderDialog

logo

GitHub starsAll releasesGithub forksAll issues

Provide a dialog box to select installed app from local machine. image

the selected item is Application User Model ID ,You can run it in the following way

  • Run dialog
shell:appsfolder\xxx
  • C#
System.Diagnostic.Process.Start("explorer.exe","shell:appsfolder\xxx");

Example

System.Diagnostic.Process.Start("explorer.exe","shell:appsfolder\Microsoft.Windows.MediaPlayer32");//open Windows Media Player

Preview

AppsFolderDialog.mp4

Usage

PM>NuGet\Install-Package AppsFolderDialog -Version 0.0.1
AppsFolderDialog.AppsFolderDialogappsFolderDialog=newAppsFolderDialog.AppsFolderDialog();varresult=awaitappsFolderDialog.ShowDialog();if(result){//this.listbox.ItemsSource = appsFolderDialog.SelectedPath.ToList();foreach(variteminappsFolderDialog.SelectedPath){switch(item.PathType){caseAppsFolderDialog.PathType.Absolute://AbsoluteSystem.Diagnostics.Process.Start(item.Path);break;caseAppsFolderDialog.PathType.AUMID://AUMIDSystem.Diagnostics.Process.Start("explorer.exe",item.Path);break;caseAppsFolderDialog.PathType.Folder://Folderbreak;default:break;}}}

TODO

  • modify dialog title
  • append context menu
  • use win32 native button

LICENSE

Apache License

About

shell:AppsFolder as a OpenFileDialog

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages