WPF and Images In Subdirectories
September 17, 2013 Leave a comment
Dear Jamie of the future:
When you have a WPF project and you want to add images in a subfolder to a page, you need to do this:
- Image x:Name="TestImage" Source="/Images/TestImage.png">
Note the forward slashes.
Also, if you have two images and you change the location on both, you will get the blue squiggly line of approbation like this:
If you fix the first one, BOTH will still have the BSLA:
So it looks to be all or none – perhaps b/c the IDE can’t parse anything so it leaves the last BSLA in place? In any event, fix all of them and the BSLA goes away.
Sincerely,
Jamie of the past
PS: you really should exercise more….