Skip to content

Change border color of TabViewItem #494

Answered by amwx
cricketthomas asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think TabView supports this, at least the way its built. I see two options
1- Retemplate the control and define the geometry for this. This is the hardest option
2- Use a LinearGradientBrush to hide the bottom of the Border, though this only works if the height of the tab items don't change,

<LinearGradientBrush x:Key="TabViewSelectedItemBorderBrush"
                     StartPoint="0,0" EndPoint="0%,100%">
    <GradientStop Color="Blue" Offset="0" />
    <GradientStop Color="Blue" Offset=".9" />
    <GradientStop Color="Transparent" Offset="0.9" />
</LinearGradientBrush>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cricketthomas
Comment options

Answer selected by cricketthomas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants