diff options
author | Xavi Artigas <xavierartigas@yahoo.es> | 2019-10-02 16:27:28 +0200 |
---|---|---|
committer | Xavi Artigas <xavierartigas@yahoo.es> | 2019-10-02 16:27:28 +0200 |
commit | 6dfa4bac1dbebac00fc5fef44b3d82e33ad57ca7 (patch) | |
tree | 5f05dcab94c742becf684508b855bcf7ab83dbe4 | |
parent | 9f0eebb54f26c21a860863519deca83f1989b1c5 (diff) |
cs snippets: small updates to Slider and Box
-rw-r--r-- | reference/csharp/snippets/Efl.Ui.Box.cs | 3 | ||||
-rw-r--r-- | reference/csharp/snippets/Efl.Ui.Slider.cs | 7 |
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 48c1488c..09ad6d87 100644 --- a/reference/csharp/snippets/Efl.Ui.Box.cs +++ b/reference/csharp/snippets/Efl.Ui.Box.cs | |||
@@ -1,6 +1,7 @@ | |||
1 | Efl.Ui.Box box = new Efl.Ui.Box(parent); | 1 | Efl.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 | ||
4 | Efl.Ui.Button button1 = new Efl.Ui.Button(box); | 5 | Efl.Ui.Button button1 = new Efl.Ui.Button(box); |
5 | Efl.Ui.Button button2 = new Efl.Ui.Button(box); | 6 | Efl.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 5205a7d2..def44397 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); | |||
3 | slider.SetRangeLimits(0, 100); | 3 | slider.SetRangeLimits(0, 100); |
4 | slider.SetRangeValue(50); | 4 | slider.SetRangeValue(50); |
5 | 5 | ||
6 | // You get this event every time the slider moves | ||
6 | slider.ChangedEvent += (sender, args) => | 7 | slider.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 | ||
13 | slider.SteadyEvent += (sender, args) => | ||
14 | { | ||
15 | Console.WriteLine("STEADY slider value is: " + slider.GetRangeValue()); | ||
16 | }; | ||