I have created a ClassLibrary project, and added a xaml of Window type. I wrote a console application and showing this wpf window.
The problem is I have to show an I
If Images folder is added in same project of its usage, this should work for you:
Or use Pack Uri specifically:
In case image resides in different project than current project where your XAML resides, you have to use more verbose definition of Pack URI where you have to specify the assembly name where image is added.
Replace Assembly with actual assembly name where image is added into.
Also make sure Build Action
is set to Resource
for file Folder-icon.png.
UPDATE:
More verbose definition of Pack URI works in sample as well. Try this out: