public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { Image image = value as Image; if (image == null) { return(null); } return(DataConverter.AsImageSource(WidgetRegistry.GetBackend(image))); }