我有个例子 class ScrollBarsSizeSubstracter: IValueConverter { #region IValueConverter Membres public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return (Double)value - 100; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } #endregion } public class Author { public Author(int id, string name,string BookTitle, bool IsMVP, Color c) { ID = id; Name = name; this.BookTitle = BookTitle; this.IsMVP = IsMVP; C = c; } public int ID { get; set; } public string Name { get; set; } public string BookTitle { get; set; } public bool IsMVP { get; set; } public Color C { get; set; } } 这个类里的怎么邦定阿.........
{
#region IValueConverter Membres public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return (Double)value - 100;
} public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
} #endregion
} public class Author
{
public Author(int id, string name,string BookTitle, bool IsMVP, Color c)
{
ID = id;
Name = name;
this.BookTitle = BookTitle;
this.IsMVP = IsMVP;
C = c; }
public int ID { get; set; }
public string Name { get; set; }
public string BookTitle { get; set; }
public bool IsMVP { get; set; }
public Color C { get; set; }
} 这个类里的怎么邦定阿.........