I am programatically setting the RangeEnd and RangeStart of the scroll bar and moving it dynamically as data comes in. This works fine until you manually move the scroll bar. There is a case where the data is reset and I set RangeStart back to 0 and RangeEnd to a number greater that that (0.25 for example) but the scroll bar stays where it was if the user has touched it. If the user has not touched it the scroll bar resets just fine. I am curious if in the logic there is a setting that prevents setting RangeEnd and RangeStart once the scroll bar has been scrolled manually? If so is there a way to reset it outside of recycling the object?
6 Answers, 1 is accepted
By RangeEnd and RangeStart, do you mean the HorizontalZoomRangeStart and HorizontalZoomRangeEnd (or VerticalZoomRangeStart/End) properties? If this is your case, it is possible that the manual setting of the properties and the user triggered update are in conflict. We don't have a concrete logic that does this exactly, but changing in both cases the same properties are updated, so it seems expected.
Can you please share a runnable project showing this? This way I can see what exactly happens and think of a possible resolution. Also, a video showing the issue will be useful.
Thank you for any help you can provide.
I fixed it to where you should be able to view it now.
Thank you for the video. I can see the issue, but there is no special code that prevents the manual properties update when the user touches the scroll. Can you show me the code that sets the HorizontalZoomRangeStart/End properties? Also, if you use data binding for those properties, can you use TwoWay binding mode?