diff options
Diffstat (limited to 'reference/csharp/ui/src/ui_sizing.cs')
-rw-r--r-- | reference/csharp/ui/src/ui_sizing.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/reference/csharp/ui/src/ui_sizing.cs b/reference/csharp/ui/src/ui_sizing.cs index ac25283..c8cdf90 100644 --- a/reference/csharp/ui/src/ui_sizing.cs +++ b/reference/csharp/ui/src/ui_sizing.cs | |||
@@ -23,9 +23,10 @@ public class Example | |||
23 | win.SetWinType(Efl.Ui.WinType.Basic); | 23 | win.SetWinType(Efl.Ui.WinType.Basic); |
24 | win.SetText("Size Control"); | 24 | win.SetText("Size Control"); |
25 | win.SetAutohide(true); | 25 | win.SetAutohide(true); |
26 | win.HideEvt += (object sender, EventArgs e) => { | 26 | win.VisibilityChangedEvt += (object sender, Efl.Gfx.EntityVisibilityChangedEvt_Args e) => { |
27 | // Exit the EFL main loop | 27 | // Exit the EFL main loop |
28 | Efl.Ui.Config.Exit(); | 28 | if (e.arg == false) |
29 | Efl.Ui.Config.Exit(); | ||
29 | }; | 30 | }; |
30 | 31 | ||
31 | // Create a box container | 32 | // Create a box container |
@@ -40,13 +41,13 @@ public class Example | |||
40 | // Create a small button (max size is limited) | 41 | // Create a small button (max size is limited) |
41 | button = new Efl.Ui.Button(win); | 42 | button = new Efl.Ui.Button(win); |
42 | button.SetText("Small"); | 43 | button.SetText("Small"); |
43 | button.SetHintMax(new Eina.Size2D(50,50)); | 44 | button.SetHintSizeMax(new Eina.Size2D(50,50)); |
44 | box.DoPack(button); | 45 | box.DoPack(button); |
45 | 46 | ||
46 | // Create a big button (min size is limited) | 47 | // Create a big button (min size is limited) |
47 | button = new Efl.Ui.Button(win); | 48 | button = new Efl.Ui.Button(win); |
48 | button.SetText("Big button"); | 49 | button.SetText("Big button"); |
49 | button.SetHintMin(new Eina.Size2D(100,100)); | 50 | button.SetHintSizeMin(new Eina.Size2D(100,100)); |
50 | box.DoPack(button); | 51 | box.DoPack(button); |
51 | 52 | ||
52 | // Start the EFL main loop | 53 | // Start the EFL main loop |