public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { //var stringList = values.OfType<string>().Where(x => !string.IsNullOrEmpty(x)).ToArray(); //return string.Join(" - ", stringList); ReadOnlyObservableList <QueueListItem> crawlingQueuelistItem = (ReadOnlyObservableList <QueueListItem>)values[0]; if (crawlingQueuelistItem.Count() == 0) { return(values[1]); } string blogStringArray = string.Join(" - ", crawlingQueuelistItem.Select(x => x.Blog.Name)); return(values[1] + " - " + blogStringArray); }
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { ReadOnlyObservableList <QueueListItem> crawlingQueuelistItem = (ReadOnlyObservableList <QueueListItem>)values[0]; return(string.Join(" - ", crawlingQueuelistItem.Select(x => x.Blog.Name).ToArray())); }