WinUI alternative for Wpf's CreateBitmapSourceFromHIcon. #7943
Answered
by
castorix
gautambjain
asked this question in
Q&A
-
Wpf had Imaging.CreateBitmapSourceFromHIcon . How do I do it in WinUI? Basically, I want to show a file's icon in a listview. I plan to use SHGetFileInfo to get HICON. But don't know how to show it in list view. Please help :o) |
Beta Was this translation helpful? Give feedback.
Answered by
castorix
Nov 21, 2022
Replies: 1 comment 4 replies
-
I think it is simpler to use GetThumbnailAsync, then you can set it as BitmapSource for a control |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
gautambjain
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it is simpler to use GetThumbnailAsync, then you can set it as BitmapSource for a control
(like in the test I did in this thread : Set System.Drawing.Icon as Source for ImageIcon control - WinUI 3)