Browse Source

PropertyGridItem: removed the feature of giving the editor focus when selecting a property. It was causing too many issues with custom editors

pull/1645/head
brianlagunas_cp 15 years ago
parent
commit
6e14016bba
  1. 9
      ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs

9
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;

Loading…
Cancel
Save