summaryrefslogtreecommitdiff
path: root/reference/csharp/snippets/Efl.Ui.Slider.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/snippets/Efl.Ui.Slider.cs')
-rw-r--r--reference/csharp/snippets/Efl.Ui.Slider.cs7
1 files changed, 7 insertions, 0 deletions
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};