Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6057147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:27:22+00:00 2026-05-23T08:27:22+00:00

Using the TabControl element for Silverlight in Blend I created the following markup: <controls:TabControl>

  • 0

Using the TabControl element for Silverlight in Blend I created the following markup:

<controls:TabControl>
    <controls:TabItem Header="TabItem" Style="{StaticResource TabItemStyle1}" />
    <controls:TabItem Style="{StaticResource TabItemStyle1}">
        <controls:TabItem.Header>
            <StackPanel Orientation="Horizontal">
                <Path Data="M0,14L0,6 5,0 10,6 10,14 0,6 10,6 0,14 10,14"
                    StrokeLineJoin="Round" Margin="0 0 6 0"
                    Stroke="Black"/>
                <TextBlock Text="TabItem"/>
            </StackPanel>
        </controls:TabItem.Header>
    </controls:TabItem>
</controls:TabControl>

TabItemStyle1 is a copy of the default style of a TabItem.
I altered TabItemStyle1 by adding a color animation in the MouseOver storyboard so that unselected tab items become red when the mouse hovers them:

<ColorAnimation BeginTime="0" Duration="00:00:00.001"
    Storyboard.TargetName="HeaderTopUnselected"
    Storyboard.TargetProperty="(UIElement.Foreground).(SolidColorBrush.Color)"
    To="Red" />

Now when I hover the second tab, the text becomes red but the Path remains black:
Hovered second tab header

How should I define the Path Stroke color to make it follow the same rule?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:27:23+00:00Added an answer on May 23, 2026 at 8:27 am

    I made it work by binding the header content brushes to {TemplateBinding TextElement.Foreground}.

    In other cases I used standard property binding with converters, for example if I had to adapt element’s brushes to item state.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a TabControl to programmatically show or hide groups of form controls.
I have a TabControl, and I am using a TPanel to group my controls
Hi friends, Am newbie for windows Development .i have created Grid With tabcontrol using
I am working with Wpf. I am using TabControl, In some specific condition TabItem's
I have the following TabControl: <TabControl x:Name=Networks> <TabControl.ItemTemplate> <DataTemplate> <StackPanel Orientation=Horizontal> <TextBlock Text={Binding DisplayName}
i have a TabControl with several TabPages and controls in every TabPage. I'm using
I have created a taskbar using tabcontrols which works similarly to the Windows taskbar.
I am using TabControl_SelectedIndexChanged event when the user change tabs. The TabControl.SelectedIndex / TabControl.SelectedTab
I have a TabControl with two TabItem s and a ListBox which is common
I am using implicit DataTemplates of Silverlight 5 to wire ViewModel and View. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.