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

How to implement 2 way data binding to a textfield

$
0
0

Hi team,

I implement a field which input is "sanitised" via regex and if the input has chars that are not allowed by the regex the value of the exported property should not change. I made the the field to update the property on every input character. The value of the exported property updates as expected (checked via debugging) but the UI text control doesn't update the value and the wrong character stays in it. As per different articles I saw that the KVO/KVC pattern doesn't include in itself 2 way data binding. How I should circumvent that?


Viewing all articles
Browse latest Browse all 204402


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>