void ColorTap(UITapGestureRecognizer tapGestureRecognizer) { if (tapGestureRecognizer.State != UIGestureRecognizerState.Ended) { return; } CGPoint tapLocation = tapGestureRecognizer.LocationInView(ContentView); UIView view = ContentView.HitTest(tapLocation, null); // If the user tapped on a color (identified by its tag), notify the delegate. ListColor color = (ListColor)(int)view.Tag; SelectedColor = color; ViewController.OnListColorCellDidChangeSelectedColor(SelectedColor); }