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

How to trigger every change in the Entry field?

$
0
0

This the Entry Field which the user will input the data.

    <StackLayout Grid.Row="0" Grid.Column="0" Padding="16,13,16,9">
                    <StackLayout Orientation="Horizontal" Padding="10,0">
                      <StackLayout.GestureRecognizers>
                        <TapGestureRecognizer Tapped="OnTapVINRecognizer"/>
                      </StackLayout.GestureRecognizers>
                      <local:CustomLabel x:Name="VINLabel" Text="VIN" TextColor="#3680a4" Style="{StaticResource AccordTitleStyle}"/>
                      <Image x:Name="VINImage" Source="arrow_down.png"/>
                    </StackLayout>
                    <StackLayout x:Name="VINAccordion" IsVisible="True" Padding="0,5,0,16" Spacing="10">
                      <StackLayout Spacing="0" Orientation="Horizontal">
                        <local:CustomEntry x:Name="VINText" Placeholder="17 CHARACTERS" HorizontalOptions="FillAndExpand"/>
                      </StackLayout>
                      <local:CustomLabel Style="{StaticResource AccordLabelStyle}">
                        <local:CustomLabel.Text>
                          If the motor has a VIN, enter the VIN. A VIN is the 17 character identifier recorded on most vehicles built after 1998
                        </local:CustomLabel.Text>
                      </local:CustomLabel>
                      <local:CustomButton Clicked="OnClickSearchBtn" ClassId="vin"/>
                    </StackLayout>
                  </StackLayout>

I would like to capture every time the text changes cuz I will query the local db to check if there's a data matches from what the user inputted and then display the result below the field. How am I gonna do it in xaml?

Thanks for the suggestions and help.


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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