summaryrefslogtreecommitdiff
path: root/reference/csharp/snippets/Efl.Ui.RadioBox.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/snippets/Efl.Ui.RadioBox.cs')
-rw-r--r--reference/csharp/snippets/Efl.Ui.RadioBox.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/reference/csharp/snippets/Efl.Ui.RadioBox.cs b/reference/csharp/snippets/Efl.Ui.RadioBox.cs
new file mode 100644
index 0000000..e54a5bf
--- /dev/null
+++ b/reference/csharp/snippets/Efl.Ui.RadioBox.cs
@@ -0,0 +1,14 @@
1Efl.Ui.RadioBox radioBox = new Efl.Ui.RadioBox(parent);
2
3for (int i = 1; i <= 3; i++)
4{
5 Efl.Ui.Radio radio = new Efl.Ui.Radio(radioBox);
6 radio.SetText("Choice no. " + i);
7 radio.SetStateValue(i);
8 radioBox.Pack(radio);
9}
10
11radioBox.ValueChangedEvent += (sender, args) =>
12{
13 System.Console.WriteLine("RadioBox value changed! Current choice value: " + args.arg);
14};