Xamarin iOS Application suspended in Monitor when UICollectionViewFlowLayout.PrepareLayout()

Xamarin iOS application infinitely suspended when CollectionView.IsVisible = false on start up. on Android, It works. However, on iOS, setting CollectionView.IsVisible = false resulted in application freezed. <StackLayout Margin="0,20,0,0"> <Button HorizontalOptions="CenterAndExpand" WidthRequest="100" Clicked="Button_Clicked" Text="Click Me"/> <CollectionView x:Name="Collection" VerticalOptions="FillAndExpand" ItemsSource="{Binding Items}" SelectionMode="Single" IsVisible="False"> <CollectionView.ItemsLayout> <GridItemsLayout Orientation="Vertical" Span="4"/> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate> <StackLayout Margin="10,10,10,10"> <Image WidthRequest="50" HeightRequest="50" Source="{local:ImageResource […]

By ibocon
Published
Categorised as Uncategorised Tagged , ,

Xamarin Application does not start up when CollectionView is included in ScrollView and ScrollView’s Visible is False

I stuck into vary strange issue. I have vary simple layout like below, <ScrollView> <CollectionView /> </ScrollView> And I just changed ScrollView.IsVisible = False and then my application does not response when try to load main page on iOS device. Xamarin.Forms 4.8.0.1451 XAML <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:Test="clr-namespace:CollectionViewTest" x:Class="CollectionViewTest.MainPage"> <ScrollView IsVisible="False"> <CollectionView ItemsSource="{Binding ItemSource}" SelectionMode="Single"> <CollectionView.ItemsLayout> […]

By ibocon
Published
Categorised as Uncategorised Tagged ,

Where to find `Xamarin.Forms.Platform.Android.ViewRenderer` or `Xamarin.Forms.Platform.iOS.ViewRenderer` API document?

I can’t find Xamarin.Forms.Platform.Android.ViewRenderer or Xamarin.Forms.Platform.iOS.ViewRenderer API. I want to see list of methods or events before create my custom renderer. Official MS document shows a simple instruction for creating custom renderer, but does not give me a full specification about ViewRenderer class. I could look into Github source code, but I do not want […]

By ibocon
Published
Categorised as Uncategorised

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq