91 references to MouseButton
PresentationCore (50)
Core\CSharp\MS\Internal\SynchronizedInputHelper.cs (4)
192
case
MouseButton
.Left:
199
case
MouseButton
.Right:
242
case
MouseButton
.Left:
249
case
MouseButton
.Right:
Core\CSharp\System\Windows\Input\Command\MouseGesture.cs (3)
196
case
MouseButton
.Left:
205
case
MouseButton
.Right:
214
case
MouseButton
.Middle:
Core\CSharp\System\Windows\Input\MouseButton.cs (7)
67
internal static void Validate(
MouseButton
button)
71
case
MouseButton
.Left:
72
case
MouseButton
.Middle:
73
case
MouseButton
.Right:
74
case
MouseButton
.XButton1:
75
case
MouseButton
.XButton2:
78
throw new System.ComponentModel.InvalidEnumArgumentException("button", (int)button, typeof(
MouseButton
));
Core\CSharp\System\Windows\Input\MouseButtonEventArgs.cs (9)
24
MouseButton
button) : base(mouse, timestamp)
49
MouseButton
button,
61
public
MouseButton
ChangedButton
77
case
MouseButton
.Left:
81
case
MouseButton
.Right:
85
case
MouseButton
.Middle:
89
case
MouseButton
.XButton1:
93
case
MouseButton
.XButton2:
127
private
MouseButton
_button;
Core\CSharp\System\Windows\Input\MouseDevice.cs (19)
84
protected MouseButtonState GetButtonState(
MouseButton
mouseButton)
116
internal abstract MouseButtonState GetButtonStateFromSystem(
MouseButton
mouseButton);
571
return GetButtonState(
MouseButton
.Left);
582
return GetButtonState(
MouseButton
.Right);
593
return GetButtonState(
MouseButton
.Middle);
604
return GetButtonState(
MouseButton
.XButton1);
615
return GetButtonState(
MouseButton
.XButton2);
2040
MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp,
MouseButton
.Left, GetStylusDevice(e.StagingItem));
2049
MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp,
MouseButton
.Left, GetStylusDevice(e.StagingItem));
2058
MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp,
MouseButton
.Right, GetStylusDevice(e.StagingItem));
2067
MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp,
MouseButton
.Right, GetStylusDevice(e.StagingItem));
2076
MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp,
MouseButton
.Middle, GetStylusDevice(e.StagingItem));
2085
MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp,
MouseButton
.Middle, GetStylusDevice(e.StagingItem));
2094
MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp,
MouseButton
.XButton1, GetStylusDevice(e.StagingItem));
2103
MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp,
MouseButton
.XButton1, GetStylusDevice(e.StagingItem));
2112
MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp,
MouseButton
.XButton2, GetStylusDevice(e.StagingItem));
2121
MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp,
MouseButton
.XButton2, GetStylusDevice(e.StagingItem));
2278
internal int CalculateClickCount(
MouseButton
button, int timeStamp, StylusDevice stylusDevice, Point downPt)
2421
private
MouseButton
_lastButton;
Core\CSharp\System\Windows\Input\Win32MouseDevice.cs (6)
57
internal override MouseButtonState GetButtonStateFromSystem(
MouseButton
mouseButton)
68
case
MouseButton
.Left:
71
case
MouseButton
.Right:
74
case
MouseButton
.Middle:
77
case
MouseButton
.XButton1:
80
case
MouseButton
.XButton2:
Core\CSharp\System\Windows\UIElement.cs (2)
2223
case
MouseButton
.Left:
2233
case
MouseButton
.Right:
PresentationFramework (31)
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (2)
734
if ( mouseButtonEventArgs.ChangedButton !=
MouseButton
.Left )
916
if ( mouseButtonEventArgs.ChangedButton !=
MouseButton
.Left )
src\Framework\System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
195
(mouseArgs.ChangedButton ==
MouseButton
.Left) &&
src\Framework\System\Windows\Controls\ListBox.cs (5)
529
if (e.ChangedButton ==
MouseButton
.Left)
655
internal void NotifyListItemClicked(ListBoxItem item,
MouseButton
mouseButton)
659
if (mouseButton ==
MouseButton
.Left && Mouse.Captured != this)
688
if (mouseButton ==
MouseButton
.Left)
707
else if (mouseButton ==
MouseButton
.Right) // Right mouse button
src\Framework\System\Windows\Controls\ListBoxItem.cs (3)
258
HandleMouseButtonDown(
MouseButton
.Left);
273
HandleMouseButtonDown(
MouseButton
.Right);
278
private void HandleMouseButtonDown(
MouseButton
mouseButton)
src\Framework\System\Windows\Controls\Menu.cs (2)
294
if (e.ChangedButton !=
MouseButton
.Left && e.ChangedButton !=
MouseButton
.Right)
src\Framework\System\Windows\Controls\MenuItem.cs (5)
1519
if (e.ChangedButton ==
MouseButton
.Left || (e.ChangedButton ==
MouseButton
.Right && InsideContextMenu))
1547
if (e.ChangedButton ==
MouseButton
.Left || (e.ChangedButton ==
MouseButton
.Right && InsideContextMenu))
1579
if (e.ChangedButton !=
MouseButton
.Right || InsideContextMenu)
src\Framework\System\Windows\Controls\PopupControlService.cs (1)
187
if ((e.ChangedButton ==
MouseButton
.Right) &&
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (5)
165
if (e.ChangedButton ==
MouseButton
.Left || e.ChangedButton ==
MouseButton
.Right)
174
if (e.ChangedButton ==
MouseButton
.Left && IgnoreNextLeftRelease)
179
else if (e.ChangedButton ==
MouseButton
.Right && IgnoreNextRightRelease)
197
if (e.ChangedButton ==
MouseButton
.Left)
src\Framework\System\Windows\Controls\Slider.cs (1)
1239
if(e.ChangedButton !=
MouseButton
.Left) return;
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
132
TextEditorMouse.SetCaretPositionOnMouseEvent(This, renderScopeMouseDownPoint,
MouseButton
.Right, 1 /* clickCount */);
src\Framework\System\windows\Documents\TextEditorMouse.cs (5)
78
internal static void SetCaretPositionOnMouseEvent(TextEditor This, Point mouseDownPoint,
MouseButton
changedButton, int clickCount)
107
if (changedButton ==
MouseButton
.Right || clickCount == 1)
110
if (changedButton !=
MouseButton
.Left || !This._dragDropProcess.SourceOnMouseLeftButtonDown(mouseDownPoint))
210
if (e.ChangedButton !=
MouseButton
.Left)
321
if (e.ChangedButton !=
MouseButton
.Left)
System.Activities.Core.Presentation (4)
System\Activities\Core\Presentation\CaseKeyBox.xaml.cs (1)
158
if (e.ChangedButton ==
MouseButton
.Right && e.RightButton == MouseButtonState.Released)
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (1)
1440
if (e.ChangedButton ==
MouseButton
.Left)
System\Activities\Core\Presentation\StateMachineConnetionPointsAdorner.cs (2)
45
if (e.ChangedButton ==
MouseButton
.Right)
54
if (e.ChangedButton ==
MouseButton
.Right)
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\View\ScrollViewerPanner.cs (5)
20
private
MouseButton
draggingMouseButton;
128
if (e.ChangedButton ==
MouseButton
.Middle)
137
case
MouseButton
.Left:
140
case
MouseButton
.Middle:
143
case
MouseButton
.Right:
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
296
if (((System.Windows.Input.MouseButtonEventArgs)(args)).ChangedButton ==
MouseButton
.Left)