I have some image resources in my app i want to access programaticly.
Now i'm based on some source code so i need to acess via Uri so my code is :
new BitmapImage(new Uri("pack://application:,,,/YearBook;component/Resources/Output/" + i.ToString() + ".jpg", UriKind.RelativeOrAbsolute));
though when i try to access it i get error that resources not found ( and the name is right)
Anyone knows why?
EDIT:
Might be i needed to add some assembly in the assembly file?
YearBook
available? Are the images embedded into the assembly as "resource" or "embedded resource"? (Only one of the two is correct, not sure which exactly.) Is the assemblyYearBook
located in the same folder as the executable (or in a subfolderYearBook
)? – Hilda