Xaml binding to object StorageFile is not working

114 views Asked by At

I got strange behavior where binding to StorageFile itself does not work.

Code:

<TextBlock Text="{Binding Path=., Converter={StaticResource MatchDataConverter}, ConverterParameter=SportName, FallbackValue=DisplayName}" >

Binding to this textblock is StorageFile from my local storage of WP8.1. If I set the value to DisplayName or some property from the StorageFile itself, it works fine. However if I want to send the entire StorageFile to converter ( which I do ) that does not work, displaying fallback value right away.

Can someone point out the problem here ? Thanks

0

There are 0 answers