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.