diff options
author | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-08-19 21:31:20 -0300 |
---|---|---|
committer | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2019-08-19 21:41:29 -0300 |
commit | cc49c1034b1114e1ce9d10d8651ec6d24c1faaa1 (patch) | |
tree | fe13ff532336c143320afa99dcf7e937ee21d28e /src/tests | |
parent | 2a0eeba4e5fdd0de0c46000fa783cb59f7d716e7 (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')
-rw-r--r-- | src/tests/efl_mono/Parts.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Parts.cs b/src/tests/efl_mono/Parts.cs index 3de0b6c94b..00a67bae56 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 | ||
42 | public 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 | } |