summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-08-23 14:12:08 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-08-23 14:17:44 -0300
commitf3d9238e15ceb189644e9069ed3a477b9beb3d86 (patch)
tree3d281d38dac4d04e48679ae65efc1184a7ceac92 /src/tests/efl_mono
parent1aa05ab41be00da32fcc3cc83a95c605dbeb9a58 (diff)
csharp: Add bindable factory parts support
Summary: This commit makes parts that implement `Efl.IContent` use BindFactory instead of property binding. ``` var factory = new Efl.Ui.ItemFactory<Efl.Ui.ListDefaultItem>(); var iconFactory = new Efl.Ui.ImageFactory(null); iconFactory.PropertyBind("filename", "modelProperty"); factory.IconPart().BindFactory(iconFactory); ``` Fixes T7628 Reviewers: cedric, felipealmeida, SanghyeonLee Reviewed By: felipealmeida Tags: #efl Maniphest Tasks: T7628 Differential Revision: https://phab.enlightenment.org/D9653
Diffstat (limited to 'src/tests/efl_mono')
-rw-r--r--src/tests/efl_mono/Parts.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Parts.cs b/src/tests/efl_mono/Parts.cs
index 00a67ba..a27c1b4 100644
--- a/src/tests/efl_mono/Parts.cs
+++ b/src/tests/efl_mono/Parts.cs
@@ -50,6 +50,16 @@ public static class TestMVVMParts
50 50
51 Test.AssertEquals(error, Eina.Error.NO_ERROR); 51 Test.AssertEquals(error, Eina.Error.NO_ERROR);
52 } 52 }
53
54 public static void mvvm_factory_properties()
55 {
56 var factory = new Efl.Ui.ItemFactory<Efl.Ui.ListDefaultItem>();
57 var iconFactory = new Efl.Ui.ImageFactory(null);
58 iconFactory.PropertyBind("filename", "modelProperty");
59 var error = factory.IconPart().BindFactory(iconFactory);
60
61 Test.AssertEquals(error, Eina.Error.NO_ERROR);
62 }
53} 63}
54 64
55#endif 65#endif