// Instance method that proceeds to begin a new walk trail
        public async void BeginTrailWalk_Clicked(object sender, EventArgs e)
        {
            if (App.SelectedItem == null)
            {
                return;
            }

            // Create and Apply an Easing Function to our Button
            await BeginTrailWalk.RotateTo(15, 1000, new Easing(t =>
                                                               Math.Sin(Math.PI *t) *
                                                               Math.Sin(Math.PI * 20 * t)));

            await _viewModel.Navigation.NavigateTo <WalkDistancePageViewModel>();
        }
Exemplo n.º 2
0
        private async void BeginTrailWalk_Clicked(object sender, EventArgs e)
        {
            if (App.SelectedItem == null)
            {
                return;
            }

            await BeginTrailWalk.RotateTo(360, 1000);

            BeginTrailWalk.Rotation = 0;

            await BeginTrailWalk.RotateTo(15, 10000, new Easing(t =>
                                                                Math.Sin(Math.PI *t) * Math.Sin(Math.PI * 20 * t)));

            await _viewModel.Navigation.NavigateTo <WalkDistancePageViewModel>();
        }