
Set the Source property of the image in your XAML as follows (completely unintuitive but it works)
<Image Source="pack://application:,,,/MyAssemblyName;component/resources/images/lightbulbssmall.png"
I was struggling with adding an image Source to WPF having lived in the Silverlight world for the last few years, but here it is.

DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · Learn .NETCSharp 13 and .NET 9 Scripting Guide (Run .cs Without Projects)Download nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Join the conversation! Your thoughts help the community grow.