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
140
Xamdatachart Zoombar clickability
posted

Is there a way to disable the ability to add values to a xamdatachart via the zoombar.  For example, I am using a double click event to add a point to the xamdatachart; however, if the user double clicks on the zoombar, it adds a point to the chart.  Is it possible to disable this on the zoombar?

Parents
No Data
Reply
  • 34510
    Verified Answer
    Offline posted

    Hi Keicha,

    Are you using the MouseDoubleClick event?  If so, the e.OriginalSource will tell you whether the click was on the XamZoombar or the XamDataChart.  Here is an example piece of code you can use to determine which. 

    DependencyObject originalSource = e.OriginalSource as DependencyObject;
    if (originalSource != null)
    {
        XamZoombar zoombar = (XamZoombar)Infragistics.Windows.Utilities.GetAncestorFromType(originalSource, typeof(XamZoombar), true);
        if (zoombar != null)
        {
            // zoombar was double clicked on.
        }
    }

     

Children