ListView rows not visible on Windows when using CommandParameter #14065
Labels
area-controls-listview
ListView and TableView
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
I was investigating a strange behaviour on Windows where the rows of a
ListView
are not shown properly, even though it's possible to hover over them and see that they are there:This happens when binding the
CommandParameter
of aButton
. I managed to create a small example app in which this happens (mostly using the example at https://github.com/dotnet/maui-samples/tree/main/6.0/Beginners-Series).If you run the app on windows you will have the same effect as shown in the previous screenshot.
If you remove
CommandParameter
from theButton
(https://github.com/papafe/maui-list-issue/blob/9f4979fce19467ac104d2e9e48b12588d35a1072/MauiApp2/MainPage.xaml#L21), it will start to work.This does not happen on iOS.
Steps to Reproduce
ListView
looks empty even though the rows are there (can be seen by hovering with the mouse)CommandParameter
from theButton
in the xaml file and observe that the rows appear.Link to public reproduction project repository
https://github.com/papafe/maui-list-issue
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: