简介: 使用PropertyGrid控件展示和更改数据。 使用: 1.设置只读可以使用ReadOnly属性。 public class Student{[CategoryAttribute("学生信息"), DisplayName("姓名")]public string Name { get; set; }[CategoryAttribute("学…
可自动为模型对象中的属性生成与之相匹配的编辑器集合. 1
2
3[TemplatePart(Name ElementItemsControl, Type typeof(ItemsControl))]
[TemplatePart(Name ElementSearchBar, Type typeof(SearchBar))]
public class PropertyGrid : Control属性
属性描述默认值备注Proper…
p r o p e r t y G r i d propertyGrid propertyGrid 控件的对象绑定
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;namespace Lead
{public class Caves{public int CaveId { set; get; }public st…