The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Get Icon From FileName in WPF
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Sunil MauryaPosted Jun 29, 2022, 5:11 AM
Thank you, it helps a lot. the only concern here is we are able to list the files in the list box but those files are not selectable. I want to select the file and open the file in the respective application(Ex. If a .pdf file then it should open in pdf application) with a double click. could you please help me here .. Thanks
Anoop MishraPosted Feb 9, 2018, 5:51 AM
Saves a lot of time..
Tuan NguyenPosted Jul 18, 2015, 12:54 PM
Diptimaya Patra, thank you for sharing great paragraph.
Ariel PacayPosted Nov 13, 2014, 8:02 AM
What if you don't have the file on hd, since it's still on the db and you want to give the user a preview on a list of an [icon filename (size)] list
Animesh DattaPosted Dec 31, 2013, 4:26 AM
thanks a lot... it helps me very must ...
SumanPosted Jan 25, 2010, 4:25 PM
The below section is missing in the above screen shots & code. This is found in the Download Zip. #region MyFiles public class MyFiles { public string FileName { get; set; } public ImageSource FileIcon { get; set; } } #endregion