How to reference image resources in XAML?

If the image is in your resources folder and its build action is set to Resource. You can reference the image in XAML as follows:


Assuming you do not have any folder structure under the Resources folder and it is an application. For example I use:


when I have a folder named RibbonImages under Resources folder.

Leave a Comment