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

Proper way to handle incompatible types with IValueConverter

$
0
0

Hi guys,

I wonder what is the proper way when value type (or targetType) isn't something one supports when implementing IValueConverter.Convert methods.

Should we return null (not a good option since target might not support nulls)? throw? something else?
In XAML I'd normally use DependencyProperty.UnsetValue in such cases.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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