This project is read-only.
1
Vote

Focus navigation in PropertyGrid

description

Issue:

PropertyItem controls in the Xceed property grid don't support proper tab navigation.

Repro:

Open a property grid with two or more properties displayed. Click in the editor control for the first property. Press the tab key. A focus rectangle appears around the ENTIRE next property editor. Pressing tab again moves to the editor control for the property, where focus should have gone in the first place.

Analysis:

PropertyItem controls should not be focusable, and should rely, instead on the edit control they contain to accept focus.

_Fix:

File: Xceed.Wpf.Toolkit\PropertyGrid\Implementation\PropertyItemBase.cs
Line: 341

Add the following line:
      Focusable = false;
So that the constructor reads:
internal PropertyItemBase()
{
  Focusable = false;
  _containerHelper = new ObjectContainerHelper( this, null );
Sorry. Would submit a patch,, but it's too much work.

Regards.

comments