/// <summary> /// set the button style when the user taps the confirm button /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Confirm_Clicked(object sender, EventArgs e) { if (IsValid) { Confirm.Text = ConfirmText; Confirm.HeightRequest = this.Frame.Height; Task.WhenAll( Confirm.LayoutTo(new Rectangle(this.Frame.X - 1, this.Frame.Y, this.Frame.Width + 1, this.Frame.Height), 700, Easing.SinOut), Confirm.ColorTo(Color.FromRgba(Confirm.TextColor.R, Confirm.TextColor.G, Confirm.TextColor.B, 0), Confirm.TextColor, (c) => Confirm.TextColor = c, 700, Easing.Linear)); Confirm.WidthRequest = Frame.Width + 1; } }