Forum Xamarin Xamarin.Forms

Remove white space from label

Is there a way to remove white space from the highlighted label ?

Here is the code :

<CollectionView ItemsSource="{Binding DLHY_}"
                                SelectionMode="Multiple"
                                SelectionChanged="CollectionView_SelectionChanged">
                    <CollectionView.ItemTemplate>
                        <DataTemplate>
                            <Grid RowSpacing="0" ColumnSpacing="0">
                            <Grid.RowDefinitions>
                                    <RowDefinition Height="*"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Label Grid.Row="1" Grid.Column="0" Text="KTO" FontAttributes="Bold" BackgroundColor="Aquamarine" />
                                <Label Grid.Row="1" Grid.Column="1" Text="KOMU" FontAttributes="Bold"/>
                                <Label Grid.Row="1" Grid.Column="2" Text="KOĽKO" FontAttributes="Bold"/>
                                <Label Grid.Row="1" Grid.Column="3" Text="KEDY" FontAttributes="Bold"/>
                                <Label Grid.Row="1" Grid.Column="4" Text="POPIS" FontAttributes="Bold"/>
                                <Label Grid.Row="2" Grid.Column="0" Text="{Binding KTO}" Margin="0"/>
                                <Label Grid.Row="2" Grid.Column="1" Text="{Binding KOMU}" Margin="0"/>
                                <Label Grid.Row="2" Grid.Column="2" Text="{Binding KOĽKO,StringFormat='{0:N}€'}" Margin="0"/>
                                <Label Grid.Row="2" Grid.Column="3" Text="{Binding KEDY}" Margin="0"/>
                                <Label Grid.Row="2" Grid.Column="4" Text="{Binding Popis}" Margin="0"/>
                            </Grid>
                        </DataTemplate>
                    </CollectionView.ItemTemplate>
                </CollectionView>

Best Answer

Answers

Sign In or Register to comment.