Binding context type check fails for relative binding sources #25608
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
i/regression
This issue described a confirmed regression on a currently supported version
p/0
Work that we can't release without
platform/android 🤖
platform/iOS 🍎
platform/macOS 🍏
macOS / Mac Catalyst
platform/windows 🪟
t/bug
Something isn't working
Milestone
Description
When we check for
x:DataType
and binding context mismatch when aBinding
is applied, we compare thex:DataType
with an instance ofRelativeBindingSource
instead of the resolved source object.As a result, the runtime log contains misleading warnings:
Steps to Reproduce
Starting from
dotnet new maui
:$(MauiEnableXamlCBindingWithSourceCompilation)
in project file:x:DataType
toMainPage.xaml
:Link to public reproduction project repository
No response
Version with bug
Nightly / CI build (Please specify exact version)
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.0-rc.2.24503.2
Affected platforms
iOS, Android, Windows, macOS, Other (Tizen, Linux, etc. not supported by Microsoft directly)
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: