private async void WalletsScrolled(object sender, Xamarin.Forms.ScrolledEventArgs e) { var xOffset = e.ScrollX; var max = TopScrollView.ContentSize.Width; var w = BULFrameView.WidthRequest; if (w <= 0) { w = 290; } if (xOffset > ((max - w) / 2)) { Unfocus(); Gradient.Steps = null; Gradient.AddStep(Color.FromHex("#39C8C8"), 0); Gradient.AddStep(Color.FromHex("#53E1E1"), 1); await TransactionsBULScrollView.FadeTo(0); await TransactionsBULScrollView.ScaleTo(0.8f); TransactionsXLMScrollView.IsVisible = true; TransactionsBULScrollView.IsVisible = false; await TransactionsXLMScrollView.FadeTo(1); await TransactionsXLMScrollView.ScaleTo(1); } else { Unfocus(); Gradient.Steps = null; Gradient.AddStep(Color.FromHex("#4D64E8"), 0); Gradient.AddStep(Color.FromHex("#6786EF"), 1); await TransactionsBULScrollView.FadeTo(1); await TransactionsBULScrollView.ScaleTo(1); TransactionsXLMScrollView.IsVisible = false; TransactionsBULScrollView.IsVisible = true; await TransactionsXLMScrollView.FadeTo(0); await TransactionsXLMScrollView.ScaleTo(0.8f); } }