Closed SebastianKruseWago closed 5 years ago
I've had the same issue. This was introduced by https://github.com/xamarin/Xamarin.Forms/pull/4899 as far as I can tell.
Whenever we have a blank tabbed page and add items to its items source, the app will crash with said index out of range exception in the tabbed page renderer.
Workaround: this has forced us to create the items source with a dummy blank tab and then remove it when the proper tabs are created later on.
@MitchBomcanhao Another workaroud is to create the TabbedPageRenderer yourself (basicly a copy of the original one) and check the page count. The problem is the following line: https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Platform.UAP/TabbedPageRenderer.cs#L563 (not tested yet but this is the cause of the issue based on the StackTrace).
closed by #6385
Description
After updating to Xamarin.Forms 4.0 my UWP project is no longer able to show TabbedPages (IndexOutOfRangeException).
Steps to Reproduce
Expected Behavior
No exception + working
Actual Behavior
Crashes with this exception:
Basic Information