From f7a39f3d325d4e2d1a316f905326026cd4953e53 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Mon, 15 Jun 2020 22:47:04 +0800 Subject: [PATCH] add PropertyGrid Demo --- .../Controls/PropertyGridDemoCtl.xaml | 20 ++- .../Editors/DatePropertyEditor.cs | 19 +++ .../Editors/IntegerPropertyEditor.cs | 4 +- .../Editors/NumberPropertyEditor.cs | 36 +++++ .../Editors/PlainTextPropertyEditor.cs | 19 +++ .../Editors/PropertyEditorBase.cs | 8 +- .../Editors/StringPropertyEditor.cs | 2 +- ...pertyEditor.cs => SwitchPropertyEditor.cs} | 2 +- .../Editors/TimePropertyEditor.cs | 19 +++ .../Controls/PropertyGrid/PropertyGrid.cs | 141 ++++++++++++++---- .../Controls/PropertyGrid/PropertyItem.cs | 9 -- .../Controls/PropertyGrid/PropertyResolver.cs | 33 ++-- .../HandyControl_Shared.projitems | 12 +- .../Interactivity/Commands/ControlCommands.cs | 10 ++ .../Styles/Base/PropertyGridBaseStyle.xaml | 47 +++--- .../Themes/Styles/Base/ToolTipBaseStyle.xaml | 9 +- .../Themes/Styles/PropertyGrid.xaml | 11 ++ .../Themes/Styles/Style.xaml | 1 + 18 files changed, 320 insertions(+), 82 deletions(-) create mode 100644 src/Shared/HandyControl_Shared/Controls/PropertyGrid/Editors/DatePropertyEditor.cs create mode 100644 src/Shared/HandyControl_Shared/Controls/PropertyGrid/Editors/NumberPropertyEditor.cs create mode 100644 src/Shared/HandyControl_Shared/Controls/PropertyGrid/Editors/PlainTextPropertyEditor.cs rename src/Shared/HandyControl_Shared/Controls/PropertyGrid/Editors/{BooleanPropertyEditor.cs => SwitchPropertyEditor.cs} (91%) create mode 100644 src/Shared/HandyControl_Shared/Controls/PropertyGrid/Editors/TimePropertyEditor.cs create mode 100644 src/Shared/HandyControl_Shared/Themes/Styles/PropertyGrid.xaml diff --git a/src/Shared/HandyControlDemo_Shared/UserControl/Controls/PropertyGridDemoCtl.xaml b/src/Shared/HandyControlDemo_Shared/UserControl/Controls/PropertyGridDemoCtl.xaml index 37108e68..eff6b153 100644 --- a/src/Shared/HandyControlDemo_Shared/UserControl/Controls/PropertyGridDemoCtl.xaml +++ b/src/Shared/HandyControlDemo_Shared/UserControl/Controls/PropertyGridDemoCtl.xaml @@ -1,7 +1,23 @@  - + + + + + + + + + +