Skip to content

Style to change TabStripItem margin. #300

Closed Answered by SKProCH
kevkov asked this question in Q&A
Discussion options

You must be logged in to vote

It doesn't work because of priority. Since it has been set inside a template it has a LocalValue priority:

Margin="24,12,24,12" HorizontalAlignment="Center"

And your style can't override it.

I've changed it and now you can override it. Use

        <Style Selector="TabStripItem /template/ ContentPresenter#PART_HeaderContent">
            <Setter Property="Margin" Value="50,100,100,50"></Setter>
        </Style>

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by kevkov
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