xamarin/Xamarin.Forms
[Android] ViewCell Enabled not updated with IsEnabled Binding
开放
#4,590 创建于 2018年11月30日
a/binding ⛓a/listviewe/4 :clock4:help wantedinactivep/Androidt/bug :bug:up-for-grabs
仓库指标
- 星标
- (5,644 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
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