Hi,
I'm using zoombar inside DataChart and I want to handle double click event depending which button have been clicked. Is there any way to get such event? Thanks in advance for any help! Best regards!
Hello Marcin,
I don’t think that we have any direct property to give that info ,but there must be something you can get from the event args like e.OriginalSource will give you click info, if the click was on the XamZoombar or the XamDataChart. You can do something like that:
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.
}
Thanks for answer. Now I have realized that I havn't specify my question good enough. My meaning was to catch double click event but to know OVER which button was the mouse cursor athe that moment.
Here is the API for the Zoombar and there is MouseDoubleClick,MousePreviewClick and other click public event to use.
Have a look at: https://ko.infragistics.com/help/wpf/infragisticswpf.datavisualization~infragistics.controls.xamzoombar_members