<a href="http://files.cnblogs.com/webabcd/Windows8.rar">[源碼下載下傳]</a>
重新想象 Windows 8 Store Apps (33) - 關聯啟動: 使用外部程式打開一個檔案或uri, 關聯指定的檔案類型或協定
介紹
重新想象 Windows 8 Store Apps 之 關聯啟動
使用外部程式打開一個檔案
使用外部程式打開一個 Uri
關聯指定的檔案類型(即用本程式打開指定類型的檔案)
關聯指定的協定(即用本程式處理指定的協定)
示例
1、示範如何使用外部程式打開一個檔案
AssociationLaunching/LaunchFile.xaml
AssociationLaunching/LaunchFile.xaml.cs
2、示範如何使用外部程式打開指定的 Uri
AssociationLaunching/LaunchUri.xaml
AssociationLaunching/LaunchUri.xaml.cs
3、示範如何關聯指定的檔案類型(即用本程式打開指定類型的檔案)
AssociationLaunching/FileTypeAssociation.xaml
AssociationLaunching/FileTypeAssociation.xaml.cs
App.xaml.cs
4、示範如何關聯指定的協定(即用本程式處理指定的協定)
AssociationLaunching/ProtocolAssociation.xaml
AssociationLaunching/ProtocolAssociation.xaml.cs
OK