Enlarge icon from System.Drawing.Icon.ExtractAssociatedIcon

I want to get the associated file type icon in my WPF application. I can currently get version 32x32 using System.Drawing.Icon.ExtractAssociatedIcon(filePath) . However, I want the largest icon available. How can I achieve this?

For example, I want to get an icon for HTML files as shown below (shown in my browser):

enter image description here

+4
source share

Source: https://habr.com/ru/post/1479170/


All Articles