I can get convert to work from an object to a textbox. But I am a little loss at convertback. Any lead or help is much appreciated.
[ValueConversion(typeof(Object), typeof(String))]
public class DataConverter : IValueConverter
{
// This converts the DateTime object to the string to display.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
BasePar data = (BasePar)value;
return data.ToString();
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
string strValue = value as string;
Object objString = (Object)strValue;
return objString;
}
}