Forum Xamarin.Forms

Scroll viewer is not scrolling in Windows Phone Emulator

Dinesh4693Dinesh4693 INMember ✭✭

I have used a Scroll viewer and added a grid inside it and added list of items in the grid with labels and entry. The height of the scroll viewer is 200 and content of the grid's height is more than 200. When i run it in Windows Phone Emulator 8.1, the scrolling is not working.
<ScrollView Orientation="Vertical" HeightRequest="200" WidthRequest="200"> <Grid > <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <Label Text="Register Form" FontSize="25" TextColor="Green" Grid.Row="0" Grid.ColumnSpan="2" FontAttributes="Bold" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" /> <Label Text="FirstName" Grid.Row="1" Grid.Column="0" Style="{StaticResource LabelStyle}"/> <Entry Grid.Row="1" Grid.Column="1" Style="{StaticResource EntryStyle}"/> <Label Text="LastName" Grid.Row="2" Grid.Column="0" Style="{StaticResource LabelStyle}"/> <Entry Grid.Row="2" Grid.Column="1" Style="{StaticResource EntryStyle}"/> <Label Text="DateOfBirth" Grid.Row="3" Grid.Column="0" Style="{StaticResource LabelStyle}"/> <DatePicker Grid.Row="3" Grid.Column="1" WidthRequest="100" Format="dd/mm/yyyy"/> <Label Text="Gender" Grid.Row="4" Grid.Column="0" Style="{StaticResource LabelStyle}"/> <Picker Grid.Row="4" Grid.Column="1" > <Picker.Items> <x:String>Male</x:String> <x:String>Female</x:String> </Picker.Items> </Picker> <Label Text="MobileNumber" Grid.Row="5" Grid.Column="0" Style="{StaticResource LabelStyle}"/> <Entry Grid.Row="5" Grid.Column="1" Style="{StaticResource EntryStyle}"/> <Label Text="Confirm MobileNumber" Grid.Row="6" Grid.Column="0" Style="{StaticResource LabelStyle}"/> <Entry Grid.Row="6" Grid.Column="1" Style="{StaticResource EntryStyle}"/> <Label Text="E-mail" Grid.Row="7" Grid.Column="0" Style="{StaticResource LabelStyle}"/> <Entry Grid.Row="7" Grid.Column="1" Style="{StaticResource EntryStyle}"/> <Label Text="Confirm E-mail" Grid.Row="8" Grid.Column="0" Style="{StaticResource LabelStyle}"/> <Entry Grid.Row="8" Grid.Column="1" Style="{StaticResource EntryStyle}"/> <Label Text="Password" Grid.Row="9" Grid.Column="0" Style="{StaticResource LabelStyle}"/> <Entry Grid.Row="9" Grid.Column="1" IsPassword="True" Style="{StaticResource EntryStyle}"/> <Label Text="Confirm Password" Grid.Row="10" Grid.Column="0" Style="{StaticResource LabelStyle}"/> <Entry Grid.Row="10" Grid.Column="1" IsPassword="True" Style="{StaticResource EntryStyle}"/> <Button Text="Register" Grid.Row="11" Grid.ColumnSpan="2" Style="{StaticResource ButtonStyle}"/> </Grid> </ScrollView>

May i know is there any specific reason behind it. Please let me if it is. I am new to Xamarin Forms.

Thanks in Advance,
Dinesh B

Answers

Sign In or Register to comment.