115 references to MouseButtonState
PresentationCore (25)
Core\CSharp\System\Windows\Input\Mouse.cs (5)
526
public static
MouseButtonState
LeftButton
537
public static
MouseButtonState
RightButton
548
public static
MouseButtonState
MiddleButton
559
public static
MouseButtonState
XButton1
570
public static
MouseButtonState
XButton2
Core\CSharp\System\Windows\Input\MouseButtonEventArgs.cs (3)
69
public
MouseButtonState
ButtonState
73
MouseButtonState
state =
MouseButtonState
.Released;
Core\CSharp\System\Windows\Input\MouseDevice.cs (7)
84
protected
MouseButtonState
GetButtonState(MouseButton mouseButton)
116
internal abstract
MouseButtonState
GetButtonStateFromSystem(MouseButton mouseButton);
567
public
MouseButtonState
LeftButton
578
public
MouseButtonState
RightButton
589
public
MouseButtonState
MiddleButton
600
public
MouseButtonState
XButton1
611
public
MouseButtonState
XButton2
Core\CSharp\System\Windows\Input\MouseEventArgs.cs (5)
81
public
MouseButtonState
LeftButton
92
public
MouseButtonState
RightButton
103
public
MouseButtonState
MiddleButton
114
public
MouseButtonState
XButton1
125
public
MouseButtonState
XButton2
Core\CSharp\System\Windows\Input\Win32MouseDevice.cs (5)
57
internal override
MouseButtonState
GetButtonStateFromSystem(MouseButton mouseButton)
59
MouseButtonState
mouseButtonState =
MouseButtonState
.Released;
85
mouseButtonState = ( UnsafeNativeMethods.GetKeyState(virtualKeyCode) & 0x8000 ) != 0 ?
MouseButtonState
.Pressed :
MouseButtonState
.Released;
PresentationFramework (49)
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (2)
448
bool mouseDown = (_inkCanvas.IsMouseOver && Mouse.PrimaryDevice.LeftButton ==
MouseButtonState
.Pressed);
473
else if ( _capturedMouse != null && _capturedMouse.LeftButton ==
MouseButtonState
.Pressed )
src\Framework\MS\Internal\Ink\SelectionEditor.cs (1)
173
if ( (args.StylusDevice == null && args.LeftButton !=
MouseButtonState
.Pressed) )
src\Framework\System\Windows\Controls\ComboBox.cs (3)
1814
if (Mouse.LeftButton ==
MouseButtonState
.Pressed && comboBox.HasMouseEnteredItemsHost)
1818
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
1882
if (Mouse.LeftButton ==
MouseButtonState
.Pressed
src\Framework\System\Windows\Controls\ContextMenu.cs (2)
532
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
536
if (Mouse.RightButton ==
MouseButtonState
.Pressed)
src\Framework\System\Windows\Controls\DataGrid.cs (2)
1746
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
6257
if (e.LeftButton ==
MouseButtonState
.Pressed)
src\Framework\System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
196
(mouseArgs.ButtonState ==
MouseButtonState
.Pressed);
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (2)
224
if (ClickMode == ClickMode.Hover && e.ButtonState ==
MouseButtonState
.Pressed)
240
(IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton ==
MouseButtonState
.Pressed)))
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
454
if (e.LeftButton ==
MouseButtonState
.Pressed)
506
if (e.LeftButton ==
MouseButtonState
.Pressed && _isHeaderDragging)
src\Framework\System\Windows\Controls\ListBox.cs (2)
512
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
925
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
src\Framework\System\Windows\Controls\ListBoxItem.cs (1)
307
if (parent != null && Mouse.LeftButton ==
MouseButtonState
.Pressed)
src\Framework\System\Windows\Controls\MenuItem.cs (1)
862
if ((Mouse.LeftButton ==
MouseButtonState
.Pressed) &&
src\Framework\System\Windows\Controls\PopupControlService.cs (3)
68
if ((Mouse.LeftButton ==
MouseButtonState
.Pressed) ||
69
(Mouse.RightButton ==
MouseButtonState
.Pressed))
188
(e.RightButton ==
MouseButtonState
.Released))
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (5)
131
if (IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton ==
MouseButtonState
.Pressed) && !IsSpaceKeyDown)
427
if (e.ButtonState ==
MouseButtonState
.Pressed)
436
if (e.ButtonState ==
MouseButtonState
.Pressed)
508
((IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton ==
MouseButtonState
.Pressed) && !IsSpaceKeyDown)))
748
return InputManager.Current.PrimaryMouseDevice.LeftButton ==
MouseButtonState
.Released;
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (1)
769
if (e.LeftButton ==
MouseButtonState
.Pressed && this._isDayPressed)
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
970
if (ClickMode == ClickMode.Hover && e.ButtonState ==
MouseButtonState
.Pressed)
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
540
if (e.LeftButton ==
MouseButtonState
.Pressed)
605
Mouse.LeftButton ==
MouseButtonState
.Pressed)
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
171
if (e.ButtonState ==
MouseButtonState
.Released)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (4)
1126
e.LeftButton ==
MouseButtonState
.Released &&
1127
e.RightButton ==
MouseButtonState
.Released)
1149
if (Mouse.LeftButton !=
MouseButtonState
.Released ||
1150
Mouse.RightButton !=
MouseButtonState
.Released)
src\Framework\System\Windows\Controls\Primitives\Thumb.cs (1)
299
if (e.MouseDevice.LeftButton ==
MouseButtonState
.Pressed)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
9273
if ((Mouse.LeftButton ==
MouseButtonState
.Pressed) &&
src\Framework\System\Windows\Documents\Hyperlink.cs (2)
1059
if (e.ButtonState ==
MouseButtonState
.Pressed)
1071
if (e.ButtonState ==
MouseButtonState
.Pressed)
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
1807
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
1811
if (Mouse.RightButton ==
MouseButtonState
.Pressed)
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
646
if (e.LeftButton ==
MouseButtonState
.Released)
src\Framework\System\windows\Documents\TextEditorMouse.cs (3)
193
if (e.ButtonState ==
MouseButtonState
.Released)
326
if (e.RightButton !=
MouseButtonState
.Released)
475
if (e.LeftButton !=
MouseButtonState
.Pressed)
src\Framework\System\Windows\Documents\TextStore.cs (2)
2895
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
2899
if (Mouse.RightButton ==
MouseButtonState
.Pressed)
src\Framework\System\Windows\Window.cs (1)
302
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
System.Activities.Core.Presentation (24)
System\Activities\Core\Presentation\CaseDesigner.xaml.cs (4)
101
if (e.LeftButton ==
MouseButtonState
.Pressed && e.ClickCount == 2)
106
else if (e.LeftButton ==
MouseButtonState
.Pressed)
112
else if (e.RightButton ==
MouseButtonState
.Pressed)
125
if (!this.ShowExpanded && e.RightButton ==
MouseButtonState
.Released)
System\Activities\Core\Presentation\CaseKeyBox.xaml.cs (1)
158
if (e.ChangedButton == MouseButton.Right && e.RightButton ==
MouseButtonState
.Released)
System\Activities\Core\Presentation\CatchDesigner.xaml.cs (4)
90
if (e.LeftButton ==
MouseButtonState
.Pressed && e.ClickCount == 2)
95
else if (e.LeftButton ==
MouseButtonState
.Pressed)
101
else if (e.RightButton ==
MouseButtonState
.Pressed)
114
if (!this.ShowExpanded && e.RightButton ==
MouseButtonState
.Released)
System\Activities\Core\Presentation\FlowchartResizeGrip.cs (1)
80
if (args.LeftButton ==
MouseButtonState
.Pressed && this.IsMouseCaptured)
System\Activities\Core\Presentation\StateContainerResizeGrip.cs (1)
128
if (args.LeftButton ==
MouseButtonState
.Pressed && this.IsMouseCaptured && this.scope != null)
System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (4)
313
if (e.LeftButton ==
MouseButtonState
.Pressed && e.ClickCount == 2)
318
else if (e.LeftButton ==
MouseButtonState
.Pressed)
323
else if (e.RightButton ==
MouseButtonState
.Pressed)
336
if (!IsDefaultCaseViewExpanded() && e.RightButton ==
MouseButtonState
.Released)
System\Activities\Core\Presentation\TryCatchDesigner.xaml.cs (9)
354
if (e.LeftButton ==
MouseButtonState
.Pressed && e.ClickCount == 2)
359
else if (e.LeftButton ==
MouseButtonState
.Pressed)
364
else if (e.RightButton ==
MouseButtonState
.Pressed)
377
if (!IsExpanded(this.ShowFinallyExpanded) && e.RightButton ==
MouseButtonState
.Released)
391
if (e.LeftButton ==
MouseButtonState
.Pressed && e.ClickCount == 2)
396
else if (e.LeftButton ==
MouseButtonState
.Pressed)
401
else if (e.RightButton ==
MouseButtonState
.Pressed)
414
if (!IsExpanded(this.ShowTryExpanded) && e.RightButton ==
MouseButtonState
.Released)
496
if (e.LeftButton ==
MouseButtonState
.Pressed)
System.Activities.Presentation (17)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\EditModeSwitchButton.cs (1)
221
if (e.LeftButton ==
MouseButtonState
.Pressed) {
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (1)
494
if (e.LeftButton ==
MouseButtonState
.Pressed)
System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (1)
375
if (args.LeftButton ==
MouseButtonState
.Released && this.lookupWindow.IsSelected)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (1)
358
if (args.LeftButton ==
MouseButtonState
.Pressed && TryGetSelectedToolboxItem(out tool, out toolWrapper))
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (1)
379
else if (e.LeftButton ==
MouseButtonState
.Pressed)
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowHeader.cs (1)
104
if (args.LeftButton ==
MouseButtonState
.Pressed && this.IsMouseCaptured)
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowResizeGrip.cs (1)
55
if (args.LeftButton ==
MouseButtonState
.Pressed && this.IsMouseCaptured)
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (1)
122
if (e.LeftButton ==
MouseButtonState
.Pressed && this.IsReadyForSelecting)
System.Activities.Presentation\System\Activities\Presentation\View\ScrollViewerPanner.cs (2)
303
return Mouse.LeftButton ==
MouseButtonState
.Released
304
&& Mouse.RightButton ==
MouseButtonState
.Released;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
633
if (e.RightButton ==
MouseButtonState
.Pressed)
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
518
if (e.RightButton ==
MouseButtonState
.Pressed)
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (5)
596
if (e.LeftButton ==
MouseButtonState
.Pressed)
615
if (e.LeftButton ==
MouseButtonState
.Pressed && e.ClickCount == 2 && this.Designer.lastClickedDesigner == this)
623
if (e.RightButton ==
MouseButtonState
.Pressed)
712
if (e.LeftButton ==
MouseButtonState
.Pressed)
749
if (e.LeftButton ==
MouseButtonState
.Pressed &&