summaryrefslogtreecommitdiff
path: root/reference/csharp/snippets/Efl.Ui.SpinButton.cs
blob: d253adfba773f45db28b2266fdc1727baa982627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Efl.Ui.SpinButton spinButton = new Efl.Ui.SpinButton(parent);

spinButton.SetOrientation(Efl.Ui.LayoutOrientation.Vertical);

spinButton.SetRangeLimits(0, 100);
spinButton.SetRangeStep(2);
spinButton.SetRangeValue(50);

spinButton.ChangedEvent += (sender, args) =>
{
    Efl.Ui.SpinButton spnBtn = (Efl.Ui.SpinButton)sender;
    Console.WriteLine("Range value changed to: " + spnBtn.RangeValue);
};