diff --git a/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml b/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml
index 70d4eb5..33bb55d 100644
--- a/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml
+++ b/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml
@@ -7,16 +7,18 @@
-
+
-
-
+
+
+
+
\ 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 a21d74f..650473f 100644
--- a/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml.cs
+++ b/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage1.xaml.cs
@@ -25,5 +25,10 @@ namespace XamarinStudy.Views
else
BackgroundColor = Color.White;
}
+
+ private void stepper1_ValueChanged(object sender, ValueChangedEventArgs e)
+ {
+ lbl1.Text = e.NewValue.ToString("N2");
+ }
}
}
\ No newline at end of file
diff --git a/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage2.cs b/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage2.cs
index 08d7ab1..f2222c4 100644
--- a/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage2.cs
+++ b/XamarinStudy/XamarinStudy/XamarinStudy/Views/SampleElementPage2.cs
@@ -17,6 +17,7 @@ namespace XamarinStudy.Views
changeBackgroundColorButton.Clicked += ChangeBackgroundColorButton_Clicked;
Label label1 = new Label() { Text = "CS Label", TextColor = Color.Red, BackgroundColor = Color.DeepSkyBlue, FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)) };
Label label2 = new Label() { Text = "CS 20 Label", TextColor = Color.Red, BackgroundColor = Color.DeepSkyBlue, FontSize = 30 };
+
Editor editor = new Editor()
{
Placeholder = "Multi-line input",
@@ -33,6 +34,16 @@ namespace XamarinStudy.Views
editor.TextColor = Color.White;
}
+ Slider slider = new Slider()
+ {
+ Maximum = 30,
+ Minimum = 5,
+ Value = 10,
+ MinimumTrackColor = Color.Pink,
+ MaximumTrackColor = Color.Red,
+ };
+ slider.ValueChanged += (s, e) => editor.Text = e.NewValue.ToString("N2");
+
Content = new StackLayout
{
Children =
@@ -40,7 +51,8 @@ namespace XamarinStudy.Views
changeBackgroundColorButton,
label1,
label2,
- editor
+ editor,
+ slider
}
};
}