Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

MvvmLight binding stops working on one of the directions. Binding edittext of textinputlayout.

$
0
0

Hello, I am having an issue with a binding that is killing me.

On my fragment I have

_viewModel.NameEntry = "test";
_bindings.Add(this.SetBinding(() => _viewModel.NameEntry, () => EditProfileTextInputLayout.EditText.Text, BindingMode.TwoWay));

When I open the "test" appears so it is working.

However, when I change the NameEntry on my viewmodel, the binding is not called and the UI is not updated.
I know the binding is still working because when I write on the edittext it triggers the NameEntry setter.

It is as if, apart from the initialization, the bindingmode.TwoWay does not work.

Anyone has any suggestions?

Could it be because the UI is on a "Gone" state?


Viewing all articles
Browse latest Browse all 204402

Trending Articles