AssociatedIcons.GetIconFromFile Gets an Icon as an image source from the file. public ImageSource GetIconFromFile(string filename)