summaryrefslogtreecommitdiff
path: root/reference/csharp/snippets/Efl.Ui.SpinButton.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/snippets/Efl.Ui.SpinButton.cs')
-rw-r--r--reference/csharp/snippets/Efl.Ui.SpinButton.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/reference/csharp/snippets/Efl.Ui.SpinButton.cs b/reference/csharp/snippets/Efl.Ui.SpinButton.cs
new file mode 100644
index 0000000..d253adf
--- /dev/null
+++ b/reference/csharp/snippets/Efl.Ui.SpinButton.cs
@@ -0,0 +1,13 @@
1Efl.Ui.SpinButton spinButton = new Efl.Ui.SpinButton(parent);
2
3spinButton.SetOrientation(Efl.Ui.LayoutOrientation.Vertical);
4
5spinButton.SetRangeLimits(0, 100);
6spinButton.SetRangeStep(2);
7spinButton.SetRangeValue(50);
8
9spinButton.ChangedEvent += (sender, args) =>
10{
11 Efl.Ui.SpinButton spnBtn = (Efl.Ui.SpinButton)sender;
12 Console.WriteLine("Range value changed to: " + spnBtn.RangeValue);
13};