-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathPropertyGridDemoModel.cs
More file actions
37 lines (28 loc) · 892 Bytes
/
PropertyGridDemoModel.cs
File metadata and controls
37 lines (28 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System.ComponentModel;
using System.Windows;
using System.Windows.Media;
using HandyControl.Controls;
namespace HandyControlDemo.Data
{
public class PropertyGridDemoModel
{
[Category("Category1")]
public string String { get; set; }
[Category("Category2")]
public int Integer { get; set; }
[Category("Category1"), Priority(3)]
public bool Boolean { get; set; }
[Category("Category1"), Priority(5), Necessary]
public Gender Enum { get; set; }
[Category("Category1"), Priority(4)]
public DemoDataModel FlattenedType { get; set; }
public HorizontalAlignment HorizontalAlignment { get; set; }
public VerticalAlignment VerticalAlignment { get; set; }
public ImageSource ImageSource { get; set; }
}
public enum Gender
{
Male,
Female
}
}