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

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

206 ratings | 152347 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 (25)
Kannada Tech Kannada (4 months ago)
Not working in visual studio 2017 and 2012
Silica (7 months ago)
Theres no browse files button next to the source.
John Lonai (1 year ago)
Where is Video 1 ?
Trzbne (1 year 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 (1 year 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 (1 year 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 (1 year ago)
you always call your files kkk?
Takashiku Farmer (1 year ago)
Mann. i A fhkhfdguj
MeMarie L (2 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 (4 months ago)
vinzer72frie (1 year 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 (3 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 (1 year ago)
Check the formats of the images like png jpg there's only few that can be loaded
Taran Singh (3 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.
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 (4 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 (4 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 (4 years ago)
Not work in VS2012
Soham Chakravarty (4 years ago)
it would be helpful if you could show how to add image source from the code behind.
Nissim Cohen (4 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.