Selecting the item with keypress in combo v10.1.0521

Grids for WPF Forum

Posted 14 years ago by mark
Version: 10.1.0522
Platform: .NET 4.0
Environment: Windows XP (32-bit)
when using the builtin combobox property editor with an exclusive list of standard values, the usual method of being able to select the entry based on keypresses does not work.

for example using the Property Editors quick start

typing 'S' or 'T' in the Enum category Combobox does not select the 'SecondEnum' or 'ThirdEnum'

Is this behaviour by design? Because when you many items in the combo (50+), the user wishes to be able to type letters to select the value.

Incidentally, the autoselect seems to work when values are not exclusive.

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Mark,

The ComboBoxPropertyEditor uses the native WPF ComboBox, which only supports the feature you describe when IsEditable is false. Right now ComboBoxPropertyEditor has IsEditable set to true, so that it fits in better visually (for Aero anyway) and so that you can always select/copy the text.

We've added a TODO item to enhance the ComboBox property editor to better handle all cases. In the meantime, you can take the DataTemplate for the ComboBoxPropertyEditor and tweak to your needs. The default property editors are provided with the default Styles/ControlTemplates. If you own WPF Studio, you can download them from our website, otherwise you can send a request to our support address.

Actipro Software Support

The latest build of this product (v24.1.2) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.