WPF Case (iv) Simulate WINDOWS7 desktop taskbar

Source: Internet
Author: User

This program is modeled on the Windows7 desktop taskbar, when you double-click a shortcut on the desktop, a new child interface opens, and a taskbar icon that links to this interface is created in the taskbar, and when you move the mouse over the icon on the taskbar, it will popup the real-time image thumbnail of the interface, When you click the taskbar icon, you can maximize or minimize the interface, as shown in the following source code from here (http://files.cnblogs.com/5460600/StatusBar.rar) Download

When you do this taskbar interface thumbnail, use VisualBrush to populate the rectangle with the live image of the child interface

1  Rectangle emptyRectangle = new Rectangle
2   {
3       Width = 250D,
4       Height = 130D,
5       Fill = new VisualBrush { Visual = child },
6       Margin = new Thickness(2)
7   };

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.