摘要: 以下两种方法是我自己都测试过的方法1:通过继承MarkupExtension步骤1:新建一个类MarkupExtensionReturnType(typeof(object[]))] publicclassEnumValuesExtension:MarkupExtension { publicEnumValuesExtension() { } publicEnumValuesExtension(Type enumType) { this.EnumType= enumType; } [ConstructorArgument("enumType")] publicTypeEn. 阅读全文
posted @ 2012-12-06 11:32 星羽 阅读(505) 评论(0) 推荐(0) 编辑