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
13y
75.7
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.4k people
Download Now!
Learn
View all
Membership not found