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