I find myself creating Converters often and would like to be able to:
- right-click on my Converters folder
- Add New Item...
- choose Converter Item Template
I found these instructions but I can imagine that there are templates for standard files like WPF Converters already available somewhere, does anyone know of any?
The following file would be created:
[ValueConversion(typeof(string), typeof(string))]
class SaveStatusToSaveStatusMessageConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return value;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return value;
}
}