Hi,
can't figure out how to get right SwipeItem height.
I am getting this:
Here is peace of my xaml:
<Frame BorderColor="Black" Padding="10,10,10,10"> <RefreshView IsRefreshing="{Binding IsBusy, Mode=TwoWay}" Command="{Binding LoadItemsCommand}"> <CollectionView ItemsSource="{Binding OperationItems}" x:Name="ItemsCollectionView" > <d:CollectionView.ItemsSource> <x:Array Type="{x:Type x:String}"> <x:String>Barcode</x:String> <x:String>Barcode</x:String> <x:String>Barcode</x:String> <x:String>Barcode</x:String> <x:String>Barcode</x:String> <x:String>Barcode</x:String> </x:Array> </d:CollectionView.ItemsSource> <CollectionView.ItemTemplate> <DataTemplate> <SwipeView Grid.Row="0"> <SwipeView.RightItems> <SwipeItems Mode="Reveal" SwipeBehaviorOnInvoked="Close"> <SwipeItem Text="{x:Static resources:AppResources.menu_delete}" BackgroundColor="#AD1457" Command="{Binding Source={x:Reference ItemsCollectionView}, Path=BindingContext.DeleteItemCommand}" CommandParameter="{Binding row}"/> </SwipeItems> </SwipeView.RightItems> <Grid Padding="0,0,0,10"> <Grid.ColumnDefinitions> <ColumnDefinition Width="2*" /> <ColumnDefinition Width="3*" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="auto"/> <RowDefinition Height="auto"/> </Grid.RowDefinitions> <Label Grid.Column="0" Grid.Row="0" Text="{Binding barcode}" d:Text="{Binding .}" LineBreakMode="NoWrap" Style="{DynamicResource ListItemTextStyle}" FontSize="12" HorizontalOptions="StartAndExpand" TextColor="Black"/> <Label x:Name="LabelHeight" Grid.Column="1" Grid.Row="0" Text="{Binding name}" d:Text="Name" LineBreakMode="NoWrap" Style="{DynamicResource ListItemDetailTextStyle}" FontSize="10" HorizontalOptions="StartAndExpand" TextColor="Black" MaxLines="2"/> <Label Grid.Column="2" Grid.Row="0" Text="{Binding quantity}" d:Text="Qty" LineBreakMode="NoWrap" Style="{DynamicResource ListItemDetailTextStyle}" FontSize="12" HorizontalOptions="End" TextColor="Black"/> <BoxView Grid.Row="1" BackgroundColor="Black" HeightRequest="1" Grid.ColumnSpan="3"/> </Grid> </SwipeView> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> </RefreshView> </Frame>