Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 21091 [details]
Label's Text property not accepting DateTimeOffset type.
In my scenario, I want to bind the DateTimeOffset property to the text property of a label. On doing so am getting the following exception "Invalid Cast Exception " with the additional message "Object must implement IConvertible". I have attached the simple sample replicating the issue for your reference. Please look into and revert us.
It is trying to cast to a string value which I imagine is not being explicitly called, causing the invalid cast exception. Instead you can do something like this by adding another property to bind to:
public string StartDateString => StartDate.ToString();
or you can change the binding in your XAML:
This runs and shows the DateTime value of StartDate when running the project in an emulator.
very informative to explore. Its lovely and really feels good to be in your posts. I love to read innovative posts like these. I am going to share these with all my friends and colleagues http://gtamoneyonline.com . Thanks for the amazing post. Hope to read many of these.