MaterialDesignInXAML / MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.
http://materialdesigninxaml.net
MIT License
15.18k stars 3.43k forks source link

Fix 3549: Forward relevant DPs to the nested Button #3588

Closed nicolaihenriksen closed 5 months ago

nicolaihenriksen commented 5 months ago

Fixes #3549

Forwards the relevant DPs down to the nested Button control.

As mentioned in the comment on the issue, I see the SplitButton.ButtonStyle DP as "an implementation detail" and not something that should be modified from calling code. It is simply a mapping between "split button style" and the corresponding "button style"; this could have been done in other ways as well.

While I was in the template, I added a seemingly missing VerticalContentAlignment forwarding, and also forwarded SnapsToDevicePixels and UseLayoutRounding to the root-element in the template.