we are using MVVMCross and we are having trouble binding an NSAttributedString to a UITextView. It's weird because the same code works without using a BindingSet and also using Bindig for Text property instead of AttributedText
As said, this line of code is not binding, the TextView just shows the default text:
set.Bind (TxtActivityText).For(txt => txt.AttributedText).To (vm => vm.Activity).WithConversion("ActivitySpanMessage");
... and outputs the following warning: "MvxBind:Warning: 6.06 Failed to create target binding for binding AttributedText for Activity"
While with this line is working fine:
set.Bind (TxtActivityText).For(txt => txt.Text).To (vm => vm.Activity).WithConversion("ActivitySpanMessage"); // Works fine also binding to the default property
And finally, without using bindings it works fine too:
TxtActivityText.AttributedText = SpanMessageHelper.ConvertToAttributedString(ViewModel.Activity, null, null, null); // This function is the same I call in the ActivitySpanMessageConverter
Any ideas? May this be a bug?