We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Range Adorner

I have enabled the Range Adorner and setting the property RangeAdornerBackground with my color, but in runtime when i change the value the Range Adorner becomes hidden.

I need the behavior as per this documentation

https://www.syncfusion.com/wpf-controls/numericupdown

Thank you


1 Reply

GT Gokul Thanudhas Syncfusion Team March 6, 2023 02:50 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon