Closed Symbai closed 9 months ago
Items in a listview are still enabled even if the Listview (or the parent of the listview) is (should be?) disabled
<ListView IsEnabled="False" ItemsSource="{Binding Source={x:Static local:MyCollection.Instance}, Path=CollectionTest.SubCollection}" SelectionMode="None"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <Grid> <Label Text="{Binding Name}" /> <Switch IsToggled="{Binding Enabled}"/> </Grid> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView>
In the upper code the Switch should be disabled but the user can still toggle the switch. But I've also tested it with Entry control and its the same.
Switch
Entry
Release Candidate 2 (current)
Unknown/Other
Android
Android 11 (Pixel 5)
No response
repro on Android emulator MauiApp6581.zip
Note: Also users are able to trigger the refresh (IsPullToRefreshEnabled="true", a RefreshCommand is not set) that should also be disabled if Listview is not enabled.
IsPullToRefreshEnabled="true"
RefreshCommand
Description
Items in a listview are still enabled even if the Listview (or the parent of the listview) is (should be?) disabled
Steps to Reproduce
In the upper code the
Switch
should be disabled but the user can still toggle the switch. But I've also tested it withEntry
control and its the same.Version with bug
Release Candidate 2 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11 (Pixel 5)
Did you find any workaround?
No response
Relevant log output
No response