knurd nerd
knurd nerd

Reputation: 324

See binding errors in Xamarin.Forms

I am running into problems from time to time with View -> ViewModel binding errors with Xamarin.Forms on iOS.

For instance, I had a binding from a label to a double property in the ViewModel and just nothing happened until I added a string format like this:

myLabel.SetBinding<MyViewModel> (Label.TextProperty, vm => vm.MyDoubleProperty, stringFormat: "{0:0.0}");

It would have been a lot easier if the framework told me that there was an error.

And this is my question: Where can I see binding exceptions / warnings in Xamarin.Forms?

Upvotes: 4

Views: 1304

Answers (1)

Stephane Delcroix
Stephane Delcroix

Reputation: 16232

Binding errors are reported in the Debug log, i.e. the Output pad in your IDE: enter image description here

The particular conversion issue might not be reported as an error at the moment, but this is currently being worked out.

Upvotes: 1

Related Questions