summaryrefslogtreecommitdiff
path: root/reference/csharp
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp')
-rw-r--r--reference/csharp/core/src/core_event.cs8
-rw-r--r--reference/csharp/eina/src/eina_array.cs4
-rw-r--r--reference/csharp/snippets/Efl.Ui.Bg.cs2
-rw-r--r--reference/csharp/snippets/Efl.Ui.Button.cs4
-rw-r--r--reference/csharp/snippets/Efl.Ui.Check.cs2
-rw-r--r--reference/csharp/snippets/Efl.Ui.Popup.cs2
-rw-r--r--reference/csharp/snippets/Efl.Ui.RadioBox.cs2
-rw-r--r--reference/csharp/snippets/Efl.Ui.Scroller.cs2
-rw-r--r--reference/csharp/snippets/Efl.Ui.SpinButton.cs2
-rw-r--r--reference/csharp/snippets/Efl.Ui.Win.cs4
-rw-r--r--reference/csharp/ui/src/focus_main.cs26
-rw-r--r--reference/csharp/ui/src/ui_container.cs36
-rw-r--r--reference/csharp/ui/src/ui_custom_widget.cs18
-rw-r--r--reference/csharp/ui/src/ui_sizing.cs16
14 files changed, 65 insertions, 63 deletions
diff --git a/reference/csharp/core/src/core_event.cs b/reference/csharp/core/src/core_event.cs
index cb500a4..d2a5e8d 100644
--- a/reference/csharp/core/src/core_event.cs
+++ b/reference/csharp/core/src/core_event.cs
@@ -12,21 +12,21 @@ public class Example : Efl.Csharp.Application
12 // Polling callback 12 // Polling callback
13 private static void PollCb(object sender, EventArgs e) 13 private static void PollCb(object sender, EventArgs e)
14 { 14 {
15 Console.WriteLine(" Poll from {0}", ((Efl.Object)sender).GetName()); 15 Console.WriteLine(" Poll from {0}", ((Efl.Object)sender).Name);
16 } 16 }
17 17
18 protected override void OnInitialize(string[] args) 18 protected override void OnInitialize(string[] args)
19 { 19 {
20 // Retrieve the application's main loop 20 // Retrieve the application's main loop
21 var mainloop = Efl.App.AppMain; 21 var mainloop = Efl.App.AppMain;
22 mainloop.SetName("Mainloop"); 22 mainloop.Name = "Mainloop";
23 23
24 // This event gets triggered continuously 24 // This event gets triggered continuously
25 mainloop.PollHighEvent += PollCb; 25 mainloop.PollHighEvent += PollCb;
26 26
27 // This timer will control events fired by the main loop 27 // This timer will control events fired by the main loop
28 var timer = new Efl.LoopTimer(mainloop, 0.1); 28 var timer = new Efl.LoopTimer(mainloop, 0.1);
29 timer.SetName("Timer"); 29 timer.Name = "Timer";
30 // To count number of timer triggers 30 // To count number of timer triggers
31 int tick_count = 0; 31 int tick_count = 0;
32 timer.TimerTickEvent += (object sender, EventArgs e) => { 32 timer.TimerTickEvent += (object sender, EventArgs e) => {
@@ -46,7 +46,7 @@ public class Example : Efl.Csharp.Application
46 mainloop.Quit(new Eina.Value(0)); 46 mainloop.Quit(new Eina.Value(0));
47 break; 47 break;
48 } 48 }
49 Console.WriteLine(message, tick_count, ((Efl.Object)sender).GetName()); 49 Console.WriteLine(message, tick_count, ((Efl.Object)sender).Name);
50 tick_count++; 50 tick_count++;
51 }; 51 };
52 52
diff --git a/reference/csharp/eina/src/eina_array.cs b/reference/csharp/eina/src/eina_array.cs
index 3864bde..c1089c5 100644
--- a/reference/csharp/eina/src/eina_array.cs
+++ b/reference/csharp/eina/src/eina_array.cs
@@ -43,7 +43,7 @@ public class Example : Efl.Csharp.Application
43 var array = CreateArray(); 43 var array = CreateArray();
44 44
45 // Show the contents of our array 45 // Show the contents of our array
46 Console.WriteLine("Array count: {0}", array.Count()); 46 Console.WriteLine("Array count: {0}", array.Count);
47 Console.WriteLine("Array contents:"); 47 Console.WriteLine("Array contents:");
48 foreach(string name in array) 48 foreach(string name in array)
49 { 49 {
@@ -60,7 +60,7 @@ public class Example : Efl.Csharp.Application
60 // array.RemoveAll(ItemRemoveCb); // TODO: FIXME 60 // array.RemoveAll(ItemRemoveCb); // TODO: FIXME
61 61
62 // Print the new contents of our array 62 // Print the new contents of our array
63 Console.WriteLine("New array count: {0}", array.Length); 63 Console.WriteLine("New array count: {0}", array.Count);
64 Console.WriteLine("New array contents:"); 64 Console.WriteLine("New array contents:");
65 foreach(string name in array) 65 foreach(string name in array)
66 Console.WriteLine(" {0}", name); 66 Console.WriteLine(" {0}", name);
diff --git a/reference/csharp/snippets/Efl.Ui.Bg.cs b/reference/csharp/snippets/Efl.Ui.Bg.cs
index 380a0a1..306286f 100644
--- a/reference/csharp/snippets/Efl.Ui.Bg.cs
+++ b/reference/csharp/snippets/Efl.Ui.Bg.cs
@@ -1,6 +1,6 @@
1Efl.Ui.Bg bg = new Efl.Ui.Bg(parent); 1Efl.Ui.Bg bg = new Efl.Ui.Bg(parent);
2 2
3bg.SetColor(66, 162, 206, 255); 3bg.Color = (66, 162, 206, 255);
4 4
5bg.SetFile(image_path + "background.png"); 5bg.SetFile(image_path + "background.png");
6bg.Load(); 6bg.Load();
diff --git a/reference/csharp/snippets/Efl.Ui.Button.cs b/reference/csharp/snippets/Efl.Ui.Button.cs
index cb7162e..e267766 100644
--- a/reference/csharp/snippets/Efl.Ui.Button.cs
+++ b/reference/csharp/snippets/Efl.Ui.Button.cs
@@ -1,9 +1,9 @@
1Efl.Ui.Button button = new Efl.Ui.Button(parent); 1Efl.Ui.Button button = new Efl.Ui.Button(parent);
2 2
3button.SetText("Test Button"); 3button.Text = "Test Button";
4 4
5button.ClickedEvent += (sender, args) => 5button.ClickedEvent += (sender, args) =>
6{ 6{
7 Efl.Ui.Button btn = (Efl.Ui.Button)sender; 7 Efl.Ui.Button btn = (Efl.Ui.Button)sender;
8 btn.SetText("Clicked"); 8 btn.Text = "Clicked";
9}; 9};
diff --git a/reference/csharp/snippets/Efl.Ui.Check.cs b/reference/csharp/snippets/Efl.Ui.Check.cs
index 8d3f47c..9cb20d3 100644
--- a/reference/csharp/snippets/Efl.Ui.Check.cs
+++ b/reference/csharp/snippets/Efl.Ui.Check.cs
@@ -1,6 +1,6 @@
1Efl.Ui.Check check = new Efl.Ui.Check(parent); 1Efl.Ui.Check check = new Efl.Ui.Check(parent);
2 2
3check.SetText("Test Check"); 3check.Text = "Test Check";
4check.SetSelected(true); 4check.SetSelected(true);
5 5
6check.SelectedChangedEvent += (sender, args) => 6check.SelectedChangedEvent += (sender, args) =>
diff --git a/reference/csharp/snippets/Efl.Ui.Popup.cs b/reference/csharp/snippets/Efl.Ui.Popup.cs
index ec75e00..eb9bf02 100644
--- a/reference/csharp/snippets/Efl.Ui.Popup.cs
+++ b/reference/csharp/snippets/Efl.Ui.Popup.cs
@@ -2,7 +2,7 @@ Efl.Ui.Popup popup = new Efl.Ui.Popup(parent);
2 2
3Efl.Ui.Button button = new Efl.Ui.Button(parent); 3Efl.Ui.Button button = new Efl.Ui.Button(parent);
4 4
5button.SetText("Click to hide the popup"); 5button.Text = "Click to hide the popup";
6 6
7button.ClickedEvent += (sender, args) => 7button.ClickedEvent += (sender, args) =>
8{ 8{
diff --git a/reference/csharp/snippets/Efl.Ui.RadioBox.cs b/reference/csharp/snippets/Efl.Ui.RadioBox.cs
index e54a5bf..79d3eee 100644
--- a/reference/csharp/snippets/Efl.Ui.RadioBox.cs
+++ b/reference/csharp/snippets/Efl.Ui.RadioBox.cs
@@ -3,7 +3,7 @@ Efl.Ui.RadioBox radioBox = new Efl.Ui.RadioBox(parent);
3for (int i = 1; i <= 3; i++) 3for (int i = 1; i <= 3; i++)
4{ 4{
5 Efl.Ui.Radio radio = new Efl.Ui.Radio(radioBox); 5 Efl.Ui.Radio radio = new Efl.Ui.Radio(radioBox);
6 radio.SetText("Choice no. " + i); 6 radio.Text = "Choice no. " + i;
7 radio.SetStateValue(i); 7 radio.SetStateValue(i);
8 radioBox.Pack(radio); 8 radioBox.Pack(radio);
9} 9}
diff --git a/reference/csharp/snippets/Efl.Ui.Scroller.cs b/reference/csharp/snippets/Efl.Ui.Scroller.cs
index 91f30d5..2b2f388 100644
--- a/reference/csharp/snippets/Efl.Ui.Scroller.cs
+++ b/reference/csharp/snippets/Efl.Ui.Scroller.cs
@@ -3,7 +3,7 @@ Efl.Ui.Scroller scroller = new Efl.Ui.Scroller(parent);
3// Create a large image to put it inside the scroller 3// Create a large image to put it inside the scroller
4Efl.Ui.Image image = new Efl.Ui.Image(scroller); 4Efl.Ui.Image image = new Efl.Ui.Image(scroller);
5 5
6image.SetHintSizeMin(new Eina.Size2D(1000, 1000)); 6image.HintSizeMin = new Eina.Size2D(1000, 1000);
7image.SetFile(image_path + "image.png"); 7image.SetFile(image_path + "image.png");
8image.Load(); 8image.Load();
9 9
diff --git a/reference/csharp/snippets/Efl.Ui.SpinButton.cs b/reference/csharp/snippets/Efl.Ui.SpinButton.cs
index d253adf..0f0ba0a 100644
--- a/reference/csharp/snippets/Efl.Ui.SpinButton.cs
+++ b/reference/csharp/snippets/Efl.Ui.SpinButton.cs
@@ -1,6 +1,6 @@
1Efl.Ui.SpinButton spinButton = new Efl.Ui.SpinButton(parent); 1Efl.Ui.SpinButton spinButton = new Efl.Ui.SpinButton(parent);
2 2
3spinButton.SetOrientation(Efl.Ui.LayoutOrientation.Vertical); 3spinButton.Orientation = Efl.Ui.LayoutOrientation.Vertical;
4 4
5spinButton.SetRangeLimits(0, 100); 5spinButton.SetRangeLimits(0, 100);
6spinButton.SetRangeStep(2); 6spinButton.SetRangeStep(2);
diff --git a/reference/csharp/snippets/Efl.Ui.Win.cs b/reference/csharp/snippets/Efl.Ui.Win.cs
index 721f0de..507f8ef 100644
--- a/reference/csharp/snippets/Efl.Ui.Win.cs
+++ b/reference/csharp/snippets/Efl.Ui.Win.cs
@@ -1,8 +1,8 @@
1var win = new Efl.Ui.Win(Efl.App.AppMain); 1var win = new Efl.Ui.Win(Efl.App.AppMain);
2 2
3win.SetWinType(Efl.Ui.WinType.Basic); 3win.SetWinType(Efl.Ui.WinType.Basic);
4win.SetText("Hello World"); 4win.Text = "Hello World";
5win.SetAutohide(true); 5win.Autohide = true;
6 6
7win.VisibilityChangedEvent += 7win.VisibilityChangedEvent +=
8 (sender, args) => { }; 8 (sender, args) => { };
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index 20fcf9b..1eff3d9 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -4,34 +4,34 @@ public class Example : Efl.Csharp.Application
4{ 4{
5 public static void FocusChangedCb(object sender, EventArgs e) 5 public static void FocusChangedCb(object sender, EventArgs e)
6 { 6 {
7 Console.WriteLine($"Focus for object {((Efl.IText)sender).GetText()} changed to {((Efl.Ui.Widget)sender).GetFocus()}"); 7 Console.WriteLine($"Focus for object {((Efl.IText)sender).Text} changed to {((Efl.Ui.Widget)sender).Focus}");
8 } 8 }
9 9
10 protected override void OnInitialize(string[] args) 10 protected override void OnInitialize(string[] args)
11 { 11 {
12 // Create a window and initialize it 12 // Create a window and initialize it
13 var win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic); 13 var win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
14 win.SetText("Focus example"); 14 win.Text = "Focus example";
15 win.SetAutohide(true); 15 win.Autohide = true;
16 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => { 16 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => {
17 // Exit the EFL main loop 17 // Exit the EFL main loop
18 if (e.arg == false) 18 if (e.Arg == false)
19 Efl.Ui.Config.Exit(); 19 Efl.Ui.Config.Exit();
20 }; 20 };
21 21
22 22
23 // Create the main box container 23 // Create the main box container
24 var vbox = new Efl.Ui.Box(win); 24 var vbox = new Efl.Ui.Box(win);
25 vbox.SetHintSizeMin(new Eina.Size2D(360, 240)); 25 vbox.HintSizeMin = new Eina.Size2D(360, 240);
26 win.SetContent(vbox); 26 win.Content = vbox;
27 27
28 // Create some check boxes 28 // Create some check boxes
29 Efl.Ui.Check first_checkbox = null; 29 Efl.Ui.Check first_checkbox = null;
30 for (int i = 0; i< 5; i++) { 30 for (int i = 0; i< 5; i++) {
31 var checkbox = new Efl.Ui.Check(vbox); 31 var checkbox = new Efl.Ui.Check(vbox);
32 checkbox.SetText("Check " + i); 32 checkbox.Text = "Check " + i;
33 checkbox.SetHintFill(false, false); 33 checkbox.HintFill = (false, false);
34 checkbox.SetHintAlign(0.5, 0.5); 34 checkbox.HintAlign = ((Efl.Gfx.Align)0.5, (Efl.Gfx.Align)0.5);
35 checkbox.FocusChangedEvent += FocusChangedCb; 35 checkbox.FocusChangedEvent += FocusChangedCb;
36 vbox.Pack(checkbox); 36 vbox.Pack(checkbox);
37 if (i == 0) first_checkbox = checkbox; 37 if (i == 0) first_checkbox = checkbox;
@@ -39,12 +39,12 @@ public class Example : Efl.Csharp.Application
39 39
40 // Create an horizontal box to contain the two buttons 40 // Create an horizontal box to contain the two buttons
41 var hbox = new Efl.Ui.Box(vbox); 41 var hbox = new Efl.Ui.Box(vbox);
42 hbox.SetOrientation(Efl.Ui.LayoutOrientation.Horizontal); 42 hbox.Orientation = Efl.Ui.LayoutOrientation.Horizontal;
43 vbox.Pack(hbox); 43 vbox.Pack(hbox);
44 44
45 // Create a "Focus Mover" button 45 // Create a "Focus Mover" button
46 var button = new Efl.Ui.Button(hbox); 46 var button = new Efl.Ui.Button(hbox);
47 button.SetText("Focus mover"); 47 button.Text = "Focus mover";
48 button.FocusChangedEvent += FocusChangedCb; 48 button.FocusChangedEvent += FocusChangedCb;
49 button.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => { 49 button.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => {
50 Console.WriteLine("Clicked Focus Mover"); 50 Console.WriteLine("Clicked Focus Mover");
@@ -55,7 +55,7 @@ public class Example : Efl.Csharp.Application
55 55
56 // Create a Quit button 56 // Create a Quit button
57 button = new Efl.Ui.Button(hbox); 57 button = new Efl.Ui.Button(hbox);
58 button.SetText("Quit"); 58 button.Text = "Quit";
59 button.FocusChangedEvent += FocusChangedCb; 59 button.FocusChangedEvent += FocusChangedCb;
60 button.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => { 60 button.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => {
61 Console.WriteLine("Clicked Quit"); 61 Console.WriteLine("Clicked Quit");
@@ -64,7 +64,7 @@ public class Example : Efl.Csharp.Application
64 hbox.Pack(button); 64 hbox.Pack(button);
65 65
66 // Show the focus highlight 66 // Show the focus highlight
67 win.SetFocusHighlightEnabled(true); 67 win.FocusHighlightEnabled = true;
68 } 68 }
69 69
70#if WIN32 70#if WIN32
diff --git a/reference/csharp/ui/src/ui_container.cs b/reference/csharp/ui/src/ui_container.cs
index f52a5bd..ebdead3 100644
--- a/reference/csharp/ui/src/ui_container.cs
+++ b/reference/csharp/ui/src/ui_container.cs
@@ -14,17 +14,17 @@ public class Example : Efl.Csharp.Application
14 { 14 {
15 Efl.Ui.Box box = new Efl.Ui.Box(win); 15 Efl.Ui.Box box = new Efl.Ui.Box(win);
16 // Set distance between contained elements 16 // Set distance between contained elements
17 box.SetContentPadding(5, 0); 17 box.ContentPadding = (5, 0);
18 18
19 for (int i = 1; i <= 4; ++i) 19 for (int i = 1; i <= 4; ++i)
20 { 20 {
21 // Add 4 buttons, one below the other 21 // Add 4 buttons, one below the other
22 var button = new Efl.Ui.Button(win); 22 var button = new Efl.Ui.Button(win);
23 button.SetText($"Boxed {i}"); 23 button.Text = $"Boxed {i}";
24 if (i == 2) 24 if (i == 2)
25 { 25 {
26 // Button 2 has its maximum size limited, so it will be smaller 26 // Button 2 has its maximum size limited, so it will be smaller
27 button.SetHintSizeMax(new Eina.Size2D(100,50)); 27 button.HintSizeMax = new Eina.Size2D(100,50);
28 } 28 }
29 box.Pack(button); 29 box.Pack(button);
30 } 30 }
@@ -37,21 +37,21 @@ public class Example : Efl.Csharp.Application
37 { 37 {
38 Efl.Ui.Table table = new Efl.Ui.Table(win); 38 Efl.Ui.Table table = new Efl.Ui.Table(win);
39 // Table with two columns, that get filled left to right, and then top to bottom 39 // Table with two columns, that get filled left to right, and then top to bottom
40 table.SetTableColumns(2); 40 table.TableColumns = 2;
41 table.SetOrientation(Efl.Ui.LayoutOrientation.Horizontal); 41 table.Orientation = Efl.Ui.LayoutOrientation.Horizontal;
42 Efl.Ui.Button button; 42 Efl.Ui.Button button;
43 43
44 for (int i = 1; i <= 4; ++i) 44 for (int i = 1; i <= 4; ++i)
45 { 45 {
46 // Add 4 buttons, following the defined table flow 46 // Add 4 buttons, following the defined table flow
47 button = new Efl.Ui.Button(win); 47 button = new Efl.Ui.Button(win);
48 button.SetText($"Table {i}"); 48 button.Text = $"Table {i}";
49 table.Pack(button); 49 table.Pack(button);
50 } 50 }
51 51
52 // Last button spans two table cells 52 // Last button spans two table cells
53 button = new Efl.Ui.Button(win); 53 button = new Efl.Ui.Button(win);
54 button.SetText("Long Button"); 54 button.Text = "Long Button";
55 table.PackTable(button, 0, 2, 2, 1); 55 table.PackTable(button, 0, 2, 2, 1);
56 56
57 return table; 57 return table;
@@ -61,31 +61,31 @@ public class Example : Efl.Csharp.Application
61 { 61 {
62 // Create a window and initialize it 62 // Create a window and initialize it
63 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic); 63 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
64 win.SetText("Container demo"); 64 win.Text = "Container demo";
65 win.SetAutohide(true); 65 win.Autohide = true;
66 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => { 66 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => {
67 // Exit the EFL main loop 67 // Exit the EFL main loop
68 if (e.arg == false) 68 if (e.Arg == false)
69 Efl.Ui.Config.Exit(); 69 Efl.Ui.Config.Exit();
70 }; 70 };
71 // Give the window an initial size so there is room to resize the panes. 71 // Give the window an initial size so there is room to resize the panes.
72 // Otherwise, all widgets are tightly packed 72 // Otherwise, all widgets are tightly packed
73 win.SetSize(new Eina.Size2D(350,250)); 73 win.Size = new Eina.Size2D(350,250);
74 74
75 // Create a vertically-split panes container 75 // Create a vertically-split panes container
76 Efl.Ui.Panes vsplit = new Efl.Ui.Panes(win); 76 Efl.Ui.Panes vsplit = new Efl.Ui.Panes(win);
77 vsplit.SetSplitRatio(0.75); 77 vsplit.SplitRatio = 0.75;
78 win.SetContent(vsplit); 78 win.Content = vsplit;
79 79
80 // Create some boxes and set them as the content of the first pane of the container 80 // Create some boxes and set them as the content of the first pane of the container
81 var box = CreateBox(win); 81 var box = CreateBox(win);
82 vsplit.FirstPart.SetContent(box); 82 vsplit.FirstPart.Content = box;
83 83
84 // Create a second, horizontally-split panes container and set it as the content of 84 // Create a second, horizontally-split panes container and set it as the content of
85 // the second pane of the first container 85 // the second pane of the first container
86 Efl.Ui.Panes hsplit = new Efl.Ui.Panes(win); 86 Efl.Ui.Panes hsplit = new Efl.Ui.Panes(win);
87 hsplit.SetOrientation(Efl.Ui.LayoutOrientation.Horizontal); 87 hsplit.Orientation = Efl.Ui.LayoutOrientation.Horizontal;
88 hsplit.SetSplitRatio(0.85); 88 hsplit.SplitRatio = 0.85;
89 vsplit.SecondPart.SetContent(hsplit); 89 vsplit.SecondPart.SetContent(hsplit);
90 90
91 // Create a table and set it as the content of the first pane of the horizontal 91 // Create a table and set it as the content of the first pane of the horizontal
@@ -96,8 +96,8 @@ public class Example : Efl.Csharp.Application
96 // Create a button and set it as the content of the second pane of the horizontal 96 // Create a button and set it as the content of the second pane of the horizontal
97 // container 97 // container
98 Efl.Ui.Button quit_btn = new Efl.Ui.Button(win); 98 Efl.Ui.Button quit_btn = new Efl.Ui.Button(win);
99 quit_btn.SetText("Quit"); 99 quit_btn.Text = "Quit";
100 quit_btn.SetHintSizeMax(new Eina.Size2D(150, 30)); 100 quit_btn.HintSizeMax = new Eina.Size2D(150, 30);
101 quit_btn.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => { 101 quit_btn.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => {
102 // Exit the EFL main loop 102 // Exit the EFL main loop
103 Efl.Ui.Config.Exit(); 103 Efl.Ui.Config.Exit();
diff --git a/reference/csharp/ui/src/ui_custom_widget.cs b/reference/csharp/ui/src/ui_custom_widget.cs
index 0907c47..ee3e8e5 100644
--- a/reference/csharp/ui/src/ui_custom_widget.cs
+++ b/reference/csharp/ui/src/ui_custom_widget.cs
@@ -18,13 +18,15 @@ public class MyButton : Efl.Ui.Button
18 base(parent) 18 base(parent)
19 { 19 {
20 button_id = id; 20 button_id = id;
21 base.SetText("Base text for button id " + id); 21 base.Text = "Base text for button id " + id;
22 } 22 }
23 23
24 // This calls the parent's SetText() method with a modified string 24 // This calls the parent's SetText() method with a modified string
25 public override void SetText(System.String text) 25 public override string Text
26 { 26 {
27 base.SetText("Overriden text for button id " + button_id + ": " + text); 27 set {
28 base.Text = "Overriden text for button id " + button_id + ": " + value;
29 }
28 } 30 }
29} 31}
30 32
@@ -34,22 +36,22 @@ public class Example : Efl.Csharp.Application
34 { 36 {
35 // Create a window and initialize it 37 // Create a window and initialize it
36 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic); 38 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
37 win.SetText("Custom widget demo"); 39 win.Text = "Custom widget demo";
38 win.SetAutohide(true); 40 win.Autohide = true;
39 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => { 41 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => {
40 // Exit the EFL main loop when the window is closed 42 // Exit the EFL main loop when the window is closed
41 if (e.arg == false) 43 if (e.Arg == false)
42 Efl.Ui.Config.Exit(); 44 Efl.Ui.Config.Exit();
43 }; 45 };
44 // Give the window an initial size 46 // Give the window an initial size
45 win.SetSize(new Eina.Size2D(350,250)); 47 win.Size = new Eina.Size2D(350,250);
46 48
47 // Instantiate our custom button widget 49 // Instantiate our custom button widget
48 MyButton btn = new MyButton(win, 99); 50 MyButton btn = new MyButton(win, 99);
49 btn.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => { 51 btn.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => {
50 // When the button is clicked, change its text 52 // When the button is clicked, change its text
51 MyButton b = (MyButton)sender; 53 MyButton b = (MyButton)sender;
52 b.SetText("Hello!"); 54 b.Text = "Hello!";
53 }; 55 };
54 56
55 win.SetContent(btn); 57 win.SetContent(btn);
diff --git a/reference/csharp/ui/src/ui_sizing.cs b/reference/csharp/ui/src/ui_sizing.cs
index 5749d2b..c891e9e 100644
--- a/reference/csharp/ui/src/ui_sizing.cs
+++ b/reference/csharp/ui/src/ui_sizing.cs
@@ -14,11 +14,11 @@ public class Example : Efl.Csharp.Application
14 { 14 {
15 // Create a window and initialize it 15 // Create a window and initialize it
16 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic); 16 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
17 win.SetText("Size Control"); 17 win.Text = "Size Control";
18 win.SetAutohide(true); 18 win.Autohide = true;
19 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => { 19 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => {
20 // Exit the EFL main loop 20 // Exit the EFL main loop
21 if (e.arg == false) 21 if (e.Arg == false)
22 Efl.Ui.Config.Exit(); 22 Efl.Ui.Config.Exit();
23 }; 23 };
24 24
@@ -28,19 +28,19 @@ public class Example : Efl.Csharp.Application
28 28
29 // Create a regular button (without size hints) 29 // Create a regular button (without size hints)
30 var button = new Efl.Ui.Button(win); 30 var button = new Efl.Ui.Button(win);
31 button.SetText("Button"); 31 button.Text = "Button";
32 box.Pack(button); 32 box.Pack(button);
33 33
34 // Create a small button (max size is limited) 34 // Create a small button (max size is limited)
35 button = new Efl.Ui.Button(win); 35 button = new Efl.Ui.Button(win);
36 button.SetText("Small"); 36 button.Text = "Small";
37 button.SetHintSizeMax(new Eina.Size2D(50,50)); 37 button.HintSizeMax = new Eina.Size2D(50,50);
38 box.Pack(button); 38 box.Pack(button);
39 39
40 // Create a big button (min size is limited) 40 // Create a big button (min size is limited)
41 button = new Efl.Ui.Button(win); 41 button = new Efl.Ui.Button(win);
42 button.SetText("Big button"); 42 button.Text = "Big button";
43 button.SetHintSizeMin(new Eina.Size2D(100,100)); 43 button.HintSizeMin = new Eina.Size2D(100,100);
44 box.Pack(button); 44 box.Pack(button);
45 } 45 }
46 46