HomeОбразованиеRelated VideosMore From: ProgrammingKnowledge

C# WPF Tutorial 2- Adding Image to WPF C# application (Image control , background image)

242 ratings | 168060 views
WPF C# Image Source c# Load Images in WPF application c# - How to load image to WPF c# - Using Image control in WPF to display c# - image problem in wpf c# - Adding Image to wpf Searches related to images with wpf c# c# wpf image source c# wpf background image c# wpf button image c# wpf rotate image
Html code for embedding videos on your blog
Text Comments (30)
cq33xx (1 month ago)
My source field is blank and there is no button for browsing image from my computer anyone knows why is that? Thanks
KoenderB B (2 months ago)
this guy knew about youtube watch time before it even existed
Kannada Tech Kannada (1 year ago)
Not working in visual studio 2017 and 2012
Silica (1 year ago)
Theres no browse files button next to the source.
John Lonai (1 year ago)
Where is Video 1 ?
Trzbne (2 years ago)
For picture: Inclide in project, Add Existing item, Resources - Add Resource - Add Existing File - I tried everything, and Source is empty, and there is no small button with 3 dots next to it. Please help me to solve this in VS 2015.
Trzbne (2 years ago)
Oh. Write there the name of the already added picture :-) I can see the image there, but when I start debug, it disappears.
maz said (2 years ago)
sur vs 2013 ultimate effectuer un drag and drop de l'image choisie du fichier etvous verrez le resultat trés simple.
Melodica S (2 years ago)
you always call your files kkk?
Uchiha Madara (2 years ago)
Mann. i A fhkhfdguj
MeMarie L (3 years ago)
To add an image I just copied mine into that main folder, just next to 'properties', 'bin' & 'obj' folders. Then in VisualStudio I clicked RMB on my Project Name and chose "Add..."->"Existing item..." -> myImg.jpg. Now it is visible in the Source and able to add :) Yeah, feeling like a coding beast :3
Didier Perez (1 year ago)
vinzer72frie (2 years ago)
This is what worked for me Thank you
Mr Nope (2 years ago)
Thx this is life saving comment, finally something that works without bunch of senseless errors from VS
ХелЬоу гайз! УелЬком ту май видио... ай уилЬ шоу ю хау ту чуз стиль тулЬ. Фёрст оф олЬ уи го ту туториалЬ энд клЬик ОКЕ! :):):):):):):):)
roon (3 years ago)
How to make a Keygen/Crack GUI Tutorial. In all seriousness though, there were some problems with loading images in VS2013 - no dialog box to be seen nowhere. Had to copy file into app dir manualy and link it from there by copying the path and filename and pasting it into property window in VS. Also, path is looking bit diff in XAML window than in the vid.
Nikola Grujic (4 years ago)
I loaded it succesfully in my first project, but in second = "Property value is not valid." -.- I'm using Visual C# 2010.
vinzer72frie (2 years ago)
Check the formats of the images like png jpg there's only few that can be loaded
Taran Singh (4 years ago)
for those people using visual studio 2012 plus - you need to create a folder in the project folder with your images in then in the solution explorer  click the "show all files" icon and then you will see your images folder - right click on it and select "Include in Project" then they will show up in your image source selection.
Erik (1 month ago)
Thank you so much! I was losing my nerves here...
cq33xx (1 month ago)
u r just the best, programer of a caliber
arslan ahmed (1 month ago)
David Lewis (3 years ago)
+Taran Singh Thank you sooo much for this!
weltvonalex (3 years ago)
+Taran Singh Thank you, worked very well!
biniam bekele (5 years ago)
i have seen c# tutorial from ProgrammingKnowledge· and WPF it's awesome !!!! gives me all the basic things i need and more Thanks Sir :) .
Manjusha Potluri (5 years ago)
hi i want how to display image with button click in xaml and c#.. in your video only xamel code available.. please post me xamel.cs also...
S DJ (5 years ago)
Not work in VS2012
Soham Chakravarty (5 years ago)
it would be helpful if you could show how to add image source from the code behind.
Nissim Cohen (5 years ago)
Thank you
krim belkacem (5 years ago)
thank you for this series i hope it has database and how to deploy this application

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.