Avalonia icon indicating copy to clipboard operation
Avalonia copied to clipboard

Avalonia Bind Error

Open DenisT90 opened this issue 1 year ago • 2 comments

Describe the bug Bind error

To Reproduce Steps to reproduce the behavior:

  1. Start desktop project
  2. 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)

DenisT90 avatar Oct 18 '22 06:10 DenisT90

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

maxkatz6 avatar Oct 18 '22 06:10 maxkatz6

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.

grokys avatar Oct 18 '22 14:10 grokys