public override void MouseUp(object sender, MouseButtonEventArgs e) { _selectionStart = _selectionEnd = null; Apply(); UpdateSelectionPreview(); }
public override void MouseDown(object sender, MouseButtonEventArgs e) { SegmentSide segmentSide = ProcessEventArg(sender, e); if (segmentSide == null) return; _selectionStart = _selectionEnd = segmentSide; UpdateSelectionPreview(); }
public override void MouseMove(object sender, MouseEventArgs e) { SegmentSide segmentSide = ProcessEventArg(sender, e); if (segmentSide == null) return; if (_selectionStart != null && e.LeftButton == MouseButtonState.Pressed) { _selectionEnd = segmentSide; UpdateSelectionPreview(); } else { _selectionStart = _selectionEnd = segmentSide; UpdateSelectionPreview(); } }
public override void ClearPreview() { if (_selectionStart != null) { _selectionStart = _selectionEnd = null; UpdateSelectionPreview(); } }