Avalonia: Adding/Removing classes in codebehind crashes on PriorityLevel.cs

Created on 2 Oct 2019  路  2Comments  路  Source: AvaloniaUI/Avalonia

try out RenderDemo on https://github.com/AvaloniaUI/Avalonia/tree/repro-bindingprio-bug and repeatedly click the Pause/Resume Animations button.

cc: @MarchingCube

I tried fixing it by adding the following check on PriorityLevel.cs and it seem to work but im not sure if that's the correct fix.

Line 204:

                    if (_bindings.Count > 0)
                        _bindings.Remove(_binding);
bug

All 2 comments

Looks like we are unsubscribing twice, will investigate.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kekekeks picture kekekeks  路  4Comments

grokys picture grokys  路  4Comments

RUSshy picture RUSshy  路  4Comments

maxkatz6 picture maxkatz6  路  3Comments

SeleDreams picture SeleDreams  路  4Comments