<ScrollView Orientation="Vertical" VerticalOptions="FillAndExpand" HorizontalOptions ="FillAndExpand" BackgroundColor="White">
<StackLayout Orientation="Vertical" VerticalOptions="Start" HorizontalOptions ="FillAndExpand" BackgroundColor="White">
<syncfusion:SfListView x:Name="ListView" ItemsSource="{Binding BusinessRegList}" Orientation="Horizontal" ItemSpacing="0,0,0,0" ItemSize="200" AutoFitMode="None" MinimumHeightRequest="200">
<syncfusion:SfListView.ItemTemplate>
<DataTemplate>
<Grid Padding="2">
<Image Source = "NoImage.png" HorizontalOptions = "Center" WidthRequest = "200" VerticalOptions = "Start" />
<Label Grid.Row="1" Text="{Binding BusinessName}" TextColor="#292a60" FontSize="10" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
</Grid>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView>
</StackLayout>
<BoxView Color ="#D4D94B" HeightRequest ="5" WidthRequest="100" />
<StackLayout Orientation="Vertical" VerticalOptions="Start" HorizontalOptions ="FillAndExpand" BackgroundColor="White">
<syncfusion:SfListView x:Name="ListView2" ItemsSource="{Binding BusinessRegList}" Orientation="Horizontal" ItemSpacing="0,0,0,0" ItemSize="200" AutoFitMode="None" MinimumHeightRequest="200">
<syncfusion:SfListView.ItemTemplate>
<DataTemplate>
<Grid Padding="2">
<Image Source = "NoImage.png" HorizontalOptions = "Center" WidthRequest = "200" VerticalOptions = "Start" />
<Label Grid.Row="1" Text="{Binding BusinessName}" TextColor="#292a60" FontSize="10" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
</Grid>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView>
</StackLayout>
<BoxView Color ="#D4D94B" HeightRequest ="5" WidthRequest="100" />
<StackLayout Orientation="Vertical" VerticalOptions="Start" HorizontalOptions ="FillAndExpand" BackgroundColor="White">
<syncfusion:SfListView x:Name="ListView3" ItemsSource="{Binding BusinessRegList}" Orientation="Horizontal" ItemSpacing="0,0,0,0" ItemSize="200" AutoFitMode="None" MinimumHeightRequest="200">
<syncfusion:SfListView.ItemTemplate>
<DataTemplate>
<Grid Padding="2">
<Image Source = "NoImage.png" HorizontalOptions = "Center" WidthRequest = "200" VerticalOptions = "Start" />
<Label Grid.Row="1" Text="{Binding BusinessName}" TextColor="#292a60" FontSize="10" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
</Grid>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView>
</StackLayout>
<BoxView Color ="#D4D94B" HeightRequest ="5" WidthRequest="100" />
<StackLayout Orientation="Vertical" VerticalOptions="Start" HorizontalOptions ="FillAndExpand" BackgroundColor="White">
<syncfusion:SfListView x:Name="ListView4" ItemsSource="{Binding BusinessRegList}" Orientation="Horizontal" ItemSpacing="0,0,0,0" ItemSize="200" AutoFitMode="None" MinimumHeightRequest="200">
<syncfusion:SfListView.ItemTemplate>
<DataTemplate>
<Grid Padding="2">
<Image Source = "NoImage.png" HorizontalOptions = "Center" WidthRequest = "200" VerticalOptions = "Start" />
<Label Grid.Row="1" Text="{Binding BusinessName}" TextColor="#292a60" FontSize="10" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
</Grid>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView>
</StackLayout>
<BoxView Color ="#D4D94B" HeightRequest ="5" WidthRequest="100" />
<StackLayout Orientation="Vertical" VerticalOptions="Start" HorizontalOptions ="FillAndExpand" BackgroundColor="White">
<syncfusion:SfListView x:Name="ListView5" ItemsSource="{Binding BusinessRegList}" Orientation="Horizontal" ItemSpacing="0,0,0,0" ItemSize="200" AutoFitMode="None" MinimumHeightRequest="200">
<syncfusion:SfListView.ItemTemplate>
<DataTemplate>
<Grid Padding="2">
<Image Source = "NoImage.png" HorizontalOptions = "Center" WidthRequest = "200" VerticalOptions = "Start" />
<Label Grid.Row="1" Text="{Binding BusinessName}" TextColor="#292a60" FontSize="10" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
</Grid>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView>
</StackLayout>
</ScrollView>
The problem is when I do this, the first horizontal ListView cover all the others bellow it.
Is there a way to achieve something like that that I am explaining?
Thanks in advance.
Daniel
|
<ContentPage>
<ContentPage.BindingContext>
<local:ContactsViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<ScrollView Orientation="Vertical" VerticalOptions="FillAndExpand" HorizontalOptions ="FillAndExpand" BackgroundColor="White">
<StackLayout>
<StackLayout Orientation="Vertical" VerticalOptions="Start" HorizontalOptions ="FillAndExpand" BackgroundColor="White">
<syncfusion:SfListView x:Name="ListView" ItemsSource="{Binding contactsinfo}" Orientation="Horizontal" ItemSpacing="0,0,0,0" ItemSize="200" AutoFitMode="None" HeightRequest="200"/>
</StackLayout>
<StackLayout Orientation="Vertical" VerticalOptions="Start" HorizontalOptions ="FillAndExpand" BackgroundColor="White">
<syncfusion:SfListView x:Name="ListView2" ItemsSource="{Binding contactsinfo}" Orientation="Horizontal" ItemSpacing="0,0,0,0" ItemSize="200" AutoFitMode="None" HeightRequest="200"/>
</StackLayout>
</StackLayout>
</ScrollView>
</ContentPage.Content>
</ContentPage> |