Quantcast
Viewing all articles
Browse latest Browse all 801

Created Issue: NullReferenceException occurs when using only FullViewDateTimeConverter [10219]

If you use only FullViewDateTimeConverter, NullReferenceException occurs. Part of callstack is below:

System.NullReferenceException was unhandled
Message=NullReferenceException
StackTrace:
at Microsoft.Phone.Controls.DateTimeFormatHelper.GetShortTime(DateTime dt)
at Microsoft.Phone.Controls.FullViewDateTimeConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)
at System.Windows.Data.BindingExpression.ConvertToTarget(Object value)


I have not confirmed but I think the cause is DateTimeFormatHelper.formatInfo_GetSuperShortTime is not created when GetShortTime method is called. Looks like other converters don't have this issue.

Toolkit version is Nov 2011 release.

Viewing all articles
Browse latest Browse all 801

Trending Articles



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