summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-08-19 21:31:20 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-08-19 21:41:29 -0300
commitcc49c1034b1114e1ce9d10d8651ec6d24c1faaa1 (patch)
treefe13ff532336c143320afa99dcf7e937ee21d28e /src/tests/efl_mono
parent2a0eeba4e5fdd0de0c46000fa783cb59f7d716e7 (diff)
csharp: MVVM parts support
Summary: Parts binding will follow a similar approach to regular property binding: `var error = factory.PartName().PropertyName().Bind(modelProperty);` * Changed both `Bind()` overloads to return the error code from `efl_ui_property_bind` * Also properties from interfaces implemented didn't have their `Bindable` wrapper methds available. Depends on D9563 Reviewers: felipealmeida, cedric, SanghyeonLee, woohyun Reviewed By: cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D9564
Diffstat (limited to 'src/tests/efl_mono')
-rw-r--r--src/tests/efl_mono/Parts.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Parts.cs b/src/tests/efl_mono/Parts.cs
index 3de0b6c..00a67ba 100644
--- a/src/tests/efl_mono/Parts.cs
+++ b/src/tests/efl_mono/Parts.cs
@@ -39,6 +39,19 @@ public static class TestParts
39 } 39 }
40} 40}
41 41
42public static class TestMVVMParts
43{
44 public static void mvvm_dynamic_parts()
45 {
46 var factory = new Efl.Ui.ItemFactory<Efl.Ui.ListDefaultItem>();
47
48 var bindablePart = factory.TextPart();
49 var error = bindablePart.Markup().Bind("name");
50
51 Test.AssertEquals(error, Eina.Error.NO_ERROR);
52 }
53}
54
42#endif 55#endif
43 56
44} 57}