Skip to content

Expander Header Height #3052

Closed Answered by nicolaihenriksen
xperia-droid asked this question in Q&A
Discussion options

You must be logged in to vote

@xperia-droid Looking at the code you provided, one problem could be that you have given your Expander style and explicit key (i.e. "CustomExpanderStyle" string) rather than an implicit key (Expander type). When doing that, you will need to manually apply that custom style on every Expander instance by setting the Style property with something akin to {StaticResource CustomExpanderStyle}.

To avoid having to do that, you should be able to rely on the implicit style, so basically this part:

<Style TargetType="{x:Type Expander}" x:Key="CustomExpanderStyle" BasedOn="{StaticResource MaterialDesignExpander}">

Should be (i.e. without the x:key="CustomExpanderStyle"):

<Style TargetType="{x:Type E…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MichelMichels
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