Bug 45818 - 'System.ArgumentOutOfRangeException' in System.Collections.dll in UWP Editor/Entry embedded in header/footer of listview after carriage return.
Summary: 'System.ArgumentOutOfRangeException' in System.Collections.dll in UWP Editor/...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-10-23 19:23 UTC by Jeff Dalby
Modified: 2016-11-04 20:29 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jeff Dalby 2016-10-23 19:23:45 UTC
This started happening in 2.3.2, and the 2.3.x pre release code, reverting to 2.3.1 resolves the issue.

Steps to duplicate:
1. Add a listview to a page
2. In the header or footer of the page add an Entry or an Editor in either the header or footer with a binding using the root of the page as the source and binding to something in your view model. The listview is bound to an observablecollection in the viewmodel.
3. Doesn't matter if you are on a phone with a virtual keyboard, or on the desktop as local machine or simulator, if you hit the enter key while the cursor is in the box it will crash.  The crash happens prior to the TextChanged even so you can't intercept it.

We place the view inside a listview in order to properly handle scrolling. An example of a header that causes this:

              <StackLayout Spacing="10" Margin="5,0,5,0">
               <Label Text="Test" Style="{StaticResource HeaderLabelTextStyle}"/>
                 <Editor Text="{Binding Source={x:Reference MyPage}, Path=BindingContext.MyObject.Description, Mode=TwoWay}" HeightRequest="60" TextColor="Blue" Completed="OnCompleted"/>
Comment 1 Jeff Dalby 2016-11-04 20:29:35 UTC
Issue is resolved in