I’m instancing a Uri to be used as an image source but the string (file path) I’m providing is invalid. I understand why – it’s because I’m using a relative path:
"Resources/Images/" + draggedAct.Category.ToLower() + ".png"
When I had this problem in asp .net I used Server.MapPath(imageString) to resolve the full path but I don’t know the equivalent in WPF.
Thanks a lot,
Dan
use the pack uri syntax (see msdn: http://msdn.microsoft.com/en-us/library/aa970069%28v=vs.85%29.aspx):
or: