In the previous question / answer, I found out how data binding in Windows Phone makes TypeConversion for string to ImageSource using TypeConverterAttribute - see https://stackoverflow.com/a/2776161
Now I am considering the same problem in WindowsStore applications where TypeConverterAttribute does not exist .
If I use WinRT data binding, then it is clear that the correct conversion is still possible for the data binding. MSDN documentation says:
this behavior is based on a base type conversion that processes the string as a URI and invokes the equivalent of the BitmapImage (Uri) constructor.
However, I donβt see metadata anywhere about how he knows which conversion to do.
I'm trying to create my own data binding - so being able to mimic what WinRT does would be very useful.
Is there a metadata tip tooltip somewhere that tells the Xaml data binding what transformation is applied? Or is it a conversion of string to ImageSource , somehow baked at runtime, hidden from the CLR?
If it is hidden, is there a list of known automatic type conversions so that I can cache them in my data binding implementation?
source share