Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to get child element access of collection view without using mvvm in xamarin forms?

$
0
0

this is my code:

<StackLayout HeightRequest="40" VerticalOptions="FillAndExpand" WidthRequest="40"> <Label FontSize="16" HorizontalOptions="Center" Text="+" TextColor="Black" VerticalOptions="CenterAndExpand" VerticalTextAlignment="Center"> <Label.FontFamily> <OnPlatform x:TypeArguments="x:String"> <On Platform="Android" Value="SFPro.ttf#Bold" /> </OnPlatform> </Label.FontFamily> </Label> <StackLayout.GestureRecognizers> <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped" /> </StackLayout.GestureRecognizers></StackLayout>

 <StackLayout HeightRequest="40" VerticalOptions="FillAndExpand" WidthRequest="40"> <Label FontSize="16" HorizontalOptions="Center" Text="{Binding prod_qty}" x:Name="lblqty" TextColor="#00C569" VerticalOptions="CenterAndExpand" VerticalTextAlignment="Center"> <Label.FontFamily> <OnPlatform x:TypeArguments="x:String"> <On Platform="Android" Value="SFPro.ttf#Bold" /> </OnPlatform> </Label.FontFamily> </Label> </StackLayout>

This code is in collection view i am generating a source in .cs file and have set the source to its collection view. i want to access and modify lbl_qty value by clicking TapGestureRecognizer_Tapped but i don't know mvvm right now. please help.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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