async void FlipBtn_Clicked(System.Object sender, System.EventArgs e) { FlipBtn.IsEnabled = false; DisplayLabel.TranslateTo(100, 0, 400); await DisplayLabel.RotateYTo(-90, 200); DisplayLabel.RotationY = -270; if (headSide) { DisplayLabel.Text = Data.list[currentIndex].Year; headSide = false; } else { DisplayLabel.Text = Data.list[currentIndex].Name; headSide = true; } DisplayLabel.RotateYTo(-360, 200); await DisplayLabel.TranslateTo(0, 0, 220); DisplayLabel.RotationY = 0; FlipBtn.IsEnabled = true; }
private void Handle_ValueChanged(object sender, ValueChangedEventArgs e) { var newStep = Math.Round(e.NewValue / 10000); Slider.Value = newStep * 10000; DisplayLabel.Text = Slider.Value.ToString(); DisplayLabel.TranslateTo(Slider.Value * ((Slider.Width - 300) / Slider.Maximum), 0, 10); //setChart(Convert.ToDecimal(Slider.Value)); setmicroChart(Convert.ToSingle(Slider.Value)); }