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

for (int i = 1; i <= 3; i++)
{
    Efl.Ui.Radio radio = new Efl.Ui.Radio(radioBox);
    radio.SetText("Choice no. " + i);
    radio.SetStateValue(i);
    radioBox.Pack(radio);
}

radioBox.ValueChangedEvent += (sender, args) =>
{
    System.Console.WriteLine("RadioBox value changed! Current choice value: " + args.arg);
};