private void GetBitmapSeriesCollection(FrameworkElement element, MouseEventArgs e) #endif { #if __IOS__ || __ANDROID__ Image bitmapImage = (element as Border)?.Child as Image; #else Image bitmapImage = element as Image; #endif PointerPoint mousePoint = e.GetCurrentPoint(element); int position = ((bitmapImage.Source as WriteableBitmap).PixelWidth * (int)mousePoint.Position.Y + (int)mousePoint.Position.X) * 4; if (!ChartArea.isBitmapPixelsConverted) { ChartArea.ConvertBitmapPixels(); } seriesCollection = (from series in ChartArea.Series where (series.Pixels.Count > 0 && series.Pixels.Contains(position)) select series).ToList(); if (seriesCollection.Count > 0) { foreach (ChartSeries series in seriesCollection) { if (!series.IsLinear || EnableSeriesSelection) { ChangeSelectionCursor(true); } } } else { ChangeSelectionCursor(false); } }