You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: x:Bind from a string to a non-string property is falsely reported as an error (WXAML0030) #352
Binding a string source with x:Bind to targets like Background, Foreground, Width, Margin, Visibility or IsEnabled is reported as an ErrorWXAML0030, although the XAML compiler inserts a conversion and the app runs.
To Reproduce
Add public string Title { get; } to the view model.
In a page, add <Border Background="{x:Bind ViewModel.Title}"/> or <Button Width="{x:Bind ViewModel.Title}"/>.
See WXAML0030 The x:Bind result type 'string' is not assignable to 'Brush'.
Expected behavior
No diagnostic for string sources the compiler accepts. Truly incompatible types (int to bool, Color to Brush) are still flagged.
Activity