MSDN Archive Home
Help and FAQs
Windows® API Code Pack for Microsoft® .NET Framework
All Resource Updates
Create New Discussion
Custom TabbedThumbnail Strange (or not) Behavior
Aug 18 2012 at 8:01 AM
I am getting a strange behavior after supplying a custom image in TabbedThumbnailBitmapRequested event. The custom image used will show up in full screen preview when mouse hovers over the thumbnail from Taskbar. With normal scenarios when the preview image is actually taken from part of a Window, this is harmless (with correct offset given), but with custom image used, it hurts in a way. Also, it seems the custom image shown in full screen preview is directly drawn on screen that the child UI control supplied through TabbedThumbnail constructor is only used for drawn location calculation, i.e. I could not get rid of the custom image via hide the UI control.
To better explain this, we could take the Sticky Notes application from Windows 7, it has a custom preview image with Notes stacked together, while mouse hovers over the thumbnail, the full screen preview only shows Notes scattered as they should.
I am not quite sure if the behavior I see in API code pack is expected or not. I am currently setting the peekOffset to a big number to avoid seeing the custom image in full screen preview, but this is obviously an ugly way. Anyone could enlighten me whether this is expected?
Sign in to post message or set email notifications
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.