Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

FlowListView Columm Spacing

$
0
0

I using Flowlistview to show 5 images in Horizontal position, but the default spacing between columms is too big, how can i reduce the spacing and increase the pictures sizes? Below is what i have done :

<controls:FlowListView   HeightRequest="70"  HorizontalOptions="Center" VerticalOptions="Start" Margin="0,5,0,0" FlowColumnMinWidth="70" SeparatorVisibility="None" HasUnevenRows="True" FlowItemsSource="{Binding Feedbackitems}"  FlowLastTappedItem="{Binding SelectedItem}" >
            <controls:FlowListView.FlowColumnTemplate>
                <DataTemplate>
                    <controls:FlowStackCell Padding="0">
                    <StackLayout >
                            <forms:CachedImage HeightRequest="66"  WidthRequest="66"  DownsampleUseDipUnits="false"  Source="{Binding ImgEmojiSelected}" IsVisible="False" IsEnabled="false">
                                <forms:CachedImage.Triggers>
                                    <DataTrigger TargetType="forms:CachedImage" Binding="{Binding Selected, Converter={StaticResource cnvInvert}}" Value="ImgEmojiSelected">
                                        <Setter Property="IsVisible" Value="True" />
                                        <Setter Property="IsEnabled" Value="True" />
                                    </DataTrigger>
                                </forms:CachedImage.Triggers>
                            </forms:CachedImage>
                            <forms:CachedImage  HeightRequest="66" WidthRequest="66"  DownsampleUseDipUnits="false"  Source="{Binding ImgEmojiUnSelected}" IsVisible="False" IsEnabled="false">
                            <forms:CachedImage.Triggers>
                                <DataTrigger TargetType="forms:CachedImage" Binding="{Binding Selected, Converter={StaticResource cnvInvert}}" Value="ImgEmojiUnSelected">
                                    <Setter Property="IsVisible" Value="True" />
                                    <Setter Property="IsEnabled" Value="True" />
                                </DataTrigger>
                            </forms:CachedImage.Triggers>
                        </forms:CachedImage>
                    </StackLayout>
                    </controls:FlowStackCell>
                </DataTemplate>
            </controls:FlowListView.FlowColumnTemplate>
        </controls:FlowListView>

Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>