XAML Object Self Reference Gets Warning #25272
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
i/regression
This issue described a confirmed regression on a currently supported version
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
With MauiEnableXamlCBindingWithSourceCompilation set, objects that self-refer get warning
XamlC warning XC0045: Binding: Property "property name" not found
For example, this XAML (which draws a circle of diameter
MainViewModel.Diameter
gets the warning
XamlC warning XC0045: Binding: Property "WidthRequest" not found
Because Widthrequest is a property of the Ellipse class whereas Diameter is a property of the MainViewModel class which is specified in an enclosing page level x:DataType.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/david-maw/ItemSelfRef.git
Version with bug
9.0.0-rc.2.24503.2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
No response
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
No response
The text was updated successfully, but these errors were encountered: