Increment and decrement of Int32EditBox

Editors for WPF Forum

Posted 9 months 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 9 months ago]

Comments (1)

Answer - Posted 9 months 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.2) was released 8 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.