DataTemplate bindings do not work #21481
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
platform/android 🤖
s/needs-attention
Issue has more information and needs another look
t/bug
Something isn't working
Milestone
Description
Helllo again .NET MAUI dev team,
i have discovered another issue with bindings in .NET MAUI: When trying to bind to a property within a DataTemplate, i do not get the value of the property i bound to. Instead i get the ToString() output of the object whose property i wanted to make a binding to.
I've created a WPF version of this demo project to ensure that i created the bindings correctly: https://github.com/AlphaNERD-/WPFBindingDemo/
Steps to Reproduce
Expected result:
You should see a list of names appear under the entry.
Actual result:
You see a list of "BindingDemoForGithub.ViewModelTest+TestUser" appear under the entry.
Link to public reproduction project repository
https://github.com/AlphaNERD-/NETMAUIBindingDemo
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 14
Did you find any workaround?
One way we could get around this is to use ToString(). This will help users working with VERY simple lists.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: