<?xml version="1.0" encoding="utf-8" ?>
<pages:BaseContentPage 
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    x:Class="Bit.App.Pages.HintPage"
    xmlns:pages="clr-namespace:Bit.App.Pages"
    xmlns:u="clr-namespace:Bit.App.Utilities"
    x:DataType="pages:HintPageViewModel"
    Title="{Binding PageTitle}">

    <ContentPage.BindingContext>
        <pages:HintPageViewModel />
    </ContentPage.BindingContext>

    <ContentPage.ToolbarItems>
        <ToolbarItem Text="{u:I18n Cancel}" Clicked="Close_Clicked" Order="Primary" Priority="-1" />
        <ToolbarItem Text="{u:I18n Submit}" Command="{Binding SubmitCommand}" />
    </ContentPage.ToolbarItems>

    <ScrollView>
        <StackLayout StyleClass="box">
            <StackLayout StyleClass="box-row">
                <Label
                    Text="{u:I18n EmailAddress}"
                    StyleClass="box-label" />
                <Entry
                    x:Name="_email"
                    Text="{Binding Email}"
                    Keyboard="Email"
                    StyleClass="box-value"
                    ReturnType="Go"
                    ReturnCommand="{Binding SubmitCommand}" />
            </StackLayout>
            <Label
                Text="{u:I18n EnterEmailForHint}"
                StyleClass="box-footer-label" />
        </StackLayout>
    </ScrollView>

</pages:BaseContentPage>
