private async Task AnimateItem(View uiElement, uint duration ){ while (_animate) { await uiElement.ScaleTo(1.05, duration, Easing.SinInOut); await Task.WhenAll ( uiElement.FadeTo(1, duration, Easing.SinInOut), uiElement.LayoutTo (new Rectangle( new Point(0,0), new Size( uiElement.Width, uiElement.Height))), uiElement.FadeTo(.9, duration, Easing.SinInOut), uiElement.ScaleTo(1.15, duration, Easing.SinInOut) ); } }
public async void Animateview(View view, uint rate) { await view.ScaleTo(0, rate, Easing.CubicIn); await view.ScaleTo(1, rate, Easing.CubicInOut); }
private async Task AnimateItem( View uiElement, uint duration ){ if (uiElement == null) { return; } await Task.WhenAll (new Task[] { uiElement.ScaleTo(1.5, duration, Easing.CubicIn), uiElement.FadeTo(1, duration/2, Easing.CubicInOut).ContinueWith( _ => uiElement.ScaleTo(1, duration, Easing.CubicOut)) }); }