From 34911b8c1b9649fda51c3e5565fca1438db362ed 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/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs index 8278697f..05820326 100644 --- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs +++ b/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