c# - How to draw Windows-style folder icons that preview the contents -
i have c#/wpf application displays collections of components. want know how create image styled windows 7 folder icon, 1 or 2 of content thumbnails enclosed yellow leaf folder. (the collections have aren't real windows folders, , contents aren't real windows files)
google approach
i have spent fair amount of time searching code samples on how this, or remotely similar. can't find single example of doing this, has surprised me. tells me 1 of 2 things:
- i can't find right keywords search on (combinations of: thumbnail, windows, c#, wpf, icon, folder)
- nobody else has ever wanted this, , that's because there better way of doing want do.
coding approach
i can see there might image drawn first, , skew transforms applied each content thumbnail, overlaid, , front image. i've seen code examples show how skew images, etc. there subtle effects being drawn here (shadows), though "canned". i'm not sure how separate example images below front , portion, though give try in photoshop.
windows api approach
the closest approach i've been able find without coding ground write component's thumbnail real windows .png file, inside real folder, , use windows.storage.storagefolder.getthumbnailasync() windows me. makes me die little inside, might quickest way this.
can me? ideally looking library or existing code sample show me how generate these. otherwise, attempt code myself using coding approach outlined above. i'm not looking write code me, appreciate pointers.
thank you!
Comments
Post a Comment