MouseDown() public method

public MouseDown ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
return void
Beispiel #1
0
        private void HistoryListView_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            _dragSurface.MouseDown(e);
            var count = SelectedPlots.Count();

            if (count == 0)
            {
                return; // Allow selection
            }

            var control = Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl);

            if (!control)
            {
                // Regular click clear selection then reselects
                HistoryListView.SelectedItems.Clear();
            }
        }
Beispiel #2
0
 private void HistoryListView_PreviewMouseDown(object sender, MouseButtonEventArgs e) => _dragSurface.MouseDown(e);
Beispiel #3
0
 private void Image_PreviewMouseDown(object sender, MouseButtonEventArgs e)
 {
     _dragSurface.MouseDown(e);
 }