I have two entries, one for username and the other for password.
<customEntry:EmailEntry Placeholder="Your email address" x:Name="Email" Keyboard="Email" WidthRequest="50" Text="{Binding UserName}"/>
<customEntry:PwdEntry Placeholder="Your password" x:Name="Password" IsPassword="true" Text="{Binding Password}"/>
The two entries (EmailEntry and PwdEntry) are of type ContentView not ContentPage. I am trying to get the Completed event on the EmailEntry but couldn't. Once the user hits the "Next" button on the keyboard, the focus should shift to PwdEntry.
If these were normal entries, I know that I can use,
Email.Completed += (object sender, EventArgs e) => Password.Focus();
As the two entries are ContentViews, I cannot change the focus to next entry as soon as the user hits "Next".
This is my CustomEntry...
<?xml version="1.0" encoding="UTF-8"?><ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Ecommerce.Mobile.Core.EmailEntry"
xmlns:local="clr-namespace:Ecommerce.Mobile.Core.CustomViews"
xmlns:fr="clr-namespace:Ecommerce.Mobile.Core.Controls">
<ContentView.Content>
<fr:MyFrame CornerRadius="5"
OutlineColor="{StaticResource MocoWhite}"
BackgroundColor="Blue"
HasShadow="false" Padding="15,0">
<Grid ColumnSpacing="16">
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="1"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0" Padding="0,10,0,0" HeightRequest="30" WidthRequest="20">
<Image Source="icons_envelope_white1x.png" HorizontalOptions="Start" />
</Grid>
<Grid Grid.Column="1" HeightRequest="65" WidthRequest="20">
<Label x:Name="HiddenLabel" Font="ProximaNovaRegular" FontSize="12" IsVisible="False" Margin="0" FontAttributes="Bold"/>
<fr:MyKeyboardEntry x:Name="EntryField" FontSize="15" TextColor="White" Keyboard="Email" ReturnType="Next" Text="{Binding Text, Mode=TwoWay}" PlaceholderColor="White" Margin="0,12,0,0"/>
</Grid>
</Grid>
</fr:MyFrame>
</ContentView.Content>
How can I achieve this?