summaryrefslogtreecommitdiff
path: root/reference/csharp/snippets/Efl.Ui.Slider.cs
blob: def443970a6bdb51a1bd432c2f4aebc727612323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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());
};