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

ListView cutting off Entry top when combined with Label

$
0
0

Hi,

I have a Label and a ListView in a vertically oriented StackLayout.

When the Label is there, all the items Entry fields are clipped in the top, but the RowSeparator is visible (default).

If I remove the Label, the Entry looks as expected but the RowSeparator is not visible.

Can someone please tell me what's going on here?

Xamarin Forms 2.3.4.270 on iPhoneSimulator (6s iOS 9.3).

    <?xml version="1.0" encoding="utf-8" ?>
    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
                 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                 xmlns:sys="clr-namespace:System;assembly=mscorlib"
                 x:Class="MyApp.Pages.TestPage"
                 Title="{Binding Title}">

        <ContentPage.Content>
            <StackLayout>
                <!-- Remove this label and the ListView looks good -->
                <Label Text="Test Label"/>
                <ListView ItemsSource="{Binding Items}">
                    <ListView.ItemTemplate>
                        <DataTemplate>
                            <ViewCell>
                                <Entry VerticalOptions="Center" Text="{Binding Title}"/>
                            </ViewCell>
                        </DataTemplate>
                    </ListView.ItemTemplate>
                </ListView>
            </StackLayout>
        </ContentPage.Content>
    </ContentPage>

Regards,

/Jan


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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