AcornPublishing_wpf/9780735619579-master/AppsCodeMarkup/Chapter 23/EnvironmentInfo2/FormattedMultiTextConverter.cs
//------------------------------------------------------------
// FormattedMultiTextConverter.cs (c) 2006 by Charles Petzold
//------------------------------------------------------------
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace Petzold.EnvironmentInfo2
{
    public class FormattedMultiTextConverter : IMultiValueConverter
    {
        public object Convert(object[] value, Type typeTarget, 
                              object param, CultureInfo culture)
        {
            return String.Format((string) param, value);
        }
        public object[] ConvertBack(object value, Type[] typeTarget, 
                                    object param, CultureInfo culture)
        {
            return null;
        }
    }
}
