summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-05-07 13:56:23 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-07 13:56:23 +0200
commit6cb115480e51c64cf3034e05dded2e0ad784c648 (patch)
tree16637ee12e6923ba5d6f5d4953d7d2a28dca4d21
parentfdeb87bb751d7f8818e1df9a3d8925dd8721e2e7 (diff)
mono-examples: Update to latest Part syntax
-rw-r--r--reference/csharp/ui/src/ui_container.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/reference/csharp/ui/src/ui_container.cs b/reference/csharp/ui/src/ui_container.cs
index 0ca057b..f2e27e6 100644
--- a/reference/csharp/ui/src/ui_container.cs
+++ b/reference/csharp/ui/src/ui_container.cs
@@ -79,19 +79,19 @@ public class Example : Efl.Csharp.Application
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.GetPart("first") as Efl.IContent).SetContent(box); 82 vsplit.FirstPart.SetContent(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.SetDirection(Efl.Ui.Dir.Horizontal); 87 hsplit.SetDirection(Efl.Ui.Dir.Horizontal);
88 hsplit.SetSplitRatio(0.85); 88 hsplit.SetSplitRatio(0.85);
89 (vsplit.GetPart("second") as Efl.IContent).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
92 // container 92 // container
93 var table = CreateTable(win); 93 var table = CreateTable(win);
94 (hsplit.GetPart("first") as Efl.IContent).SetContent(table); 94 hsplit.FirstPart.SetContent(table);
95 95
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
@@ -102,7 +102,7 @@ public class Example : Efl.Csharp.Application
102 // Exit the EFL main loop 102 // Exit the EFL main loop
103 Efl.Ui.Config.Exit(); 103 Efl.Ui.Config.Exit();
104 }; 104 };
105 (hsplit.GetPart("second") as Efl.IContent).SetContent(quit_btn); 105 hsplit.SecondPart.SetContent(quit_btn);
106 } 106 }
107 107
108#if WIN32 108#if WIN32