WPF and Images In Subdirectories

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:

  1. 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.


Jamie of the past

PS: you really should exercise more….

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: