summaryrefslogtreecommitdiff
path: root/reference/csharp/ui/src/focus_main.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/ui/src/focus_main.cs')
-rw-r--r--reference/csharp/ui/src/focus_main.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index 700172f..a8d2615 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -20,15 +20,16 @@ public class Example
20 win.SetWinType(Efl.Ui.WinType.Basic); 20 win.SetWinType(Efl.Ui.WinType.Basic);
21 win.SetText("Focus example"); 21 win.SetText("Focus example");
22 win.SetAutohide(true); 22 win.SetAutohide(true);
23 win.HideEvt += (object sender, EventArgs e) => { 23 win.VisibilityChangedEvt += (object sender, Efl.Gfx.EntityVisibilityChangedEvt_Args e) => {
24 // Exit the EFL main loop 24 // Exit the EFL main loop
25 Efl.Ui.Config.Exit(); 25 if (e.arg == false)
26 Efl.Ui.Config.Exit();
26 }; 27 };
27 28
28 29
29 // Create the main box container 30 // Create the main box container
30 var vbox = new Efl.Ui.Box(win); 31 var vbox = new Efl.Ui.Box(win);
31 vbox.SetHintMin(new Eina.Size2D(360, 240)); 32 vbox.SetHintSizeMin(new Eina.Size2D(360, 240));
32 win.SetContent(vbox); 33 win.SetContent(vbox);
33 34
34 // Create some check boxes 35 // Create some check boxes