It gives me this error upon compilation:
Error AVLN3000 : Unable to find suitable setter or adder for property Foreground of type Avalonia.Controls:Avalonia.Controls.Presenters.TextPresenter for argument Avalonia.Base:Avalonia.Data.IBinding, available setter parameter lists are: Avalonia.Media.IBrush Line 68, position 97.
You can't bind to TextPresenter properties. This is a presenter control, designed to be used as a building block of more complex controls (like, TextBox).
Describe the bug
See the following XAML using a TextPresenter:
It gives me this error upon compilation:
Error AVLN3000 : Unable to find suitable setter or adder for property Foreground of type Avalonia.Controls:Avalonia.Controls.Presenters.TextPresenter for argument Avalonia.Base:Avalonia.Data.IBinding, available setter parameter lists are: Avalonia.Media.IBrush Line 68, position 97.
However I can still set the brush like this:
The following works too:
I don't think this matters, but this is my brush resource:
To Reproduce
Self explanatory
Expected behavior
No response
Avalonia version
11.1.0-beta2
OS
Windows
Additional context
I tested it on another project too, with the same result.