-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
添加PropertyGrid排序功能和枚举元素优先使用Description作为显示 #1794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 3 commits
1edd072
aa3c61c
9e327f4
1c8d583
1ea84e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| using System; | ||
| using System; | ||
| using System.ComponentModel; | ||
| using System.Windows; | ||
| using System.Windows.Controls; | ||
|
|
@@ -89,6 +89,24 @@ public string Category | |
| set => SetValue(CategoryProperty, value); | ||
| } | ||
|
|
||
| public static readonly DependencyProperty CategoryOrderProperty = DependencyProperty.Register( | ||
| nameof(CategoryOrder), typeof(int), typeof(PropertyItem), new PropertyMetadata(default(int))); | ||
|
|
||
|
Comment on lines
+92
to
+94
|
||
| public int CategoryOrder | ||
| { | ||
| get => (int) GetValue(CategoryOrderProperty); | ||
| set => SetValue(CategoryOrderProperty, value); | ||
| } | ||
|
|
||
| public static readonly DependencyProperty PropertyOrderProperty = DependencyProperty.Register( | ||
| nameof(PropertyOrder), typeof(int), typeof(PropertyItem), new PropertyMetadata(default(int))); | ||
|
|
||
|
Comment on lines
+101
to
+103
|
||
| public int PropertyOrder | ||
| { | ||
| get => (int) GetValue(PropertyOrderProperty); | ||
| set => SetValue(PropertyOrderProperty, value); | ||
| } | ||
|
|
||
| public static readonly DependencyProperty EditorProperty = DependencyProperty.Register( | ||
| nameof(Editor), typeof(PropertyEditorBase), typeof(PropertyItem), new PropertyMetadata(default(PropertyEditorBase))); | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.