xartigas pushed a commit to branch master.

http://git.enlightenment.org/tools/examples.git/commit/?id=6dfa4bac1dbebac00fc5fef44b3d82e33ad57ca7

commit 6dfa4bac1dbebac00fc5fef44b3d82e33ad57ca7
Author: Xavi Artigas <[email protected]>
Date:   Wed Oct 2 16:27:28 2019 +0200

    cs snippets: small updates to Slider and Box
---
 reference/csharp/snippets/Efl.Ui.Box.cs    | 3 ++-
 reference/csharp/snippets/Efl.Ui.Slider.cs | 7 +++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

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 @@
 Efl.Ui.Box box = new Efl.Ui.Box(parent);
 
-//Creating content which we will pack into the box - it can be any widgets, 
for example buttons.
+//Creating content which we will pack into the box
+//It can be any widget, for example, buttons
 Efl.Ui.Button button1 = new Efl.Ui.Button(box);
 Efl.Ui.Button button2 = new Efl.Ui.Button(box);
 
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);
 slider.SetRangeLimits(0, 100);
 slider.SetRangeValue(50);
 
+// You get this event every time the slider moves
 slider.ChangedEvent += (sender, args) =>
 {
     Console.WriteLine("Current slider value is: " + slider.GetRangeValue());
 };
+
+// You only get this event once the slider is stable
+slider.SteadyEvent += (sender, args) =>
+{
+    Console.WriteLine("STEADY slider value is: " + slider.GetRangeValue());
+};

-- 


Reply via email to