thinkpixellab/bot — Issue #31: Sample Images path
Author: HenryMinute
Created: 2011-10-10 18:18:27+00:00
State: open

In wpf.Core.SampleImageHelper......GetDefaultPicturePaths() you might consider changing the literal path as it bombs out if you don't have your Pictures in the default location.

e.g.
change:
return new string[]{@"C:\Users\Public\Pictures\Sample Pictures\",
Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)}.ToReadOnlyCollection();
to:
return new string[]{Environment.GetFolderPath(Environment.SpecialFolder.CommonPictures) + @"\Sample Pictures\",
Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)}.ToReadOnlyCollection();

Mind you anyone able to use a non-default location could probably figure this out for themselves.