xamarin/Xamarin.Forms
[Android] ViewCell Enabled not updated with IsEnabled Binding
Aperta
#4590 aperta il 30 nov 2018
a/binding ⛓a/listviewe/4 :clock4:help wantedinactivep/Androidt/bug :bug:up-for-grabs
Metriche repository
- Star
- (5644 stelle)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
Description
Similar to this isssue https://github.com/xamarin/Xamarin.Forms/issues/4424 I have the bug that the IsEnabled property for the ViewCell is not being updated properl and cells are stuck and cannot get updated anymore.
Steps to Reproduce
- Download the sample bewlo
- Edit the mentioned file
- Open the About Page
- Disable Some Options
- Go to the Browse Page
- Go back to the About Page
- Enable some Options again.
- At least one option will normally get stuck and cannot get reenabled.
Expected Behavior
The Cells and Switch should get enabled again
Actual Behavior
Nothing happens, the switch is stuck at disabled state.
Basic Information
- Version with issue: 3.3.0.912540
- Last known good version: Dont know
- IDE: Visual Studi 2017
- Platform Target Frameworks:
- Android: 8.1
- UWP: Nuget 6.1.5, 16299
- Android Support Library Version: 27
- Nuget Packages: None
- Affected Devices: None
Reproduction Link
The example from https://github.com/xamarin/Xamarin.Forms/issues/4424 can be used. Just do a quick edit in the Aboutpage.xaml:
<ViewCell IsEnabled="{Binding Visible}">
<StackLayout>
<StackLayout>
<Label Text="{Binding Title}"></Label>
<Switch IsToggled="{Binding Modified}" IsEnabled="{Binding Visible}"></Switch>
</StackLayout>
</StackLayout>
</ViewCell>
The zip file below must be edited as well! StackLayoutVisibleBug.zip