XAML Compile Causes Failure at Run Time #22110
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
platform/android 🤖
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
The symptom was that some code stopped working but only in a Release build. The problem was obscured by DataTempltes, SwipeViews and general cruft, but it came down to XAML like this:
The symptom is that in a Release build the CommandParameter is null whereas in a Debug build the current Person object is passed.
I'm not convinced this is a bug at all, but if not it certainly can make for a surprising feature.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/david-maw/XamlCompile-Binding.git
Version with bug
8.0.10 SR3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
Android, Windows, I was not able test on other platforms
Affected platform versions
Windows 11, Android 14
Did you find any workaround?
Yes specifying the correct
x:DataType
for theDataTemplate
(local:Person
in this example).Relevant log output
No response
The text was updated successfully, but these errors were encountered: