private async Task SelectGraphicAsync(Point point) { // Clear previous selection if (_selection != null) { _selection.Unselect(); _selection.SetVisible(); } _selection = null; // Find first graphic from the overlays foreach (var overlay in MySceneView.GraphicsOverlays) { var foundGraphic = (await MySceneView.IdentifyGraphicsOverlayAsync(overlay, point, 2, false, 1)).Graphics.FirstOrDefault(); if (foundGraphic != null) { _selection = new GraphicSelection(foundGraphic, overlay); _selection.Select(); break; } } EditButton.IsEnabled = _selection == null ? false : true; }