I aam controlling the zoom using a dropdown. i would like to know how to disable changing the size of the zoombar thumb slider bar but still allow the user to move the bar left to right using the scroll buttons.
thanks
Also i need to tie the left and right arrows to the scroll buttons, meaning if i press the left arrow key it works the same as clicking the left scroll button on the xamzoombar
One more question, is it possible to click on a chart and know where the click occured? I want to zoom based on a list of durations i have. I want to click and zoom to the next shortest duration in my list, however i would like to do this and center to where the click occured.
Example,
I am zoomed into an hour time frame between 1 and 2 oclock. i click on the xamdatachart, my next shorter duration is 30 minutes. If i would click directly on 1:30 i would want my 30 minute duration to show from 1:15 to 1:45.
Does this make it any clearer? Any Ideas?
Hello Pete,
Thank you for the details. I understand that you are trying to get the datetime axis value on mouse click and change the zoombar’s zoom level and position accordingly. In order to do this you could use GetUnscaledValue method to get the axes values of the point. Then set minimum value of the zoombar thumb to 15 minutes earlier and maximum value to 15 minutes later by using zommbar.Range.Minimum and zoombar.Range.Maximum properties. You could find more information about getting the coordinates of the point in this forum thread where Graham Murray had provided additional information about it: http://es.infragistics.com/community/forums/p/50226/264216.aspx
I will give this a try. However i am still having problems with issue two. I need the left and right arrows to funtion like the horizontal scale arrows on the xamzoombar. I have modified your project to show my issue. run the project, drag and shrink the xamzoombar. Now click the horizontal scale left or right arrows on the bar, the bar moves and so does the chart data because it is bound. Now press the left or right arrow key, the slider moves but the graph data is like it isnt bound anymore. also the slider resizes. I need the left and right arrow keys to function exactely as the horizontal slider arrows do.
attachment
Hi,
You may try to change the Range of the XamZoomBar instead of setting the Minimun and Maximum properties separately. This will notify the chart and the WindowRectChanged event will fire. Please see the modified sample project attached. If you have any other questions, feel free to let me know.
I have been looking into your scenario and it currently this functionality is not available with XamZoombar. SmallChange and LargeChange properties could be set in order to control the steps the thumb is moved. Please note that the thumb has defined width and it is not possible to place it at a random position where the user had clicked. When user clicks on the bar the thumb is moved using the LargeChange step. If the thumb should be places precisely, the user could drag and drop the thumb at particular position.
how can i get the location of a click on the zoombar and move my zoom to that position, keeping it in sync with the datacharts. I need to be able to click on a spot on the preview data chart in my zoombar and have the slider move there and also have the datachart above show the correct information
Hello,
I have been looking into your question and I have already answered it in the thread you have created :
http://es.infragistics.com/community/forums/t/83295.aspx
In future please restrain from creating duplicate threads as this can only increase the response time.
If you need any further assistance please submit your questions to the above mentioned thread.
This has all worked wonderfully, however i now have another related issue. 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*
Thank you for your feedback Pete. I am glad that everything is working as you need now. I believe that this might be helpful for other users, too.