EnumEditBox immediate dropdown close on selection

Editors for WPF Forum

Posted 5 years ago by John Howe
Version: 14.1.0602
Avatar

Hi Guys,

Is there a way to get the dropdown to close immediately on selecting an enum from the list.  Users find it annoying when they have to click twice to select an value, first to select it and then another somwhere else to close the drop down.

Regards

John

Comments (3)

Answer - Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi John,

We don't have anything built in for that but you could probably achieve this by inheriting EnumEditBox and overriding the OnValueChanged method.  Call the base method first and then do this:

if (this.IsDropDownOpen)
	this.IsDropDownOpen = false; 

Does that work for you? 


Actipro Software Support

Posted 5 years ago by John Howe
Avatar

Hi,

Thnaks for that, works nicely. Would you ever consider adding this functionality to the base control?

Regards

John

Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi John,

Possibly but the thing I don't like about it right now when we try is that the value is changing on mouse down, which seems like a bit too immediate of a popup close.  Normally popups close in response to a mouse up selection.  We'd have to see if there was a way to support that instead (so it has better usability), but at the moment there isn't an easy way to do that since the embedded ListBox-based control works off mouse down for selection.


Actipro Software Support

The latest build of this product (v2019.1 build 0682) 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.