adonis-ui icon indicating copy to clipboard operation
adonis-ui copied to clipboard

DefaultToAccentToggleButton doesn't work

Open ZhmerenkaSolution opened this issue 3 years ago • 0 comments

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.

ZhmerenkaSolution avatar Apr 23 '21 11:04 ZhmerenkaSolution