adonis-ui
adonis-ui copied to clipboard
DefaultToAccentToggleButton doesn't work
Describe the bug
<ToggleButton Style="{DynamicResource {x:Static adonisUi:Styles.DefaultToAccentToggleButton}}">
works only in visual studio 19 xaml preview editor.
To Reproduce Steps to reproduce the behavior:
- Create on window
<ToggleButton Style="{DynamicResource {x:Static adonisUi:Styles.DefaultToAccentToggleButton}}"/>
- Launch this window.
Expected behavior
Working DefaultToAccentToggleButton
in runtime.
Screenshots
- Xaml window editor. Left
ToggleButton
-IsChecked="True"
- Launched window without that "blue brush".
Additional context
Made everything like in project docs: https://benruehl.github.io/adonis-ui/docs/guides/styles-and-templates/
only replaced
Button
to ToggleButton
and AccentButtonStyle
to DefaultToAccentToggleButton
.