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

Using period in Indexer causes System.FormatException in Xamarin.Forms.Core.DLL

$
0
0

Hi there,

I get a 'System.FormatException' occurred in Xamarin.Forms.Core.DLL when I use the following XAML syntax:

    `<Label cs:MyClass.MyAttachableField="{Binding [TextBeforePeriod.TextAfterPeriod]}" />`

If I use the same syntax without the period, I get no error:

    `<Label cs:MyClass.MyAttachableField="{Binding [TextWithoutPeriod]}" />`

Any ideas what causes the problem?
Any ideas to a workaround so I can use periods in the string I pass to the indexer?

Regards,
Björn Sjunnesson
ChipSoft
The Netherlands

Using:
Vs2013 with runtime version v4.0.30319 (4.5) on Windows 8.1
Xamarin.Forms.Code and Xamarin.Forms.Xaml version 1.3.4.0


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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