Reputation: 56
I have a following structure of code in Xamarin application.
<StackLayout>
<Entry Text="XYZ"/>
<ScrollView>
<StackLayout VerticalOptions="Start">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<BoxView HeightRequest="1" BackgroundColor="Black"/>
<Entry Grid.Row="1" Text="ABCD" VerticalOptions="Center"/>
<BoxView Grid.Row="2" HeightRequest="1" BackgroundColor="Aqua"/>
<BoxView Grid.Row="3" HeightRequest="1" BackgroundColor="Blue"/>
<Label Grid.Row="4" Text="12" TextColor="Red" VerticalOptions="Start"/>
</Grid>
</StackLayout>
</ScrollView>
</StackLayout>
Entry text "ABCD" does not shown in UWP but it's working fine in android.
Upvotes: 0
Views: 217
Reputation: 11
See: https://github.com/xamarin/Xamarin.Forms/issues/10137
Try removing the outer ScrollView.
Fixes it for me (but long forms are not possible without redesign UX).
Upvotes: 1