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

Scrollview is not working in xamarin forms?

$
0
0

I am working on xamarin forms. Where I have one content page with a few fields which I have added using Entry tag. Fields are more so I have added a scroll view to the entire content page. In one of the field, I am having ListView there so many list items which are binding dynamically, Now scroll for list items is not working because I am using scrollview for the entire page. If I remove scrollview for the page scroll working for listItems but I have many fields
I need a scroll for the page also. My code for the entire page here scroll for listitems not working, If I remove scrvollview scroll will work for items but not for fields. How do I come out of this?

`

<StackLayout>
    <StackLayout Margin="5,5,5,5">

        <Frame  BorderColor="#2c3e50"  HeightRequest="20" HasShadow="true" CornerRadius="30" >
            <Frame.GestureRecognizers>
                <TapGestureRecognizer  NumberOfTapsRequired="1"  Tapped="fn_ProviderUser_ExpandSkills" />
            </Frame.GestureRecognizers>
            <StackLayout Orientation="Horizontal">
                <Label x:Name="lbl_ProviderInformation_Skills" HorizontalOptions="Center" Text="Assign single / multiple skills"/>
                <Image x:Name="Img_ProviderInformation_RolesArrow" Source="downarrow.png"  HeightRequest="20" WidthRequest="30" HorizontalOptions="EndAndExpand"/>
            </StackLayout>
        </Frame>
        <StackLayout x:Name="stk_ProviderUserInformation_Skills"  Padding="15,0,0,0" HeightRequest="0">
            <SearchBar Placeholder="Type to Search"  />
            <ListView HasUnevenRows="true" x:Name="lst_ProviderUserInformation_Skills" ItemsSource="{Binding G_liMySkills}" CachingStrategy="RecycleElement" >
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>
                            <ViewCell.View>
                                <StackLayout>
                                    <input:CheckBox Type="Check" x:Name="{Binding SkillID}" ClassId="{Binding SkillID}"  Text="{Binding SkillName}" CommandParameter="{Binding SkillID}"  />
                                </StackLayout>
                            </ViewCell.View>
                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
        </StackLayout>
    </StackLayout>
</StackLayout>
</ScrollView>`

Viewing all articles
Browse latest Browse all 89864

Trending Articles



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