Forráskód Böngészése

Disabled Double-Click Edit on PopupEditor and CodePopupEditor controls

frankvandenbos 3 hónapja
szülő
commit
4516d2622a

+ 1 - 0
inabox.wpf/DynamicGrid/Editors/CodePopupEditor/CodePopupEditorControl.cs

@@ -186,6 +186,7 @@ public class CodePopupEditorControl : DynamicEditorControl<Guid, CodePopupEditor
             {
                 if (EditorDefinition.CanAdd)
                 {
+                    grid.OnDoubleClick += (o, args) => args.Handled = true; 
                     grid.OnReconfigure += options =>
                     {
                         options.AddRows = Security.CanEdit(_type);

+ 1 - 0
inabox.wpf/DynamicGrid/Editors/PopupEditor/PopupEditorControl.cs

@@ -97,6 +97,7 @@ public class PopupEditorControl : DynamicEditorControl<Guid, PopupEditor>
             {
                 if (EditorDefinition.CanAdd)
                 {
+                    grid.OnDoubleClick += (o, args) => args.Handled = true; 
                     grid.OnReconfigure += options =>
                     {
                         options.AddRows = Security.CanEdit(_type);