diff --git a/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml b/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml index 2b7cee7..835e2e9 100644 --- a/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml +++ b/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml @@ -15,10 +15,13 @@ - + - + + + + \ No newline at end of file diff --git a/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml.cs b/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml.cs index 650473f..58e75db 100644 --- a/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml.cs +++ b/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml.cs @@ -29,6 +29,9 @@ namespace XamarinStudy.Views private void stepper1_ValueChanged(object sender, ValueChangedEventArgs e) { lbl1.Text = e.NewValue.ToString("N2"); + pb1.ProgressTo(e.NewValue/100, 1000, Easing.SpringIn); + pb2.ProgressTo(e.NewValue/100, 1000, Easing.SpringOut); + pb3.ProgressTo(e.NewValue/100, 1500, Easing.BounceOut); } } } \ No newline at end of file diff --git a/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage2.cs b/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage2.cs index f2222c4..f28ccdc 100644 --- a/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage2.cs +++ b/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage2.cs @@ -21,7 +21,7 @@ namespace XamarinStudy.Views Editor editor = new Editor() { Placeholder = "Multi-line input", - HeightRequest = 300 + HeightRequest = 100 }; if (Device.RuntimePlatform == Device.UWP) { @@ -44,6 +44,17 @@ namespace XamarinStudy.Views }; slider.ValueChanged += (s, e) => editor.Text = e.NewValue.ToString("N2"); + ProgressBar progressBar = new ProgressBar() { ProgressColor = Color.Coral }; + Stepper stepper = new Stepper() + { + Maximum = 10, + Minimum = 0, + }; + stepper.ValueChanged += (s, e) => + { + progressBar.ProgressTo(e.NewValue / 10, 1500, Easing.BounceOut); + }; + Content = new StackLayout { Children = @@ -52,7 +63,9 @@ namespace XamarinStudy.Views label1, label2, editor, - slider + slider, + stepper, + progressBar } }; }