Hello,
I've written a custom selection behavior in order to support un-selecting points when clicking on an empty (non-Data Point) area of the chart. This behavior works pretty nicely. However, as soon as the chart is zoomed or panned in any direction, the click ends up selecting a point to the upper-left of where I actually clicked. The main algorithm of the click selection is below. Is there a specific pan/zoom offset that I'm supposed to take into account?
var rect = new Rect((myMouseButtonEventArgs.GetPosition(this.Chart as IInputElement), new Size(myHitTestMargin));
if(this.Chart is RadCartesianChart)
{
var chart = this.Chart as RadCartesianChart;
var points = chart.Series.SelectMany(s => s.HitTestDataPoints(rect)); //-- this returns the wrong set of points when zoomed or panned
//-- Create a new arguments object with these points and invoke a custom event with those args
}