XAML Binding Warning in .NET 9 for Behaviors and ViewModel with Property Binding in .NET MAUI #27631
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
partner/syncfusion
Issues / PR's with Syncfusion collaboration
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
After upgrading from .NET 8 to .NET 9, XAML bindings involving behaviors and view model with property bindings in .NET MAUI now trigger warnings. This issue arises when binding properties from both the ViewModel and Behavior within the same control, particularly when behaviors define properties like LayoutColor.
I enabled
<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>
This behavior change significantly impacts large projects where behaviors are used extensively for validation. A workaround or official guidance from the MAUI team would be beneficial to maintain clean and efficient XAML bindings without unnecessary warnings.
BindingWaring.mp4
Steps to Reproduce
TextInputLayoutSample.zip
Link to public reproduction project repository
No response
Version with bug
9.0.30 SR3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
I was not able test on other platforms
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: