Expander Header Height #3052
-
Hi, I added the materialDesign Expander in my app.xaml and the MaterialDesignHorizontalHeaderStyle into it, but I don't found any way to make the Header smaller. I tried different properties, but no change at all. `<Style x:Key="CustomHeader" TargetType="{x:Type ToggleButton}">
Thank you very much for your help :). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@xperia-droid Looking at the code you provided, one problem could be that you have given your 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 <Style TargetType="{x:Type Expander}" BasedOn="{StaticResource MaterialDesignExpander}"> |
Beta Was this translation helpful? Give feedback.
@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 everyExpander
instance by setting theStyle
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:
Should be (i.e. without the
x:key="CustomExpanderStyle"
):