Я хочу получить изображение пользователя (владельца) Windows Phone. И, кажется, есть правильный API UserInformation . Я пробовал, но оба кода всегда возвращают null. У меня есть изображение профиля в приложении "Люди" (но я не уверен, что оно связано с UserInformation
)
IStorageFile file1 = UserInformation.GetAccountPicture(AccountPictureKind.SmallImage);
IStorageFile file2 = UserInformation.GetAccountPicture(AccountPictureKind.LargeImage);
Моя среда
- Устройство Windows Phone 8.1 Lumia 920.
- Visual Studio 2013, обновление 2, версия-кандидат
И я также добавил манифест приложения.
xml
<Applications>
<Application Id="App" Executable="$targetnametoken$.exe">
<Extensions>
<Extension Category="windows.accountPictureProvider" />
</Extensions>
</Application>
<Applications>
Я пропустил?