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