Silverlight control style -- TabControl, silverlight Control

Source: Internet
Author: User

Silverlight control style -- TabControl, silverlight Control

I have been writing the Silverlight program for more than a year, but it has gained a lot but has been neglected to accumulate and share it. In this idle time, we will record the previously rewritten controls one by one for easy access and hope to serve as an example. If you have written or used any questions, you can send an email to zdp06623 # 163.com( # Replace with @) for feedback and inquiry.

Effect after control Modification

 

Controls

This control is rewritten by the built-in system control TabControl. The style is similar to the Chorme tab. Pay attention to the following points during use:

1. The first tab style differs from other tab styles. You must reference the FirstGreenTabItemStyle and GreenTabItemStyle respectively.

2. Because there is a slight problem between the sorting and hierarchy of the original TabControl Image Selection card (the original control does not have overlapping areas and there is no problem), you need to set a global behavior in the App. style is added to xaml and a TabControlChangedBehavior is added to the project. the cs file is used to dynamically modify the ZIndex settings of each tab header after the control is clicked. For details, you can view the source code. Here, you can set ZIndex by adding tab events on the current page instead of using global behavior, for detailed code, see TabControlChangedBehavior. cs "Modify ZIndex value method during Tab switching" Node event.

Control style source code

SilverlightTabControl.rar

Related Article

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.