mono-examples: Update to latest Part syntax

This commit is contained in:
Xavi Artigas 2019-05-07 13:56:23 +02:00
parent fdeb87bb75
commit 6cb115480e
1 changed files with 4 additions and 4 deletions

View File

@ -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 // Create some boxes and set them as the content of the first pane of the container
var box = CreateBox(win); 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 // Create a second, horizontally-split panes container and set it as the content of
// the second pane of the first container // the second pane of the first container
Efl.Ui.Panes hsplit = new Efl.Ui.Panes(win); Efl.Ui.Panes hsplit = new Efl.Ui.Panes(win);
hsplit.SetDirection(Efl.Ui.Dir.Horizontal); hsplit.SetDirection(Efl.Ui.Dir.Horizontal);
hsplit.SetSplitRatio(0.85); 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 // Create a table and set it as the content of the first pane of the horizontal
// container // container
var table = CreateTable(win); 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 // Create a button and set it as the content of the second pane of the horizontal
// container // container
@ -102,7 +102,7 @@ public class Example : Efl.Csharp.Application
// Exit the EFL main loop // Exit the EFL main loop
Efl.Ui.Config.Exit(); Efl.Ui.Config.Exit();
}; };
(hsplit.GetPart("second") as Efl.IContent).SetContent(quit_btn); hsplit.SecondPart.SetContent(quit_btn);
} }
#if WIN32 #if WIN32