How to add an Image Source as a Resource in WPFMike Gold15yPublished Apr 7, 2011, 12:00 AMUpdated Apr 7, 2011, 1:18 PM77.6k00Reactions×25BlogAdd the image to your project and set it as a Resource in the Build Action on the Properties windowSet 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"CommentsJoin the conversation! Your thoughts help the community grow.Sign in to leave a commentIt is the same account you read, post and publish with — and you will come straight back to this page.Sign inCreate an account
Join the conversation! Your thoughts help the community grow.