internal void UpdateSelection(ref Rectangle selectionRect) { // Find controls to select for (int i = 0; i < Children.Count; i++) { if (Children[i] is KeyframePoint p) { p.IsSelected = p.Bounds.Intersects(ref selectionRect); } } _editor.UpdateTangents(); }
private void UpdateSelectionRectangle() { var selectionRect = Rectangle.FromPoints(_leftMouseDownPos, _mousePos); // Find controls to select for (int i = 0; i < Children.Count; i++) { if (Children[i] is KeyframePoint p) { p.IsSelected = p.Bounds.Intersects(ref selectionRect); } } _editor.UpdateTangents(); }