AvaloniaCommunity / Material.Avalonia

Material design in AvaloniaUI
MIT License
818 stars 76 forks source link

Invalid brush type in ripple effect #114

Closed Al-Dyachkov closed 2 years ago

Al-Dyachkov commented 3 years ago

[Binding] Error in binding to 'Material.Ripple.RippleEffect'.'RippleFill': 'Unable to convert object 'Black' of type 'Avalonia.Media.Immutable.ImmutableSolidColorBrush' to type 'Avalonia.Media.Brush'.' [Binding] Binding produced invalid value for 'RippleFill' ('Avalonia.Media.Brush'): 'Black' ('Avalonia.Media.Immutable.ImmutableSolidColorBrush')(RippleEffect #38221738)

Lots of these popping up in debug output during animations when lauching with LogToTrace()

Windows 10, Avalonia 10.7, Material.Avalonia 2.4.0

Material Demo works OK.

I do not alter effect in any way or set black color anywhere in whole solution.

Al-Dyachkov commented 3 years ago

Looks like it's XAMLIL related issue : It happens only on controls that are using compiledbinding UPD: No, It's not related, switching everything to binding did not change behavior.

Al-Dyachkov commented 3 years ago

https://github.com/Al-Dyachkov/Err_114

I've dug for a bit and created minimal app to reproduce the issue. Just build and press button to refresh list box. Looks like during recycling of virtualized items properties are assigned some kind of default immutable brush.

appleneko2001 commented 3 years ago

Thanks for reporting issue! Later I will fix this issue as quick as possible.

appleneko2001 commented 3 years ago

The fixes has shipped in nightly package, and it will be applied in next release version!

Al-Dyachkov commented 2 years ago

Everything looks good now, can be closed