storagefolder

Can't display image from Removeable SD - UWP Windows IOT

ぐ巨炮叔叔 提交于 2020-01-06 06:38:29
问题 I have done all of the things necessary to gaining access to the files located on the SD card of my IOT device (DragonBoard 410c). I have all of the FileTypeAssociations <Capability Name="internetClient" /> <Capability Name="privateNetworkClientServer" /> <Capability Name="internetClientServer" /> <uap:Capability Name="userAccountInformation" /> <uap:Capability Name="removableStorage" /> <uap:Capability Name="enterpriseAuthentication" /> I CAN see and iterate over the files on the SD card

Can't display image from Removeable SD - UWP Windows IOT

妖精的绣舞 提交于 2020-01-06 06:37:43
问题 I have done all of the things necessary to gaining access to the files located on the SD card of my IOT device (DragonBoard 410c). I have all of the FileTypeAssociations <Capability Name="internetClient" /> <Capability Name="privateNetworkClientServer" /> <Capability Name="internetClientServer" /> <uap:Capability Name="userAccountInformation" /> <uap:Capability Name="removableStorage" /> <uap:Capability Name="enterpriseAuthentication" /> I CAN see and iterate over the files on the SD card

How to get all files in a StorageFolder in Windows Phone Runtime?

百般思念 提交于 2019-12-22 11:09:29
问题 I want to get all files in a folder and its sub folders. but a flat query like this: var allFiles = await myFolder.GetFilesAsync(Windows.Storage.Search.CommonFileQuery.OrderByName); throws a ArgumentException exception: A first chance exception of type 'System.ArgumentException' occurred Additional information: Value does not fall within the expected range. before I query subfolders one by one, isn't there any other way? 回答1: You want all the files and folder which are a descendent of the

Why/When may StorageFolder.CreateFolderAsync fail?

房东的猫 提交于 2019-12-22 10:08:48
问题 The documentation for StorageFolder.CreateFolderAsync says: "If you try to create a subfolder in a virtual folder like a library or a file group, this method may fail". That's all, no further details. Does anyone have some deeper knowledge or experience regarding this issue? Why/When/Under what circumstances may creation fail? And what does "fail" mean? An exception is thrown (which one)? Silent failure? 来源: https://stackoverflow.com/questions/14981071/why-when-may-storagefolder

Why/When may StorageFolder.CreateFolderAsync fail?

血红的双手。 提交于 2019-12-06 04:14:27
The documentation for StorageFolder.CreateFolderAsync says: "If you try to create a subfolder in a virtual folder like a library or a file group, this method may fail". That's all, no further details. Does anyone have some deeper knowledge or experience regarding this issue? Why/When/Under what circumstances may creation fail? And what does "fail" mean? An exception is thrown (which one)? Silent failure? 来源: https://stackoverflow.com/questions/14981071/why-when-may-storagefolder-createfolderasync-fail

Get Album info in Windows Phone 8.1

好久不见. 提交于 2019-11-27 06:32:17
问题 As from Windows Phone 8.1, it's possible to get access to the music files in the MusicLibrary. I can read all files without problems. But now I want to read Album info. IReadOnlyList<StorageFolder> albums = await KnownFolders.MusicLibrary.GetFoldersAsync(CommonFolderQuery.GroupByAlbum); foreach (StorageFolder folder in albums) { // how to get album info? } How can I get album info (name, artist, album art) in that foreach? 回答1: The following works ... sometimes: var props = await