Silverlight control style--tabcontrol

Source: Internet
Author: User
Tags silverlight

The Silverlight program has been written for more than a year, with a step-by-step process full of harvest but neglect to accumulate and share. In this free time, the previously rewritten control styles are documented, easy to access, and hope to serve as a starting point. If you have written and used questions, you can send mail to zdp06623#163.com (#替换为 @) feedback and inquiries.

Control modified Effect

Control usage Considerations

The control is overridden by the system's own control TabControl, and the style imitates the Chorme tab. There are several points to note during use:

1. The first tab style differs from other tab styles, and you need to refer to the Firstgreentabitemstyle style and Greentabitemstyle separately.

2, because the original TabControl selection card sorting and hierarchical relationship a little problem (the original control does not have overlapping areas, there is no problem), you need to set a global behavior, Added a style to the App.xaml, and added a TabControlChangedBehavior.cs file to the project to change the ZIndex settings of each tab header after the control is clicked, in detail to view the source code, where you can also change the current page to add a tab without using the global behavior Event Settings ZIndex, detailed code is shown in TabControlChangedBehavior.cs the "Change ZIndex value method when tab toggle" node event.

Control style Source code

Silverlighttabcontrol.rar

Silverlight control style--tabcontrol

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.