C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
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.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"
People also reading
Membership not found