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

how to off nestedscrolling in listview inside scrollview in xamarin forms

$
0
0



<ListView
x:Name="pasengerlist"
SelectionMode="None"
VerticalOptions="FillAndExpand"

                    BackgroundColor="White"
                    HasUnevenRows="true">
                    <ListView.ItemTemplate>
                        <DataTemplate>
                            <ViewCell
                                x:Name="            "
                                  >
                                <StackLayout
                                    Margin="5"
                                    Orientation="Vertical"
                                    VerticalOptions="FillAndExpand"
                                    HorizontalOptions="FillAndExpand">
                                    <Label
                                        Text="{Binding PaxNo}"
                                        TextColor="Red"
                                        FontSize="Micro" />
                                    <StackLayout
                                        Margin="10"
                                        Orientation="Horizontal"

                                        VerticalOptions="CenterAndExpand">
                                        <StackLayout
                                            Orientation="Vertical"
                                            HorizontalOptions="StartAndExpand">
                                            <Label
                                                Text="FIRST NAME"
                                                TextColor="Gray"
                                                FontSize="Micro" />
                                            <Frame
                                                BackgroundColor="White"
                                                BorderColor="Gray"
                                                CornerRadius="0"
                                                Padding="0"
                                                HasShadow="false">
                                                <Label
                                                    x:Name="fromname"
                                                    Text="{Binding FirstName}"
                                                    BackgroundColor="Transparent"
                                                    Margin="5"
                                                    FontSize="Micro"
                                                    TextColor="Black" />
                                            </Frame>
                                        </StackLayout>
                                        <StackLayout
                                            Orientation="Vertical"
                                            HorizontalOptions="CenterAndExpand">
                                            <Label
                                                Text="LAST NAME"
                                                TextColor="Gray"
                                                FontSize="Micro" />
                                            <Frame
                                                BackgroundColor="White"
                                                BorderColor="Gray"
                                                HasShadow="false"
                                                Padding="0"
                                                CornerRadius="0">
                                                <Label
                                                    x:Name="lastname"
                                                    Text="{Binding LastName}"
                                                    BackgroundColor="Transparent"
                                                    Margin="5"
                                                    FontSize="Micro"
                                                    TextColor="Black" />
                                            </Frame>
                                        </StackLayout>
                                        <StackLayout
                                            Orientation="Vertical"
                                            HorizontalOptions="EndAndExpand">
                                            <Label
                                                Text="GENDER"
                                                TextColor="Gray"
                                                FontSize="Micro" />
                                            <Frame
                                                BackgroundColor="White"
                                                HasShadow="false"
                                                BorderColor="Gray"
                                                Padding="0"
                                                CornerRadius="0">
                                                <Label
                                                    Text="{Binding Gender}"
                                                    Margin="5"
                                                    TextColor="Black"
                                                    FontSize="Micro" />
                                            </Frame>
                                        </StackLayout>
                                    </StackLayout>

                                    <BoxView
                                        Color="Silver"
                                        HeightRequest="1"
                                        HorizontalOptions="FillAndExpand" />
                                    <!--// end -->
                                    <StackLayout
                                        Margin="10"
                                        Orientation="Horizontal"
                                        VerticalOptions="Center">
                                        <StackLayout
                                            Orientation="Vertical"
                                            HorizontalOptions="StartAndExpand">
                                            <Label
                                                Text="MEAL AMOUNT : "
                                                TextColor="Gray"
                                                FontSize="Micro" />
                                            <Frame
                                                BackgroundColor="White"
                                                IsVisible="{Binding additonalservicevisibility1}"
                                                BorderColor="Gray"
                                                HasShadow="false"
                                                Padding="0"
                                                CornerRadius="0">
                                                <Picker
                                                    x:Name="meals"
                                                    BackgroundColor="Transparent"
                                                    Title="Select Here"
                                                    SelectedIndexChanged="Handle_PickerChanged"
                                                    ItemsSource="{Binding AdditionalServiceSelect.MealValueLst}"
                                                    ItemDisplayBinding="{Binding MealServiceName}"
                                                    FontSize="Micro"
                                                    TextColor="Black">
                                                </Picker>
                                            </Frame>
                                            <Label
                                                IsVisible="{Binding additonalservicevisibility2}"
                                                Text="Meals not Available!"
                                                FontSize="Micro"
                                                TextColor="Black" />
                                        </StackLayout>

                                    </StackLayout>
                                    <StackLayout
                                        IsVisible="false"
                                        Orientation="Horizontal"
                                        HorizontalOptions="StartAndExpand">
                                        <Label
                                            x:Name="totalamountMB"
                                            Text="TOTAL AMOUNT : "
                                            TextColor="Black"
                                            FontSize="Small"
                                            FontAttributes="Bold"
                                            Margin="10,0,0,0" />
                                        <Label
                                            Text="{Binding TotalAmount}"
                                            TextColor="Black"
                                            FontSize="Small"
                                            FontAttributes="Bold"
                                            Margin="10,0,0,0" />
                                    </StackLayout>
                                    <BoxView
                                        Color="Silver"
                                        HeightRequest="1"
                                        HorizontalOptions="FillAndExpand" />
                                    <StackLayout
                                        Margin="10"
                                        Orientation="Horizontal"
                                        VerticalOptions="Center">
                                        <StackLayout
                                            Orientation="Vertical"
                                            HorizontalOptions="StartAndExpand">
                                            <Label
                                                Text="AIRLINE NAME"
                                                TextColor="Gray"
                                                FontSize="Micro" />
                                            <Frame
                                                BackgroundColor="White"
                                                HasShadow="false"
                                                BorderColor="Gray"
                                                CornerRadius="0"
                                                Padding="0">
                                                <Label
                                                    Text="{Binding Airname}"
                                                    BackgroundColor="Transparent"
                                                    Margin="5"
                                                    FontSize="Micro"
                                                    TextColor="Black" />
                                            </Frame>
                                        </StackLayout>
                                         <StackLayout
                                            IsVisible="true"
                                            Orientation="Vertical"
                                            HorizontalOptions="EndAndExpand">
                                            <Label
                                                Text="FREQUENT FLYER NO."
                                                TextColor="Gray"
                                                FontSize="Micro" />
                                            <Frame
                                                BackgroundColor="White"
                                                BorderColor="Gray"
                                                HasShadow="false"
                                                Padding="0"
                                                CornerRadius="0">
                                                <Label
                                                    BackgroundColor="Transparent"
                                                    FontSize="Micro"
                                                    Margin="5"
                                                    TextColor="Black" />
                                            </Frame>
                                        </StackLayout>
                                        <StackLayout
                                             VerticalOptions="Center"
                                            HorizontalOptions="EndAndExpand">
                                            <Label
                                                Text="Get Employee"
                                                IsVisible="{Binding GetPasssengerVisibility}"
                                                VerticalOptions="Center"
                                                TextColor="Green"
                                                FontAttributes="Bold"
                                                FontSize="Small"
                                                HorizontalOptions="EndAndExpand" />
                                            <Label.GestureRecognizers>
                                                <TapGestureRecognizer
                                                    Tapped="Ondetaillabeltapped"
                                                    NumberOfTapsRequired="1" />
                                            </Label.GestureRecognizers>
                                        </StackLayout>

                                    </StackLayout>
                                </StackLayout>
                            </ViewCell>
                        </DataTemplate>
                    </ListView.ItemTemplate>
                </ListView>

                <Label
                    Margin="0,0,10,0"
                    x:Name="baggageAmount"
                    HorizontalOptions="EndAndExpand"
                    Text=" Baggage Amount : 0 "
                    TextColor="Black"
                    FontSize="Micro" />
                <Label
                    Margin="0,0,10,0"
                    x:Name="wholetotalamount"
                    HorizontalOptions="EndAndExpand"
                    Text="Total Amount : 0"
                    TextColor="Black"
                    FontSize="Micro" />
                </StackLayout>
        </ScrollView>

Viewing all articles
Browse latest Browse all 77050

Trending Articles