Beispiel #1
0
 private void ZoomBorder_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     zoomBorder.Focus();
     if (_projectEditor.IsLeftDownAvailable())
     {
         var p = e.GetPosition(drawableControl);
         _projectEditor.LeftDown(p.X, p.Y);
     }
 }
Beispiel #2
0
        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);
                }
            }
        }