Open pavelovcharov opened 3 weeks ago
Using Avalonia v11.2.0-beta1 I get a compiler error AVLN1000 Avalonia: String '' was not recognized as a valid Boolean when using a binding as a style setter value.
AVLN1000 Avalonia: String '' was not recognized as a valid Boolean
This used to work in v11.1.3.
Add style as shown below
<Style Selector="Border.Test"> <Setter Property="IsVisible"> <Setter.Value> <MultiBinding Converter="{x:Static BoolConverters.And}"> <Binding Path="Test"></Binding> <Binding Path="Test1"></Binding> </MultiBinding> </Setter.Value> </Setter> </Style>
No compiler error should be thrown, binding should work
11.2.0-beta1
No response
This issue was introduced by PR #16153.
Possible ways to solve it can be:
XamlTransformHelpers.TryGetCorrectlyTypedValue
my favorite is option 3 but it's probably the longest
Describe the bug
Using Avalonia v11.2.0-beta1 I get a compiler error
AVLN1000 Avalonia: String '' was not recognized as a valid Boolean
when using a binding as a style setter value.This used to work in v11.1.3.
To Reproduce
Add style as shown below
Expected behavior
No compiler error should be thrown, binding should work
Avalonia version
11.2.0-beta1
OS
No response
Additional context
No response