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
490
Set MinValue and MaxValue to the same value?
posted

There are cases where the MinValue and the MaxValue need to be the same value. Currently when setting one to the same value as the other it automatically changes the value. If MaxValue = 0 and I set MinValue = 0 MaxValue is automatically changed to 1.

I am currently using the slider in conjunction withe the tile view to allow the user to choose the page. If there is only one page the slider should have the same Min/Max value but it is not possible.

I can see some complexity with them being the same value but in a dynamic environment how can we get around not allowing them to be the same value?

  • 138253
    Offline posted

    Hello again,

     

    After some research it turns out that this behavior is made by design. The logic for setting the Min and Max values of a slider checks to see if the slider actually has a visual length (width or height). If it does it will prevent the user from having a range of 0. The reason you can set it in the constructor or in the XAML is because it's value is set before the slider is added to the visual tree, this means that at that point the visual length IS 0, and will let you collapse the range.

  • 138253
    Offline posted

    Hello,

     

    I have logged this with development under ID: 83580 and I have also created a support ticket on your behalf: CAS-69739-WZRT9R and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://ko.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads

     

    You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://ko.infragistics.com/Membership/MySupport.aspx