private void ZoomBorder_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e) { zoomBorder.Focus(); if (_projectEditor.IsRightDownAvailable()) { var p = e.GetPosition(drawableControl); _projectEditor.RightDown(p.X, p.Y); } }
private void ZoomBorder_PointerPressed(object sender, PointerPressedEventArgs e) { var p = _zoomBorder.FixInvalidPointPosition(e.GetPosition(_containerControl)); if (e.MouseButton == MouseButton.Left) { if (_projectEditor.IsLeftDownAvailable()) { _projectEditor.LeftDown(p.X, p.Y); } } if (e.MouseButton == MouseButton.Right) { if (_projectEditor.IsRightDownAvailable()) { _projectEditor.RightDown(p.X, p.Y); } } }