Avalonia
Avalonia copied to clipboard
Avalonia Bind Error
Describe the bug Bind error
To Reproduce Steps to reproduce the behavior:
- Start desktop project
- See errors
Expected behavior We expected that there would be no errors
Desktop (please complete the following information):
- OS: Windows
- Version 11.0.0-preview2
Additional context You can see an example here: https://github.com/DenisT90/AvaloniaBindError
example errors: [Binding]Error in binding to '{ {M11:1 M12:0} {M21:0 M22:1} {M31:0 M32:0} }'.'ScaleX': 'Null value in expression '{empty}' at ''.'(ScaleTransform #47145209) [Binding]Error in binding to '{ {M11:1 M12:0} {M21:0 M22:1} {M31:0 M32:0} }'.'ScaleY': 'Null value in expression '{empty}' at ''.'(ScaleTransform #47145209) [Binding]Error in binding to 'Avalonia.Animation.Animation'.'IterationCount': 'Null value in expression '{empty}' at ''.'(Animation #4152081)
Same issue https://github.com/AvaloniaUI/Avalonia/issues/9218 https://github.com/AvaloniaUI/Avalonia/issues/8100 https://github.com/AvaloniaUI/Avalonia/issues/5762 https://github.com/AvaloniaUI/Avalonia/issues/5163
Requires quite a major refactor of the binding system to be more context-aware I'm afraid. As mentioned in #5762 we suppress these warnings for controls, but bindings that don't apply directly to controls don't have enough context to know when the warnings should be suppressed.