コード例 #1
0
ファイル: Both.xaml.cs プロジェクト: classyk12/PeppyApp
        public Both()
        {
            InitializeComponent();
            On <Xamarin.Forms.PlatformConfiguration.Android>().SetToolbarPlacement(ToolbarPlacement.Bottom);
            On <Xamarin.Forms.PlatformConfiguration.Android>().SetBarSelectedItemColor(Color.SteelBlue);
            On <Xamarin.Forms.PlatformConfiguration.Android>().SetBarItemColor(Color.Black);

            emailEntry.Completed       += (s, e) => usernameEntry.Focus();
            usernameEntry.Completed    += (s, e) => passwordEntry.Focus();
            passwordEntry.Completed    += (s, e) => passwordEntry2.Focus();
            passwordEntry2.Completed   += (s, e) => phonenumberEntry.Focus();
            phonenumberEntry.Completed += (s, e) => SignUpClickEvent(s, e);

            UsernameLoginEntry.Completed += (s, e) => PasswordLoginEntry.Focus();
            PasswordLoginEntry.Completed += (s, e) => LoginClickEvent(s, e);
        }
コード例 #2
0
ファイル: Both.xaml.cs プロジェクト: classyk12/PeppyApp
        public async void PasswordLoginShake()
        {
            uint timeout = 50;
            await PasswordLoginEntry.TranslateTo(-15, 0, timeout);

            await PasswordLoginEntry.TranslateTo(15, 0, timeout);

            await PasswordLoginEntry.TranslateTo(-10, 0, timeout);

            await PasswordLoginEntry.TranslateTo(10, 0, timeout);

            await PasswordLoginEntry.TranslateTo(-5, 0, timeout);

            await PasswordLoginEntry.TranslateTo(5, 0, timeout);

            PasswordLoginEntry.TranslationX = 0;
        }