Skip to content

Expander header styling #3002

Closed Answered by nicolaihenriksen
MrHaribo asked this question in Q&A
Discussion options

You must be logged in to vote

@MrHaribo So there are a couple of issues here. I'll try to break it down.

You are missing an explicit key on the Style based on the MaterialDesignHorizontalHeaderStyle. It should be defined with an x:Key (explicit key) like it is in MaterialDesignTheme.Expander.xaml:

<!--This does NOT work-->
<Style x:Key="MaterialDesignHorizontalHeaderStyle"
       BasedOn="{StaticResource MaterialDesignHorizontalHeaderStyle}"
       TargetType="{x:Type ToggleButton}">
    <Setter Property="Foreground" Value="Aqua"/>
</Style>

However, even with that in place it still does not work. To my knowledge, you cannot "hijack" just the MaterialDesignHorizontalHeaderStyle style in this manner because of the way W…

Replies: 1 comment 1 reply

Comment options

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

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