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