102 references to MouseButton
Microsoft.VisualStudio.LanguageServices (2)
PickMembers\PickMembersDialog.xaml.cs (1)
132if (e.ChangedButton == MouseButton.Left)
ValueTracking\ValueTrackingTree.xaml.cs (1)
69if (e.ChangedButton != MouseButton.Left)
PresentationCore (62)
MS\Internal\SynchronizedInputHelper.cs (4)
192case MouseButton.Left: 199case MouseButton.Right: 242case MouseButton.Left: 249case MouseButton.Right:
System\Windows\Input\Command\MouseGesture.cs (3)
190case MouseButton.Left: 199case MouseButton.Right: 208case MouseButton.Middle:
System\Windows\Input\MouseButton.cs (7)
65internal static void Validate(MouseButton button) 69case MouseButton.Left: 70case MouseButton.Middle: 71case MouseButton.Right: 72case MouseButton.XButton1: 73case MouseButton.XButton2: 76throw new System.ComponentModel.InvalidEnumArgumentException("button", (int)button, typeof(MouseButton));
System\Windows\Input\MouseButtonEventArgs.cs (9)
26MouseButton button) : base(mouse, timestamp) 51MouseButton button, 63public MouseButton ChangedButton 79case MouseButton.Left: 83case MouseButton.Right: 87case MouseButton.Middle: 91case MouseButton.XButton1: 95case MouseButton.XButton2: 129private MouseButton _button;
System\Windows\Input\MouseDevice.cs (19)
69protected MouseButtonState GetButtonState(MouseButton mouseButton) 101internal abstract MouseButtonState GetButtonStateFromSystem(MouseButton mouseButton); 493return GetButtonState(MouseButton.Left); 504return GetButtonState(MouseButton.Right); 515return GetButtonState(MouseButton.Middle); 526return GetButtonState(MouseButton.XButton1); 537return GetButtonState(MouseButton.XButton2); 1923MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Left, GetStylusDevice(e.StagingItem)); 1932MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Left, GetStylusDevice(e.StagingItem)); 1941MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Right, GetStylusDevice(e.StagingItem)); 1950MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Right, GetStylusDevice(e.StagingItem)); 1959MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Middle, GetStylusDevice(e.StagingItem)); 1968MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Middle, GetStylusDevice(e.StagingItem)); 1977MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton1, GetStylusDevice(e.StagingItem)); 1986MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton1, GetStylusDevice(e.StagingItem)); 1995MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton2, GetStylusDevice(e.StagingItem)); 2004MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton2, GetStylusDevice(e.StagingItem)); 2143internal int CalculateClickCount(MouseButton button, int timeStamp, StylusDevice stylusDevice, Point downPt) 2275private MouseButton _lastButton;
System\Windows\Input\Stylus\Common\StylusDevice.cs (1)
310internal MouseButtonState GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice)
System\Windows\Input\Stylus\Common\StylusDeviceBase.cs (1)
218internal abstract MouseButtonState GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
767internal override MouseButtonState GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice)
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (2)
559if (mouseButtonEventArgs.ChangedButton != MouseButton.Left) 566if (mouseButtonEventArgs.ChangedButton != MouseButton.Left)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (4)
1863if (mouseButtonEventArgs.ChangedButton != MouseButton.Left) 1870if (mouseButtonEventArgs.ChangedButton != MouseButton.Left) 2001_mouseLeftButtonState = mouseDevice.GetButtonStateFromSystem(MouseButton.Left); 2002_mouseRightButtonState = mouseDevice.GetButtonStateFromSystem(MouseButton.Right);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (3)
1234internal override MouseButtonState GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice) 1236if (mouseButton == MouseButton.Left) 1240if (mouseButton == MouseButton.Right)
System\Windows\Input\Win32MouseDevice.cs (6)
34internal override MouseButtonState GetButtonStateFromSystem(MouseButton mouseButton) 45case MouseButton.Left: 48case MouseButton.Right: 51case MouseButton.Middle: 54case MouseButton.XButton1: 57case MouseButton.XButton2:
System\Windows\UIElement.cs (2)
2190case MouseButton.Left: 2200case MouseButton.Right:
PresentationFramework (31)
MS\Internal\Ink\EditingCoordinator.cs (2)
694if ( mouseButtonEventArgs.ChangedButton != MouseButton.Left ) 863if ( mouseButtonEventArgs.ChangedButton != MouseButton.Left )
System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
199(mouseArgs.ChangedButton == MouseButton.Left) &&
System\Windows\Controls\ListBox.cs (5)
568if (e.ChangedButton == MouseButton.Left) 694internal void NotifyListItemClicked(ListBoxItem item, MouseButton mouseButton) 698if (mouseButton == MouseButton.Left && Mouse.Captured != this) 727if (mouseButton == MouseButton.Left) 746else if (mouseButton == MouseButton.Right) // Right mouse button
System\Windows\Controls\ListBoxItem.cs (3)
251HandleMouseButtonDown(MouseButton.Left); 266HandleMouseButtonDown(MouseButton.Right); 271private void HandleMouseButtonDown(MouseButton mouseButton)
System\Windows\Controls\Menu.cs (2)
263if (e.ChangedButton != MouseButton.Left && e.ChangedButton != MouseButton.Right)
System\Windows\Controls\MenuItem.cs (5)
1479if (e.ChangedButton == MouseButton.Left || (e.ChangedButton == MouseButton.Right && InsideContextMenu)) 1501if (e.ChangedButton == MouseButton.Left || (e.ChangedButton == MouseButton.Right && InsideContextMenu)) 1533if (e.ChangedButton != MouseButton.Right || InsideContextMenu)
System\Windows\Controls\PopupControlService.cs (1)
197if ((e.ChangedButton == MouseButton.Right) &&
System\Windows\Controls\Primitives\MenuBase.cs (5)
154if (e.ChangedButton == MouseButton.Left || e.ChangedButton == MouseButton.Right) 163if (e.ChangedButton == MouseButton.Left && IgnoreNextLeftRelease) 168else if (e.ChangedButton == MouseButton.Right && IgnoreNextRightRelease) 186if (e.ChangedButton == MouseButton.Left)
System\Windows\Controls\Slider.cs (1)
1303if(e.ChangedButton != MouseButton.Left) return;
System\windows\Documents\TextEditorContextMenu.cs (1)
121TextEditorMouse.SetCaretPositionOnMouseEvent(This, renderScopeMouseDownPoint, MouseButton.Right, 1 /* clickCount */);
System\windows\Documents\TextEditorMouse.cs (5)
62internal static void SetCaretPositionOnMouseEvent(TextEditor This, Point mouseDownPoint, MouseButton changedButton, int clickCount) 91if (changedButton == MouseButton.Right || clickCount == 1) 94if (changedButton != MouseButton.Left || !This._dragDropProcess.SourceOnMouseLeftButtonDown(mouseDownPoint)) 194if (e.ChangedButton != MouseButton.Left) 305if (e.ChangedButton != MouseButton.Left)
System.Windows.Controls.Ribbon (7)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1854e.ChangedButton != MouseButton.Right &&
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (4)
310if (e.ClickCount == 1 || e.ChangedButton == MouseButton.Right ) 325else if( e.ClickCount == 2 && e.ChangedButton == MouseButton.Left) 371if (e.ChangedButton == MouseButton.Left && this.Ribbon != null) 377else if (e.ChangedButton == MouseButton.Right)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1130if (e.ChangedButton == MouseButton.Left || e.ChangedButton == MouseButton.Right)