First, I tested several kinds of type converters but only the basic type converter seems to work.
Converters in the code below don't work except for ConvertTo.
private string _name;
[TypeConverter(typeof(Tuple3iConverter))]
public string Name
{
get { return _name; }
set { _name = value; }
}
public class Tuple3iConverter : TypeConverter
{
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
{
if (context == null)
{
return false;
}
return ((sourceType == typeof(string)) || base.CanConvertFrom(context, sourceType));
}
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
if (value is string)
{
return value;
}
return base.ConvertFrom(context, culture, value);
}
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (destinationType == typeof(string))
{
if (value.Equals("New"))
return "lsw822Man";
else
return "NewMan";
}
return base.ConvertTo(context, culture, value, destinationType);
}
public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
{
List<string> genericList = new List<string>();
genericList.Add("lsw822");
genericList.Add("lsw833");
genericList.Add("lsw844");
return new TypeConverter.StandardValuesCollection(genericList);
}
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
{
return true;
}
}
+
Second, when I resize the label columns and move the resizer to the leftmost position, each row stops in a different location.
I'm using Windows8Theme and this happens when using Windows8Theme. Please see the images attached.
Thanks!