From cd7f1f7d98e603512381416b3907291ffe205c5a Mon Sep 17 00:00:00 2001 From: brianlagunas_cp Date: Tue, 4 Oct 2011 23:14:47 +0000 Subject: [PATCH] PropertyGrid: removed code that would gurantee that a editor will receiev focus, and instead the PropertyGrid does the best it can to give focus to the editor when a property is selected. This fixes problems when creating custom editors that depend on the MouseDown event --- .../PropertyGrid/Implementation/PropertyItem.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs b/Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs index 8278697f..05820326 100644 --- a/Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs +++ b/Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs @@ -251,10 +251,6 @@ namespace Microsoft.Windows.Controls.PropertyGrid void PropertyItem_PreviewMouseDown(object sender, MouseButtonEventArgs e) { IsSelected = true; - - //if it is a comboBox then the selection will not take when Focus is called - if (!(e.Source is ComboBox)) - Focus(); } #endregion //Event Handlers