Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

int data binding exception

$
0
0

Is there a workaround when building UI in c# rather than XAML as setting the string format on the SetBinding doesn't resolve the issue

totalLabel.SetBinding(Label.TextProperty, new Binding("Count", BindingMode.TwoWay, null, null, "{0:#}"));

error returned on iOS is System.ArgumentException: Object type System.String cannot be converted to target type: System.Int32

Added comment to this thread but realised already marked as answered so my isssue won't surface in the forum

http://forums.xamarin.com/discussion/18347/are-there-any-built-in-value-converters-for-basic-binding


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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