Page 1 of 1

Different thumbnail background colors

Posted: Thu Apr 12, 2012 4:56 pm
by mmorvant
I would like to assign a different colored background to different thumbnails in a single document. I would like a user to be able to assign a category to each page and then re-inforce that category with a different color. For sake of argument let's say that we have a ten page document. The user could identify the title page with red, the table of contents with orange, the forward with blue, and the contents with green. The actual images wouldn't be changed, just the thumbnail view. Also, this doesn't need to be saved in any way.

The thumbnail class is sealed so I can't create my own custom control, and the Appearance objects are global. Is there any other way that I could do this? I have spent a couple of hours digging into it, and couldn't come up with anything viable. I am hoping that I missed something.

Any help is appreciated.

Thanks!

Re: Different thumbnail background colors

Posted: Fri Apr 13, 2012 10:08 am
by Alex
Hello,

You can subscribe to the ThumbnailPainting event of the ThumbnailViewer object and change the painting algorithm of thumbnail if this is necessary.

Best regards, Alexander