In the earlier version, the value can be changed when scrolling when the control is not in a focused state. As this leads to some accidental change in
value, now value can be changed only when the control is in a focused state. When
control is in focused state, control will go to edit mode and the range adorner
will not be visible.
To change value through scrolling without being focused
(when range adorner is visible), please handle mouse wheel event as shown
below. We have also created a sample based on your requirement, please refer
the sample for your reference.
CodeSnippets
private void UpDown_MouseWheel(object sender,
MouseWheelEventArgs e)
{
if (e.Delta > 0)
{
updown.Value++;
}
else
--updown.Value;
}
Attachment:
Updown_3460baf9.zip