aboutsummaryrefslogtreecommitdiffstats
path: root/reference
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 /reference
parentFix alignment of some widgets (diff)
downloadexamples-6cb115480e51c64cf3034e05dded2e0ad784c648.tar.gz
mono-examples: Update to latest Part syntax
Diffstat (limited to 'reference')
-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 0ca057b8..f2e27e6e 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
// Create some boxes and set them as the content of the first pane of the container
var box = CreateBox(win);
- (vsplit.GetPart("first") as Efl.IContent).SetContent(box);
+ vsplit.FirstPart.SetContent(box);
// Create a second, horizontally-split panes container and set it as the content of
// the second pane of the first container
Efl.Ui.Panes hsplit = new Efl.Ui.Panes(win);
hsplit.SetDirection(Efl.Ui.Dir.Horizontal);
hsplit.SetSplitRatio(0.85);
- (vsplit.GetPart("second") as Efl.IContent).SetContent(hsplit);
+ vsplit.SecondPart.SetContent(hsplit);
// Create a table and set it as the content of the first pane of the horizontal
// container
var table = CreateTable(win);
- (hsplit.GetPart("first") as Efl.IContent).SetContent(table);
+ hsplit.FirstPart.SetContent(table);
// Create a button and set it as the content of the second pane of the horizontal
// container
@@ -102,7 +102,7 @@ public class Example : Efl.Csharp.Application
// Exit the EFL main loop
Efl.Ui.Config.Exit();
};
- (hsplit.GetPart("second") as Efl.IContent).SetContent(quit_btn);
+ hsplit.SecondPart.SetContent(quit_btn);
}
#if WIN32