private void MouseDown(Point pixelPos, Point axisPos) { Annotation annotation = null; CurrentAnnotation = null; IsDragStarted = false; var annotations = Annotations.Where(axis => axis.CoordinateUnit == CoordinateUnit.Axis).ToList(); if (annotations.Any()) { annotation = GetSelectedAnnotation(annotations, axisPos); } annotations = Annotations.Where(pixel => pixel.CoordinateUnit == CoordinateUnit.Pixel).ToList(); if (annotations.Any() && annotation == null) { annotation = GetSelectedAnnotation(annotations, pixelPos); } SelectedAnnotation = annotation; RaiseSelectionChanged(); // Raise the Selected/UnSelected event }