Increment and decrement of Int32EditBox

Editors for WPF Forum

Posted 1 year ago by Joey Lu
Version: 22.1.4
Avatar

Hello,

We have a scenario like clicking increment then increase 10 per-time and clicking decrement then decrease 8 per-time. The increment or decrement value does not need to be the same, how do I achieve that?

By the way, it seem that property SmallChange works, but LargeChange doesn't work. Do I use in a incorrect way or is it a bug?

Kinds regards,

Joey Lu

[Modified 1 year ago]

Comments (1)

Answer - Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

The spinner arrow buttons and keyboard arrow keys will all use the SmallChange values.  Only the keyboard PgUp and PgDn keys use the LargeChange values.  

If you want to have different values for increment and decrement, you'd have to create a class that inherits Int32EditBox and overrides the CreateIncrementalChangeRequest method.  Then based on the IncrementalChangeRequestKind passed in, update the SmallChange or LargeChange on the IncrementalChangeRequest that is returned by the base CreateIncrementalChangeRequest method call.


Actipro Software Support

The latest build of this product (v24.1.3) 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.