PCLStorage
PCLStorage copied to clipboard
Convert IFile to IStorageFile on WinRT
Is there a way to convert the IFile object back to IStorageFile?
I'm using new PCLStorage.WinRTFile(file)
to create an IFile reference from a StorageFile, but I don't see a way of getting the wrapped object back. Have you considered providing a method for retrieval, eg. by casting to WinRTFile, or better yet, via an extension method?
Any update?
Old issue, but I was looking for the same thing. I ended up using the absolute path from IFile and passed that into GetFileFromPathAsync