How to tie command to spinner change or Enter Key down events in DoubleEditBox

Editors for WPF Forum

Posted 6 years ago by Moondance
Version: 12.2.0572
Avatar

I am using the DoubleEditBox and I would like to fire a command when the user clicks on the spinner or press the EnterKey down. These could be possibly two different commmands.

I tried to associate the command to the ValueChanged event after setting PartValueCommitTriggers="SpinnerChangeOrEnterKeyDown"

the but that is not good for me because the value can change in other ways, in different parts of the application, in which case I do not want to fire the command at all.

 

Is there a way to achieve that?

Comments (1)

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

Hello, sorry but we don't have any events for the spinner buttons built in, at least on PartEditBox.  You could probably watch for regular Button.Click events to bubble up though.  And possibly the same for watching bubbled-up KeyDown events.  That would probably let you get notified of those scenarios.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 14 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.