xamarin/Xamarin.Forms
[UWP] PopAsync() crashes when navigating back to a page with a ListView with grouping after an item has been removed
开放
#3,887 创建于 2018年9月24日
a/listviewe/4 :clock4:help wantedi/highp/UWPt/bug :bug:up-for-grabs
仓库指标
- 星标
- (5,644 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
Description
Similar to Issue #3333, we're still seeing an exception from PopAsync() in v3.2.0.839982, however instead of a null reference it's now: System.ArgumentException: 'Value does not fall within the expected range.'
Steps to Reproduce
- Add items to a bound ListView that uses grouping
- Press the "Add Item" button in the attached example 3 times to add that manyitems
- Navigate to the page displaying the list and delete one of the items (The "List View Page"
- Select the "List View Page" sidebar menu item in the attached example
- Delete one of the items
- Using the "Remove" button in the attached example
- Navigate away from the page displaying the list
- Select the "Add Item Page" sidebar menu item in the attached example
- Navigate back to the page display the list
- Select the "List View Page" sidebar menu item in the attached example
Expected Behavior
We should be able to navigate to back a page after removing an item without causing an exception
Actual Behavior
The exception System.ArgumentException is thrown
Basic Information
- Version with issue: 3.2.0.839982
- Last known good version: Unknown, but it also crashes in 3.0.0.561731
- IDE: Visual Studio 2017 15.7.6
- Platform Target Frameworks:
- UWP: 16299
- Affected Devices: UWP Windows Desktop
Screenshots
-
Press the "Add Item" button in the attached example 3 times to add that manyitems

-
Delete one of the items

Screenshot of the crash
