Assign BitmapImage from Resources.resx to Image.Source?

In order to make that Uri work, the file logo.png must be contained in a folder named “Resources” in your VS project (see first image), and its Build Action must be set to Resource (see second image).

VS Project

Build Action

This Resources folder is completely unrelated to Resources.resx. You may rename it to whatever you like.

Leave a Comment