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
Is that enought info?
Hello Pete,
Thank you for your feedback. I have been looking into your sample application and it seems that the wrong behavior when zooming the XamDataChart occurs because you set the Range Minimum to ”0” then the XamZoombar is not null in the ‘WindowRectChanged’ event. Removing the following line :
this.xmZoombar.Range.Minimum = 0;
makes the zooming works correctly.
Could you please edit my project and return, i am still seeing the range change when i grab the slider and drag it.
change time to 15 seconds, click on the actual thumb slider and drag it to the right. notice the range value in the textbox. it makes the range a longer duration. i need this to remain constant like it does when you click on the arrows at the ends of the xamzoombar
Any ideas, really stuck on this one
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.