Exemplo n.º 1
0
        public object Convert([CanBeNull] object value, [CanBeNull] Type targetType, [CanBeNull] object parameter, [CanBeNull] CultureInfo culture)
        {
            var imageSource = CultureToImageSourceConverter.Convert(value as CultureInfo);

            return(new Image {
                Source = imageSource
            });
        }
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            Contract.Ensures(Contract.Result <object>() != null);
            var imageSource = CultureToImageSourceConverter.Convert(value as CultureInfo);

            return(new Image {
                Source = imageSource
            });
        }