public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value != null && value is DateTime) { return(string.Format(timeDisplayFormat, converter.Convert(value, targetType, parameter, culture), value)); } return(value); }
internal void ShowUpdatedTime() { this.CreatedTime.Text = _converter.Convert(Item.CreatedTime, null, null, null).ToString(); }
internal void ShowCreatedTime() { this.CreatedTime.Text = _timeConverter.Convert(_item.Updated, null, null, null).ToString(); this.CreatedTime.Opacity = 1; }