summaryrefslogtreecommitdiff
path: root/reference/csharp/snippets/Efl.Ui.SpinButton.cs
diff options
context:
space:
mode:
authorLukasz Oleksak <l.oleksak@samsung.com>2019-10-02 15:36:14 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-10-02 16:24:48 +0200
commit9f0eebb54f26c21a860863519deca83f1989b1c5 (patch)
tree245bb013274fde3ca341b63c3446dfaf1c7d6866 /reference/csharp/snippets/Efl.Ui.SpinButton.cs
parent670a6bc9022e6764c7c56b0f8eba3512aac84e89 (diff)
Example code for Efl.Ui.* widgets
Reviewers: segfaultxavi, woohyun Reviewed By: segfaultxavi Differential Revision: https://phab.enlightenment.org/D10269
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};