async Task SlideInLeft(View view) { view.FadeTo(0); view.IsVisible = true; var animate = new Animation(); var registerin = new Animation(callback: ax => view.TranslationX = ax, start: Width, end: 0, easing: Easing.SpringOut); animate.Add(0, 1, registerin); animate.Commit(view, "RegisterIn", length: 1000); view.FadeTo(1); }
protected void AddTouchHandler(View view, Action action) { view.GestureRecognizers.Add(new TapGestureRecognizer { Command = new Command(() => { view.Opacity = 0.6; view.FadeTo(1); action(); }) }); }