I don't currently have an example for my question. I would just like to get some insight of the following : When should one use one or two way data binding in XAML ?
Thank you in advance for the time you take to answer this !
In summary: use OneWay
if the property is readonly, use TowWay
if you want to change it from your view.
- TwoWay updates the target property or the property whenever either the target property or the source property changes.
- OneWay updates the target property only when the source property changes.
REF:Binding.Mode Property. and BindingMode Enumeration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With