C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
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
14y
76
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
People also reading
Membership not found