102 references to MouseButton
Microsoft.VisualStudio.LanguageServices (2)
PickMembers\PickMembersDialog.xaml.cs (1)
131if (e.ChangedButton == MouseButton.Left)
ValueTracking\ValueTrackingTree.xaml.cs (1)
69if (e.ChangedButton != MouseButton.Left)
PresentationCore (62)
MS\Internal\SynchronizedInputHelper.cs (4)
196case MouseButton.Left: 203case MouseButton.Right: 246case MouseButton.Left: 253case MouseButton.Right:
System\Windows\Input\Command\MouseGesture.cs (3)
193case MouseButton.Left: 202case MouseButton.Right: 211case MouseButton.Middle:
System\Windows\Input\MouseButton.cs (7)
68internal static void Validate(MouseButton button) 72case MouseButton.Left: 73case MouseButton.Middle: 74case MouseButton.Right: 75case MouseButton.XButton1: 76case MouseButton.XButton2: 79throw new System.ComponentModel.InvalidEnumArgumentException("button", (int)button, typeof(MouseButton));
System\Windows\Input\MouseButtonEventArgs.cs (9)
29MouseButton button) : base(mouse, timestamp) 54MouseButton button, 66public MouseButton ChangedButton 82case MouseButton.Left: 86case MouseButton.Right: 90case MouseButton.Middle: 94case MouseButton.XButton1: 98case MouseButton.XButton2: 132private MouseButton _button;
System\Windows\Input\MouseDevice.cs (19)
78protected MouseButtonState GetButtonState(MouseButton mouseButton) 110internal abstract MouseButtonState GetButtonStateFromSystem(MouseButton mouseButton); 502return GetButtonState(MouseButton.Left); 513return GetButtonState(MouseButton.Right); 524return GetButtonState(MouseButton.Middle); 535return GetButtonState(MouseButton.XButton1); 546return GetButtonState(MouseButton.XButton2); 1932MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Left, GetStylusDevice(e.StagingItem)); 1941MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Left, GetStylusDevice(e.StagingItem)); 1950MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Right, GetStylusDevice(e.StagingItem)); 1959MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Right, GetStylusDevice(e.StagingItem)); 1968MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Middle, GetStylusDevice(e.StagingItem)); 1977MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Middle, GetStylusDevice(e.StagingItem)); 1986MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton1, GetStylusDevice(e.StagingItem)); 1995MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton1, GetStylusDevice(e.StagingItem)); 2004MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton2, GetStylusDevice(e.StagingItem)); 2013MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton2, GetStylusDevice(e.StagingItem)); 2152internal int CalculateClickCount(MouseButton button, int timeStamp, StylusDevice stylusDevice, Point downPt) 2284private MouseButton _lastButton;
System\Windows\Input\Stylus\Common\StylusDevice.cs (1)
324internal MouseButtonState GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice)
System\Windows\Input\Stylus\Common\StylusDeviceBase.cs (1)
232internal abstract MouseButtonState GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
775internal override MouseButtonState GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice)
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (2)
571if (mouseButtonEventArgs.ChangedButton != MouseButton.Left) 578if (mouseButtonEventArgs.ChangedButton != MouseButton.Left)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (4)
1872if (mouseButtonEventArgs.ChangedButton != MouseButton.Left) 1879if (mouseButtonEventArgs.ChangedButton != MouseButton.Left) 2010_mouseLeftButtonState = mouseDevice.GetButtonStateFromSystem(MouseButton.Left); 2011_mouseRightButtonState = mouseDevice.GetButtonStateFromSystem(MouseButton.Right);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (3)
1237internal override MouseButtonState GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice) 1239if (mouseButton == MouseButton.Left) 1243if (mouseButton == MouseButton.Right)
System\Windows\Input\Win32MouseDevice.cs (6)
47internal override MouseButtonState GetButtonStateFromSystem(MouseButton mouseButton) 58case MouseButton.Left: 61case MouseButton.Right: 64case MouseButton.Middle: 67case MouseButton.XButton1: 70case MouseButton.XButton2:
System\Windows\UIElement.cs (2)
2195case MouseButton.Left: 2205case MouseButton.Right:
PresentationFramework (31)
MS\Internal\Ink\EditingCoordinator.cs (2)
709if ( mouseButtonEventArgs.ChangedButton != MouseButton.Left ) 878if ( mouseButtonEventArgs.ChangedButton != MouseButton.Left )
System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
203(mouseArgs.ChangedButton == MouseButton.Left) &&
System\Windows\Controls\ListBox.cs (5)
574if (e.ChangedButton == MouseButton.Left) 700internal void NotifyListItemClicked(ListBoxItem item, MouseButton mouseButton) 704if (mouseButton == MouseButton.Left && Mouse.Captured != this) 733if (mouseButton == MouseButton.Left) 752else if (mouseButton == MouseButton.Right) // Right mouse button
System\Windows\Controls\ListBoxItem.cs (3)
258HandleMouseButtonDown(MouseButton.Left); 273HandleMouseButtonDown(MouseButton.Right); 278private void HandleMouseButtonDown(MouseButton mouseButton)
System\Windows\Controls\Menu.cs (2)
273if (e.ChangedButton != MouseButton.Left && e.ChangedButton != MouseButton.Right)
System\Windows\Controls\MenuItem.cs (5)
1489if (e.ChangedButton == MouseButton.Left || (e.ChangedButton == MouseButton.Right && InsideContextMenu)) 1511if (e.ChangedButton == MouseButton.Left || (e.ChangedButton == MouseButton.Right && InsideContextMenu)) 1543if (e.ChangedButton != MouseButton.Right || InsideContextMenu)
System\Windows\Controls\PopupControlService.cs (1)
207if ((e.ChangedButton == MouseButton.Right) &&
System\Windows\Controls\Primitives\MenuBase.cs (5)
163if (e.ChangedButton == MouseButton.Left || e.ChangedButton == MouseButton.Right) 172if (e.ChangedButton == MouseButton.Left && IgnoreNextLeftRelease) 177else if (e.ChangedButton == MouseButton.Right && IgnoreNextRightRelease) 195if (e.ChangedButton == MouseButton.Left)
System\Windows\Controls\Slider.cs (1)
1314if(e.ChangedButton != MouseButton.Left) return;
System\windows\Documents\TextEditorContextMenu.cs (1)
123TextEditorMouse.SetCaretPositionOnMouseEvent(This, renderScopeMouseDownPoint, MouseButton.Right, 1 /* clickCount */);
System\windows\Documents\TextEditorMouse.cs (5)
76internal static void SetCaretPositionOnMouseEvent(TextEditor This, Point mouseDownPoint, MouseButton changedButton, int clickCount) 105if (changedButton == MouseButton.Right || clickCount == 1) 108if (changedButton != MouseButton.Left || !This._dragDropProcess.SourceOnMouseLeftButtonDown(mouseDownPoint)) 208if (e.ChangedButton != MouseButton.Left) 319if (e.ChangedButton != MouseButton.Left)
System.Windows.Controls.Ribbon (7)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1857e.ChangedButton != MouseButton.Right &&
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (4)
312if (e.ClickCount == 1 || e.ChangedButton == MouseButton.Right ) 327else if( e.ClickCount == 2 && e.ChangedButton == MouseButton.Left) 373if (e.ChangedButton == MouseButton.Left && this.Ribbon != null) 379else if (e.ChangedButton == MouseButton.Right)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1135if (e.ChangedButton == MouseButton.Left || e.ChangedButton == MouseButton.Right)