// This converts the DateTime object to the string to display.
 public object Convert(object value, Type targetType,
                       object parameter, string language)
 {
     if (value == null)
     {
         return(global::Windows.UI.Colors.Black);
     }
     // Retrieve the format string and use it to format the value.
     Xamarin.Forms.Color color = (Xamarin.Forms.Color)value;
     return(color.ToWinColor());
 }