0

How can we use wpf pack uri to reference a file located in user directory. My application creates a folder in user directory and files are downloaded there from internet, which needed to be loaded in wpf through pack uri.

Thanks

Irfan
  • 2,713
  • 3
  • 29
  • 43

1 Answers1

0

Pack uri's only reference files relative to assemblies or the site of origin. Please see: http://msdn.microsoft.com/en-gb/library/aa970069.aspx

To reference a file in a user directory you can use a uri something like this: file:///C:/Users/User3/Pictures/screen.jpg

johndsamuels
  • 329
  • 1
  • 10