I am capturing the mouse down event so that the user can not resize the thumb slider by clicking on the horizontal scale part of the thumb slider. I need to have the user be able to grab and slide the thumb when it is zoomed into a level where the user can not grab the slider. See attached document* file includes xaml i have in the designer class.
Hello,
I have been looking into your question and I assume that you use the XamZoomBart with our XamDataChart and the described behavior appears when zooming the XamDataChart. The best approach in this scenario would be to make the left and right horizontal scales invisible and to store a permanent min value for the range of the XamZoomBar. I am attaching a sample application(DataChartZoomBarSync.zip) that shows my suggestion.
Let me know, if you need any further assistance on this matter.
hiding the horizontal scales is working well, the problem i am encounting is as follows. I made the HorizontalThumbElement border 10,2. This allows me to zoom very deeply into my data and still see the collapsed thumb element. this works fine until i click on the collapsed element and drag it to a new location. when i do this it zooms back out abit. i guess i need to know how to move the slider without the range updating
Hello Pete,
Thank you for your feedback. I set the ‘BorderThickness’ property of the HorizontalThumbElement to “10,2” and I didn’t see some significant changes. Could you please modify my sample application in order to meet your scenario and provide a descriptive screenshots or video that show your issue ?
Looking forward to hearing from you.
my zoombar horizontal slider starts the size of the whole xamzoombar and shrinks as i zoom in further. the issue is that is it zooming in very deep and when you grab it and move it the code is somehow resizing the slider and thus zooming my datachart out.
I just need to be able to drag the thumb left or right through the deeply zoomed data and keep the zoom level. Its almost like the horizontal slider collapses to small and when I move it it makes itself bigger
I have edited the project to show you what i am talking about. the label will show you the difference between the min and max values. the durations in the drop down are meaningless in this example. in my project I am calculating the range for the xamzoom based on the duration and then setting the range. In the example i have attached i just used static numbers to show my issue. If you open the project you will see that the range is intially 1. if you zoom down to 30 seconds or 15 seconds by selecting the value in the drop down it will change the range correctly. Now here is the issue: after selecting the duration in the drop down click on the slider and move it to the right. Notice that the range is changed automatically. I need the range not to change.
After looking into this reuqirement and doing some research, it has been determined to be a new product idea. You can suggest new product ideas for future versions (or vote for existing ones) at <http://ideas.infragistics.com>.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for contacting Infragistics.
I am still struggling with this issue. is there any work around you can think of. It is a requirement that i zoom as deeply into the data as i am, this is causing the zoombar to size below its minimum. Is there a way i could tell that it was done moving and re run my code that programatically changes its size, in effect rezooming to the level i need to.
Hi Pete,
Thank you for your feedback. The minimum value depends on the thumb width. In the attached sample application(DataChartZoomBarSync.zip) the maximum allowed range is calculated like :
double maxAllowedRange = 20 / zoombarTrackElement.ActualWidth;
So it is not possible to zoom as deeply as i want into the data? Can you tell me the minimum value?
I have received a response from our development team and the XamZoomBar has a minimum zoom level it can present, because it is not allowed to collapse the thumbs past the point where they are grabbable. If you zoom past this point through another means (like mousewheel) and then interact with the zoombar, you will be returned to a zoom level that the zoom bar can represent. If you tried to do otherwise, the zoombar would come unsynced with the chart's state.
In order to prevent this behavior you could set a minimum zoom level on the chart to prevent it from zooming past the minimum range allowed by the XamZoomBar.