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"
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:
<ToggleButton Style="{DynamicResource {x:Static adonisUi:Styles.DefaultToAccentToggleButton}}"/>
Expected behavior Working
DefaultToAccentToggleButton
in runtime.Screenshots
ToggleButton
-IsChecked="True"
Additional context Made everything like in project docs: https://benruehl.github.io/adonis-ui/docs/guides/styles-and-templates/
only replaced
Button
toToggleButton
andAccentButtonStyle
toDefaultToAccentToggleButton
.