Windows 8 フォト アプリから共有するときに、共有ターゲットの GetStorageItemsAsync() 呼び出しから返された IStorageItems からパスを取得しようとすると、返されるすべてのアイテムの Path プロパティが空です。名前 (ファイル名) が正しく設定されています。ただし、実際のパスが必要ですが、それを取得する方法がないようです。
これは Windows 8 のフォト アプリのバグですか、それとも何か間違っていますか?
アイテムのリストを取得するための私のコード:
this.sharedStorageItems = await this.shareOperation.Data.GetStorageItemsAsync();
リストを反復処理する私のコード:
// Display the name of the files being shared.
var files = new List<String>();
for (int index = 0; index < this.sharedStorageItems.Count; index++)
files.Add(String.Concat(this.sharedStorageItems[index].Path, "\\", this.sharedStorageItems[index].Name));
上記のパスは常に空です。