Skip to content

Commit

Permalink
hold back CollectionView Adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Aug 20, 2020
1 parent 3726ad1 commit 09ecf4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e/Forms/src/HelloWorld/Views/MyMasterDetail.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
<Button Text="CarouselView Region"
Command="{Binding NavigateCommand}"
CommandParameter="MyNavigationPage/CarouselDemoRegion" />
<Button Text="CollectionView Region"
<!--<Button Text="CollectionView Region"
Command="{Binding NavigateCommand}"
CommandParameter="MyNavigationPage/CollectionViewDemoRegion" />
CommandParameter="MyNavigationPage/CollectionViewDemoRegion" />-->
<Button Text="ContentView Region"
Command="{Binding NavigateCommand}"
CommandParameter="MyNavigationPage/ContentViewDemoRegion" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ public static IContainerRegistry RegisterRegionServices(this IContainerRegistry
configureAdapters?.Invoke(regionAdapterMappings);
regionAdapterMappings.RegisterDefaultMapping<CarouselView, CarouselViewRegionAdapter>();
regionAdapterMappings.RegisterDefaultMapping<CollectionView, CollectionViewRegionAdapter>();
// TODO: CollectionView is buggy with only last View showing dispite multiple Active Views
// BUG: iOS Crash with CollectionView https://github.com/xamarin/Xamarin.Forms/issues/9970
//regionAdapterMappings.RegisterDefaultMapping<CollectionView, CollectionViewRegionAdapter>();
regionAdapterMappings.RegisterDefaultMapping<Layout<View>, LayoutViewRegionAdapter>();
regionAdapterMappings.RegisterDefaultMapping<ScrollView, ScrollViewRegionAdapter>();
regionAdapterMappings.RegisterDefaultMapping<ContentView, ContentViewRegionAdapter>();
Expand Down

0 comments on commit 09ecf4a

Please sign in to comment.