Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
714
Invalid slider values and thumb-tick alignment problem
posted

Hi,

I've configured a slider in order to select a value between ZERO and ONE which can have maximum 2-digit after ZERO.  I've attached a sample project and a video in order to explain my problems:

1. I didn't change the original thumb style but still the ticks and the thumb's arrow doesn't align correctly. There is a slight difference. May be it's because of my tick configuration. Can you check it out?

2. Second problem is a weird one: As you can see in the video I bind a TextBox to the thumbs Value property in order to show the current value. But after 0.8 it starts to show values like 0.8400000000000001.

Can you check out the sample project? May be my configurations are wrong.

Thanks in advance

SliderError.zip
Parents
No Data
Reply
  • 12773
    posted

    Hello,

    Our development team investigate this issue and found that the precision in .NET for double numbers is the reason to see such values. As solution I can suggest you to use rounding to overcome this issue.

    Let me know if you have any further questions.

    Sincerely,
    Dimi
    Developer Support Engineer
    Infragistics, Inc.

Children
No Data