benruehl / adonis-ui

Lightweight UI toolkit for WPF applications offering classic but enhanced windows visuals
https://benruehl.github.io/adonis-ui/
MIT License
1.69k stars 143 forks source link

DefaultToAccentToggleButton doesn't work #158

Open ZhmerenkaSolution opened 3 years ago

ZhmerenkaSolution commented 3 years ago

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:

  1. Create on window <ToggleButton Style="{DynamicResource {x:Static adonisUi:Styles.DefaultToAccentToggleButton}}"/>
  2. Launch this window.

Expected behavior Working DefaultToAccentToggleButton in runtime.

Screenshots

  1. Xaml window editor. Left ToggleButton - IsChecked="True" изображение
  2. 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.