예제 #1
0
        private async void PasswordEntry_Unfocused(object sender, FocusEventArgs e)
        {
            if (PasswordEntry.Text == null)
            {
                await PasswordLabel.TranslateTo(5, 25, 100, Easing.Linear);

                PasswordLabel.TextColor   = Color.Transparent;
                PasswordEntry.Placeholder = "Password";
            }
            else if (PasswordEntry.Text == "")
            {
                await PasswordLabel.TranslateTo(5, 25, 100, Easing.Linear);

                PasswordLabel.TextColor   = Color.Transparent;
                PasswordEntry.Placeholder = "Password";
            }
        }
예제 #2
0
        private async void PasswordEntry_Focused(object sender, FocusEventArgs e)
        {
            if (PasswordEntry.Text == null)
            {
                PasswordEntry.Placeholder = "";
                await PasswordLabel.TranslateTo(5, 25, 0, null);

                PasswordLabel.TextColor = Color.FromHex("#1C405B");
                await PasswordLabel.TranslateTo(5, 0, 100, Easing.Linear);
            }
            else if (PasswordEntry.Text == "")
            {
                PasswordEntry.Placeholder = "";
                await PasswordLabel.TranslateTo(5, 25, 0, null);

                PasswordLabel.TextColor = Color.FromHex("#1C405B");
                await PasswordLabel.TranslateTo(5, 0, 100, Easing.Linear);
            }
        }