Hallo,
CardLayout needs the HeightRequest to get displayed. Then the First CardView is displayed on the Size of the HeightRequest, any other Cardview behind get resized to the Height of the content. If no HeightRequest is set, the cards will not display. If I set the MinimumHeightRequest, no cards are displayed!
This is the same in IOS and Android
<tabView:SfTabItem
Title="Section"
ImageSource="result_tab_32x32.png"
MinimumHeightRequest="32">
<tabView:SfTabItem.Content>
<StackLayout>
<!--<StackLayout HorizontalOptions="Center" VerticalOptions="Center">-->
<cards:SfCardLayout
HeightRequest="500"
BackgroundColor="Transparent"
ShowSwipedCard="True"
SwipeDirection="Left">
<!-- Start CdA -->
<cards:SfCardView
BackgroundColor="Transparent"
BorderColor="Transparent"
BorderThickness="0"
FadeOutOnSwiping="True"
HasShadow="True"
ShadowColor="Black">
Thanks
Hi Eswaran,
well I need to add VerticalOptions="FillAndExpand" to the Grid, that the Cards are shown and than it is adjusting to the height of the first card. So any bigger cards behind, will get cut in the bottom.
Thanks,
Markus
|
<tabView:SfTabView BackgroundColor="Aqua">
<tabView:SfTabItem Title="Color">
<tabView:SfTabItem.Content>
<Grid VerticalOptions="FillAndExpand">
<cards:SfCardLayout SwipeDirection="Left" BackgroundColor="#F0F0F0" >
<cards:SfCardView BackgroundColor="Cyan" >
</cards:SfCardView>
<cards:SfCardView BackgroundColor="Yellow">
</cards:SfCardView>
<cards:SfCardView BackgroundColor="Orange" VerticalOptions="Center" HeightRequest="300">
</cards:SfCardView>
</cards:SfCardLayout>
</Grid>
</tabView:SfTabItem.Content>
</tabView:SfTabItem>
<tabView:SfTabItem Title="Favorites">
<tabView:SfTabItem.Content>
<Grid BackgroundColor="Green" x:Name="FavoritesGrid" />
</tabView:SfTabItem.Content>
</tabView:SfTabItem>
</tabView:SfTabView>
|
Thanks Sridevi :)