119 references to MouseButtonState
Microsoft.VisualStudio.LanguageServices (1)
CommonControls\NewTypeDestinationSelection.xaml.cs (1)
54
&& Mouse.LeftButton ==
MouseButtonState
.Released)
PresentationCore (66)
System\Windows\Input\Mouse.cs (5)
513
public static
MouseButtonState
LeftButton
524
public static
MouseButtonState
RightButton
535
public static
MouseButtonState
MiddleButton
546
public static
MouseButtonState
XButton1
557
public static
MouseButtonState
XButton2
System\Windows\Input\MouseButtonEventArgs.cs (3)
71
public
MouseButtonState
ButtonState
75
MouseButtonState
state =
MouseButtonState
.Released;
System\Windows\Input\MouseDevice.cs (7)
69
protected
MouseButtonState
GetButtonState(MouseButton mouseButton)
101
internal abstract
MouseButtonState
GetButtonStateFromSystem(MouseButton mouseButton);
489
public
MouseButtonState
LeftButton
500
public
MouseButtonState
RightButton
511
public
MouseButtonState
MiddleButton
522
public
MouseButtonState
XButton1
533
public
MouseButtonState
XButton2
System\Windows\Input\MouseEventArgs.cs (5)
75
public
MouseButtonState
LeftButton
86
public
MouseButtonState
RightButton
97
public
MouseButtonState
MiddleButton
108
public
MouseButtonState
XButton1
119
public
MouseButtonState
XButton2
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
244
Mouse.PrimaryDevice.LeftButton ==
MouseButtonState
.Released;
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 (4)
530
leftButtonDown = mouseDevice.LeftButton ==
MouseButtonState
.Pressed;
531
rightButtonDown = mouseDevice.RightButton ==
MouseButtonState
.Pressed;
541
leftButtonDown = mouseDevice.LeftButton ==
MouseButtonState
.Pressed;
542
rightButtonDown = mouseDevice.RightButton ==
MouseButtonState
.Pressed;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (25)
1632
(_mouseLeftButtonState ==
MouseButtonState
.Pressed ||
1633
_mouseRightButtonState ==
MouseButtonState
.Pressed ||
1834
leftButtonDown = mouseDevice.LeftButton ==
MouseButtonState
.Pressed;
1835
rightButtonDown = mouseDevice.RightButton ==
MouseButtonState
.Pressed;
1845
leftButtonDown = mouseDevice.LeftButton ==
MouseButtonState
.Pressed;
1846
rightButtonDown = mouseDevice.RightButton ==
MouseButtonState
.Pressed;
1944
internal
MouseButtonState
GetMouseLeftOrRightButtonState(bool leftButton)
1963
if (_mouseLeftButtonState !=
MouseButtonState
.Pressed)
1966
_mouseLeftButtonState =
MouseButtonState
.Pressed;
1971
if (_mouseLeftButtonState !=
MouseButtonState
.Released)
1974
_mouseLeftButtonState =
MouseButtonState
.Released;
1979
if (_mouseRightButtonState !=
MouseButtonState
.Pressed)
1982
_mouseRightButtonState =
MouseButtonState
.Pressed;
1987
if (_mouseRightButtonState !=
MouseButtonState
.Released)
1990
_mouseRightButtonState =
MouseButtonState
.Released;
3532
_mouseLeftButtonState =
MouseButtonState
.Released;
3533
_mouseRightButtonState =
MouseButtonState
.Released;
3537
_mouseLeftButtonState = _currentStylusDevice.LeftIsActiveMouseButton ?
MouseButtonState
.Pressed :
MouseButtonState
.Released;
3538
_mouseRightButtonState = !_currentStylusDevice.LeftIsActiveMouseButton ?
MouseButtonState
.Pressed :
MouseButtonState
.Released;
3662
private
MouseButtonState
_mouseLeftButtonState =
MouseButtonState
.Released;
3663
private
MouseButtonState
_mouseRightButtonState =
MouseButtonState
.Released;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (8)
1234
internal override
MouseButtonState
GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice)
1669
_promotedMouseState =
MouseButtonState
.Pressed;
1798
var
tempPromotedMouseState = _promotedMouseState;
1802
if (tempPromotedMouseState ==
MouseButtonState
.Pressed)
1830
if (_promotedMouseState ==
MouseButtonState
.Pressed)
1832
_promotedMouseState =
MouseButtonState
.Released;
1863
get { return _promotedMouseState ==
MouseButtonState
.Pressed; }
1981
MouseButtonState
_promotedMouseState;
System\Windows\Input\Win32MouseDevice.cs (5)
34
internal override
MouseButtonState
GetButtonStateFromSystem(MouseButton mouseButton)
36
MouseButtonState
mouseButtonState =
MouseButtonState
.Released;
62
mouseButtonState = ( UnsafeNativeMethods.GetKeyState(virtualKeyCode) & 0x8000 ) != 0 ?
MouseButtonState
.Pressed :
MouseButtonState
.Released;
PresentationFramework (49)
MS\Internal\Ink\EditingCoordinator.cs (2)
421
bool mouseDown = (_inkCanvas.IsMouseOver && Mouse.PrimaryDevice.LeftButton ==
MouseButtonState
.Pressed);
446
else if ( _capturedMouse != null && _capturedMouse.LeftButton ==
MouseButtonState
.Pressed )
MS\Internal\Ink\SelectionEditor.cs (1)
144
if ( (args.StylusDevice == null && args.LeftButton !=
MouseButtonState
.Pressed) )
System\Windows\Controls\ComboBox.cs (3)
1801
if (Mouse.LeftButton ==
MouseButtonState
.Pressed && comboBox.HasMouseEnteredItemsHost)
1805
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
1869
if (Mouse.LeftButton ==
MouseButtonState
.Pressed
System\Windows\Controls\ContextMenu.cs (2)
520
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
524
if (Mouse.RightButton ==
MouseButtonState
.Pressed)
System\Windows\Controls\DataGrid.cs (2)
1739
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
6249
if (e.LeftButton ==
MouseButtonState
.Pressed)
System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
200
(mouseArgs.ButtonState ==
MouseButtonState
.Pressed);
System\Windows\Controls\GridViewColumnHeader.cs (2)
217
if (ClickMode == ClickMode.Hover && e.ButtonState ==
MouseButtonState
.Pressed)
233
(IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton ==
MouseButtonState
.Pressed)))
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
449
if (e.LeftButton ==
MouseButtonState
.Pressed)
501
if (e.LeftButton ==
MouseButtonState
.Pressed && _isHeaderDragging)
System\Windows\Controls\ListBox.cs (2)
551
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
962
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
System\Windows\Controls\ListBoxItem.cs (1)
300
if (parent != null && Mouse.LeftButton ==
MouseButtonState
.Pressed)
System\Windows\Controls\MenuItem.cs (1)
857
if ((Mouse.LeftButton ==
MouseButtonState
.Pressed) &&
System\Windows\Controls\PopupControlService.cs (3)
47
if ((Mouse.LeftButton ==
MouseButtonState
.Pressed) ||
48
(Mouse.RightButton ==
MouseButtonState
.Pressed))
198
(e.RightButton ==
MouseButtonState
.Released))
System\Windows\Controls\Primitives\ButtonBase.cs (5)
123
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)))
743
return InputManager.Current.PrimaryMouseDevice.LeftButton ==
MouseButtonState
.Released;
System\Windows\Controls\Primitives\CalendarItem.cs (1)
762
if (e.LeftButton ==
MouseButtonState
.Pressed && this._isDayPressed)
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
964
if (ClickMode == ClickMode.Hover && e.ButtonState ==
MouseButtonState
.Pressed)
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
535
if (e.LeftButton ==
MouseButtonState
.Pressed)
600
Mouse.LeftButton ==
MouseButtonState
.Pressed)
System\Windows\Controls\Primitives\MenuBase.cs (1)
160
if (e.ButtonState ==
MouseButtonState
.Released)
System\Windows\Controls\Primitives\Popup.cs (4)
1114
e.LeftButton ==
MouseButtonState
.Released &&
1115
e.RightButton ==
MouseButtonState
.Released)
1137
if (Mouse.LeftButton !=
MouseButtonState
.Released ||
1138
Mouse.RightButton !=
MouseButtonState
.Released)
System\Windows\Controls\Primitives\Thumb.cs (1)
288
if (e.MouseDevice.LeftButton ==
MouseButtonState
.Pressed)
System\Windows\Controls\VirtualizingStackPanel.cs (1)
9422
if ((Mouse.LeftButton ==
MouseButtonState
.Pressed) &&
System\Windows\Documents\Hyperlink.cs (2)
983
if (e.ButtonState ==
MouseButtonState
.Pressed)
995
if (e.ButtonState ==
MouseButtonState
.Pressed)
System\Windows\Documents\ImmComposition.cs (2)
1625
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
1629
if (Mouse.RightButton ==
MouseButtonState
.Pressed)
System\Windows\Documents\RubberbandSelector.cs (1)
538
if (e.LeftButton ==
MouseButtonState
.Released)
System\windows\Documents\TextEditorMouse.cs (3)
177
if (e.ButtonState ==
MouseButtonState
.Released)
310
if (e.RightButton !=
MouseButtonState
.Released)
459
if (e.LeftButton !=
MouseButtonState
.Pressed)
System\Windows\Documents\TextStore.cs (2)
2976
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
2980
if (Mouse.RightButton ==
MouseButtonState
.Pressed)
System\Windows\Window.cs (1)
250
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (1)
317
if (e.ButtonState !=
MouseButtonState
.Pressed)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (1)
312
if (e.ButtonState ==
MouseButtonState
.Pressed)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
768
if ((Mouse.LeftButton ==
MouseButtonState
.Pressed) &&