Click here to Skip to main content
15,885,546 members
Articles / Programming Languages / C#

Anatomy of the Windows 7 taskbar – TabbedThumbnail (Part 1)

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
1 Apr 2010CPOL1 min read 12.9K   3  
One of the “features” of the new taskbar that excites me is the TabbedThumbnail interface! This allows me to quickly see which applications are open and what their status is!

One of the “features” of the new taskbar that excites me is the TabbedThumbnail interface! This allows me to quickly see which applications are open and what their status is! From the screen capture above, you can easily see that I have my favourite Google group (The WPF Disciples) open and also my own website (Shameless plug). Even these buttons are customizable… and it’s VERY easy to do!!!

To create a new TabbedThumbnail:

C#
preview = new TabbedThumbnail(this, this, VisualTreeHelper.GetOffset(this));
preview.Tooltip = "This is a awesome new tooltip";
preview.Title = "Customer XYZ";
preview.DisplayFrameAroundBitmap = true;

And to use it:

C#
TaskbarManager.Instance.TabbedThumbnail.AddThumbnailPreview(preview);

Although I am using the TabbedThumbnail at its most basic form here, it’s got loads of options. Here are some examples:

  • TabbedThumbnailClosed - The event that occurs when a tab is closed on the taskbar thumbnail preview.
  • TabbedThumbnailMaximized - The event that occurs when a tab is maximized via the taskbar thumbnail preview (context menu).
  • TabbedThumbnailMinimized - The event that occurs when a tab is minimized via the taskbar thumbnail preview (context menu).
  • TabbedThumbnailActivated - The event that occurs when a tab is activated (clicked) on the taskbar thumbnail preview.
  • TabbedThumbnailBitmapRequested - The event that occurs when a thumbnail or peek bitmap is requested by the user.

If you have content that constantly changes (Think media player), you can also call InvalidatePreview!

And that’s it for part 1. In part 2, we will cover custom peek areas and multi-tab interface (like Internet Explorer 8).

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
South Africa South Africa
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --