Browse Source

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

pull/1645/head
brianlagunas_cp 15 years ago
parent
commit
34911b8c1b
  1. 4
      ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs

4
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

Loading…
Cancel
Save