Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How to add an Image Source as a Resource in WPF
WhatsApp
Mike Gold
13y
75.4
k
0
0
25
Blog
Add the image to your project and set it as a Resource in the
Build Action
on the Properties window
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"
How to add an Image Source as a Resource in WPF
Up Next
Convert Powerpoint file into Image file
Ebook Download
View all
Printing in C# Made Easy
Read by 22.3k people
Download Now!
Learn
View all
Membership not found