Ejemplo n.º 1
0
        private void ViewPort_MouseUp(object sender, MouseButtonEventArgs e)
        {
            if (e.MiddleButton == MouseButtonState.Released)
            {
                moving = false;
            }

            if (ViewPort.Children.Contains(selectionRect))
            {
                //determine nodes to add to selection
                DetermineSelection();
            }

            ViewPort.ReleaseMouseCapture();
            ViewPort.Children.Remove(selectionRect);
        }
Ejemplo n.º 2
0
 private void ViewPort_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     ViewPort.ReleaseMouseCapture();
 }