【发布时间】:2016-11-30 09:50:22
【问题描述】:
我正在使用Extended Toolkit propertyGrid。我需要根据用户定义的语言偏好对其进行自定义。
从this 教程中,我看到显示名称和其他功能可以硬编码更改。
public class Customer
{
public int ID { get; set; }
[ExpandableObject]
[Category("General settings")]<-------hard coded feature change
[DisplayName("Nome persona")]<--------hard coded feature change
public string FirstName { get; set; }
public string LastName { get; set; }
public Gender Gender { get; set; }
public DateTime BirthDate { get; set; }
public string Phone { get; set; }
}
public enum Gender { Male, Female }
}
但我需要在运行时执行此操作!谢谢你的帮助
【问题讨论】:
标签: c# .net propertygrid wpf-extended-toolkit displayname-attribute