PCLStorage icon indicating copy to clipboard operation
PCLStorage copied to clipboard

Convert IFile to IStorageFile on WinRT

Open dominik-weber opened this issue 8 years ago • 2 comments

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?

dominik-weber avatar Jun 08 '16 03:06 dominik-weber

Any update?

Almis90 avatar Oct 06 '16 19:10 Almis90

Old issue, but I was looking for the same thing. I ended up using the absolute path from IFile and passed that into GetFileFromPathAsync

jpc0001 avatar May 10 '18 17:05 jpc0001