Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 23844 [details]
We have bind a string property in the data model to Label's Text property with binding mode as "OneWay" and used the converter to customize the text value. While initialization of label, the converter gets triggered and the label's text gets changed as expected. But if we changed the text at runtime for example, in a button click event, the text gets changed but the converter is not triggered.
Additionally, if the binding mode is "TwoWay" the converter gets triggered and text value changed as expected.
we have tested in latest stable Xamarin.Forms version (v 220.127.116.11).
I have attached the sample in which the issue gets replicated as reported. Could you please check with the above sample and look into the issue and please update the further details asap.
You are changing the label's text value and not the value of the text which it is bound to. It works when you use TwoWay because the label's text is updating its bound value on the ViewModel (when you define <local:DataModel x:Name="ViewModel"/> in your XAML), which is in turn triggering the converter to update the label's text. Assigning ViewModel.Data to "Data 2" in your code instead of the label.Text value will enable the behavior to work as you expect.