From 6e14016bba4018496cbcdc62c44ee88706313825 Mon Sep 17 00:00:00 2001 From: brianlagunas_cp Date: Tue, 4 Oct 2011 23:29:15 +0000 Subject: [PATCH] PropertyGridItem: removed the feature of giving the editor focus when selecting a property. It was causing too many issues with custom editors --- .../PropertyGrid/Implementation/PropertyItem.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs index 05820326..32549fe1 100644 --- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs +++ b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs @@ -232,7 +232,6 @@ namespace Microsoft.Windows.Controls.PropertyGrid CommandBindings.Add(new CommandBinding(PropertyItemCommands.ResetValue, ExecuteResetValueCommand, CanExecuteResetValueCommand)); - AddHandler(Mouse.MouseDownEvent, new MouseButtonEventHandler(PropertyItem_MouseDown), true); AddHandler(Mouse.PreviewMouseDownEvent, new MouseButtonEventHandler(PropertyItem_PreviewMouseDown), true); } @@ -240,14 +239,6 @@ namespace Microsoft.Windows.Controls.PropertyGrid #region Event Handlers - void PropertyItem_MouseDown(object sender, MouseButtonEventArgs e) - { - if (Editor != null) - Editor.Focus(); - - e.Handled = true; - } - void PropertyItem_PreviewMouseDown(object sender, MouseButtonEventArgs e) { IsSelected = true;