add PropertyGrid v1

This commit is contained in:
NaBian committed 2020-06-19 01:15:47 +08:00
1 parent dea3287619
commit 0660a60e27
12 files changed
+90 -22

No files matched your search

@@ -39,8 +39,8 @@
"title": "Controls",
"selectedIndex": 0,
"demoItemList": [
[ "PropertyGrid", "PropertyGridDemoCtl", "PropertyGridEditorPart_16x", "1" ],
[ "FloatingBlock", "FloatingBlockDemoCtl", "thumbs_up", "" ],
[ "PropertyGrid", "PropertyGridDemoCtl", "PropertyGridEditorPart_16x", "1" ],
[ "ImageBlock", "ImageBlockDemoCtl", "ImageStack_16x", "" ],
[ "Magnifier", "MagnifierDemoCtl", "Search_16x", "" ],
[ "Gravatar", "GravatarDemoCtl", "User_16x", "" ],
@@ -0,0 +1,25 @@
using System.ComponentModel;
namespace HandyControlDemo.Data
{
public class PropertyGridDemoModel
{
[Category("Info")]
public string Name { get; set; }
[Category("Achievement")]
public int Score { get; set; }
[Category("Achievement")]
public bool IsPassed { get; set; }
[Category("Info")]
public Gender Gender { get; set; }
}
public enum Gender
{
Male,
Female
}
}