Issue with bindings in ListView #20883
Labels
area-controls-listview
ListView and TableView
platform/windows 🪟
s/triaged
Issue has been reviewed
s/try-latest-version
Please try to reproduce the potential issue on the latest public version
t/bug
Something isn't working
Description
This binding completely crashes element creation when CommandParameter is used, because ListView on initializing a ViewCell sets its BindingContext from the parent, instead of the ItemsSource element.
Step by step:
--- During this step binding a command to a VM property will crash due to the wrong CommandParameter type.
This mistake is also the reason why everyone sees binding errors even though their bindings are working in the end.
Steps to Reproduce
HOTFIX:
Use objects as arguments, to prevent the exception, cast your data manually
Link to public reproduction project repository
No response
Version with bug
8.0.6 SR1
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
19045.3930
Did you find any workaround?
Use
object
as arguments, to prevent the exception, and cast your data manuallyRelevant log output
No response
The text was updated successfully, but these errors were encountered: