mercredi 25 février 2015

Can't use LockScreen.SetImageUri(uri) in Windows Phone 8.1 application for isolated stored files

This code shows an exception : value does not fall within the expected range //where inner exception is null


Uri uri = new Uri("ms-appdata:///Local/imagename.jpg", UriKind.RelativeOrAbsolute); LockScreen.SetImageUri(uri); //image is stored in isolated storage.


I tried creating a new application for testing this code to ensure that something from my application isn't messing up with this code, but sadly for a new application it shows the same error.


Aucun commentaire:

Enregistrer un commentaire