SKProCH/Material.Icons

"MaterialIcon.Kind" property is not StyledProperty

Sophisticated-IS opened this issue · 3 comments

Problem: can't be used in selector with child element.
Exception: (System.InvalidOperationException: Cannot set direct property 'Kind' in 'CheckBox[IsChecked=True] > MaterialIcon' because the style has an activator.)

Example(CheckBox with changing Icon depending on IsChecked):
image

Hello, @Sophisticated-IS

Which version of Material.Icons.Avalonia you have?

Hello, @Sophisticated-IS

Which version of Material.Icons.Avalonia you have?

Hello, @Sophisticated-IS

Which version of Material.Icons.Avalonia you have?

Material.Icons.Avalonia 2.0.0.

@SKProCH I checked with 2.0.1. It works fine. Commit solved it 225377a .