© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
30 replies
!🌸! Rushaan

✅ Image source not being set with C#, WPF

I have a very basic C# statement but whenever it gets executed the image is not set and the image element disappears.

qrcode.Source = new BitmapImage(new Uri(@"/Images/scannn.png", UriKind.Relative));
qrcode.Source = new BitmapImage(new Uri(@"/Images/scannn.png", UriKind.Relative));


I have no clue why its not being set, the image is present in that directory, build action of the image is set to content and copy to output is set to copy always
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

c# wpf style
C#CC# / help
11mo ago
Shitfting Image WPF
C#CC# / help
2y ago
Image not showing in wpf button
C#CC# / help
2y ago
❔ WPF Image not loading From FontAwesome
C#CC# / help
3y ago