cs snippets: small updates to Slider and Box
This commit is contained in:
parent
9f0eebb54f
commit
6dfa4bac1d
|
@ -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);
|
||||
|
||||
|
|
|
@ -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());
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue