Bug explanation
Reproduction:
- Create WPF project with dependency on MaterialDesignThemes; add
ResourceDictionary to App.xaml
- Clone
ExpanderRotateAngleConverter
- Clone
MaterialDesignExpander from the latest commit as of this post, using aforementioned clone of ExpanderRotateAngleConverter
- Add an expander to
MainWindow.xaml
- Remove
Style of MaterialDesignHorizontalHeaderStyle from ToggleButton in the Template setter
Expected behavior: The expander no longer contains a chevron icon.
Actual behavior: The chevron icon persists.
Now, if I remove the style setters from ControlTemplate.Triggers as well, then the expander successfully reverts to looking horrible, but this discovery took a long time.
Could MaterialDesignExpander be rearranged so the triggers don't override my styling?
The attached reproduction uses BasedOn to eliminate non-template setters.
ExpanderWithoutChevron.zip