summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-10-02 16:27:28 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-10-02 16:27:28 +0200
commit6dfa4bac1dbebac00fc5fef44b3d82e33ad57ca7 (patch)
tree5f05dcab94c742becf684508b855bcf7ab83dbe4
parent9f0eebb54f26c21a860863519deca83f1989b1c5 (diff)
cs snippets: small updates to Slider and Box
-rw-r--r--reference/csharp/snippets/Efl.Ui.Box.cs3
-rw-r--r--reference/csharp/snippets/Efl.Ui.Slider.cs7
2 files changed, 9 insertions, 1 deletions
diff --git a/reference/csharp/snippets/Efl.Ui.Box.cs b/reference/csharp/snippets/Efl.Ui.Box.cs
index 48c1488..09ad6d8 100644
--- a/reference/csharp/snippets/Efl.Ui.Box.cs
+++ b/reference/csharp/snippets/Efl.Ui.Box.cs
@@ -1,6 +1,7 @@
1Efl.Ui.Box box = new Efl.Ui.Box(parent); 1Efl.Ui.Box box = new Efl.Ui.Box(parent);
2 2
3//Creating content which we will pack into the box - it can be any widgets, for example buttons. 3//Creating content which we will pack into the box
4//It can be any widget, for example, buttons
4Efl.Ui.Button button1 = new Efl.Ui.Button(box); 5Efl.Ui.Button button1 = new Efl.Ui.Button(box);
5Efl.Ui.Button button2 = new Efl.Ui.Button(box); 6Efl.Ui.Button button2 = new Efl.Ui.Button(box);
6 7
diff --git a/reference/csharp/snippets/Efl.Ui.Slider.cs b/reference/csharp/snippets/Efl.Ui.Slider.cs
index 5205a7d..def4439 100644
--- a/reference/csharp/snippets/Efl.Ui.Slider.cs
+++ b/reference/csharp/snippets/Efl.Ui.Slider.cs
@@ -3,7 +3,14 @@ Efl.Ui.Slider slider = new Efl.Ui.Slider(parent);
3slider.SetRangeLimits(0, 100); 3slider.SetRangeLimits(0, 100);
4slider.SetRangeValue(50); 4slider.SetRangeValue(50);
5 5
6// You get this event every time the slider moves
6slider.ChangedEvent += (sender, args) => 7slider.ChangedEvent += (sender, args) =>
7{ 8{
8 Console.WriteLine("Current slider value is: " + slider.GetRangeValue()); 9 Console.WriteLine("Current slider value is: " + slider.GetRangeValue());
9}; 10};
11
12// You only get this event once the slider is stable
13slider.SteadyEvent += (sender, args) =>
14{
15 Console.WriteLine("STEADY slider value is: " + slider.GetRangeValue());
16};