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)
521
public static
MouseButtonState
LeftButton
532
public static
MouseButtonState
RightButton
543
public static
MouseButtonState
MiddleButton
554
public static
MouseButtonState
XButton1
565
public static
MouseButtonState
XButton2
System\Windows\Input\MouseButtonEventArgs.cs (3)
74
public
MouseButtonState
ButtonState
78
MouseButtonState
state =
MouseButtonState
.Released;
System\Windows\Input\MouseDevice.cs (7)
78
protected
MouseButtonState
GetButtonState(MouseButton mouseButton)
110
internal abstract
MouseButtonState
GetButtonStateFromSystem(MouseButton mouseButton);
498
public
MouseButtonState
LeftButton
509
public
MouseButtonState
RightButton
520
public
MouseButtonState
MiddleButton
531
public
MouseButtonState
XButton1
542
public
MouseButtonState
XButton2
System\Windows\Input\MouseEventArgs.cs (5)
79
public
MouseButtonState
LeftButton
90
public
MouseButtonState
RightButton
101
public
MouseButtonState
MiddleButton
112
public
MouseButtonState
XButton1
123
public
MouseButtonState
XButton2
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
258
Mouse.PrimaryDevice.LeftButton ==
MouseButtonState
.Released;
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 (4)
542
leftButtonDown = mouseDevice.LeftButton ==
MouseButtonState
.Pressed;
543
rightButtonDown = mouseDevice.RightButton ==
MouseButtonState
.Pressed;
553
leftButtonDown = mouseDevice.LeftButton ==
MouseButtonState
.Pressed;
554
rightButtonDown = mouseDevice.RightButton ==
MouseButtonState
.Pressed;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (25)
1641
(_mouseLeftButtonState ==
MouseButtonState
.Pressed ||
1642
_mouseRightButtonState ==
MouseButtonState
.Pressed ||
1843
leftButtonDown = mouseDevice.LeftButton ==
MouseButtonState
.Pressed;
1844
rightButtonDown = mouseDevice.RightButton ==
MouseButtonState
.Pressed;
1854
leftButtonDown = mouseDevice.LeftButton ==
MouseButtonState
.Pressed;
1855
rightButtonDown = mouseDevice.RightButton ==
MouseButtonState
.Pressed;
1953
internal
MouseButtonState
GetMouseLeftOrRightButtonState(bool leftButton)
1972
if (_mouseLeftButtonState !=
MouseButtonState
.Pressed)
1975
_mouseLeftButtonState =
MouseButtonState
.Pressed;
1980
if (_mouseLeftButtonState !=
MouseButtonState
.Released)
1983
_mouseLeftButtonState =
MouseButtonState
.Released;
1988
if (_mouseRightButtonState !=
MouseButtonState
.Pressed)
1991
_mouseRightButtonState =
MouseButtonState
.Pressed;
1996
if (_mouseRightButtonState !=
MouseButtonState
.Released)
1999
_mouseRightButtonState =
MouseButtonState
.Released;
3541
_mouseLeftButtonState =
MouseButtonState
.Released;
3542
_mouseRightButtonState =
MouseButtonState
.Released;
3546
_mouseLeftButtonState = _currentStylusDevice.LeftIsActiveMouseButton ?
MouseButtonState
.Pressed :
MouseButtonState
.Released;
3547
_mouseRightButtonState = !_currentStylusDevice.LeftIsActiveMouseButton ?
MouseButtonState
.Pressed :
MouseButtonState
.Released;
3671
private
MouseButtonState
_mouseLeftButtonState =
MouseButtonState
.Released;
3672
private
MouseButtonState
_mouseRightButtonState =
MouseButtonState
.Released;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (8)
1237
internal override
MouseButtonState
GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice)
1672
_promotedMouseState =
MouseButtonState
.Pressed;
1801
var
tempPromotedMouseState = _promotedMouseState;
1805
if (tempPromotedMouseState ==
MouseButtonState
.Pressed)
1833
if (_promotedMouseState ==
MouseButtonState
.Pressed)
1835
_promotedMouseState =
MouseButtonState
.Released;
1866
get { return _promotedMouseState ==
MouseButtonState
.Pressed; }
1984
MouseButtonState
_promotedMouseState;
System\Windows\Input\Win32MouseDevice.cs (5)
47
internal override
MouseButtonState
GetButtonStateFromSystem(MouseButton mouseButton)
49
MouseButtonState
mouseButtonState =
MouseButtonState
.Released;
75
mouseButtonState = ( UnsafeNativeMethods.GetKeyState(virtualKeyCode) & 0x8000 ) != 0 ?
MouseButtonState
.Pressed :
MouseButtonState
.Released;
PresentationFramework (49)
MS\Internal\Ink\EditingCoordinator.cs (2)
436
bool mouseDown = (_inkCanvas.IsMouseOver && Mouse.PrimaryDevice.LeftButton ==
MouseButtonState
.Pressed);
461
else if ( _capturedMouse != null && _capturedMouse.LeftButton ==
MouseButtonState
.Pressed )
MS\Internal\Ink\SelectionEditor.cs (1)
159
if ( (args.StylusDevice == null && args.LeftButton !=
MouseButtonState
.Pressed) )
System\Windows\Controls\ComboBox.cs (3)
1811
if (Mouse.LeftButton ==
MouseButtonState
.Pressed && comboBox.HasMouseEnteredItemsHost)
1815
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
1879
if (Mouse.LeftButton ==
MouseButtonState
.Pressed
System\Windows\Controls\ContextMenu.cs (2)
528
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
532
if (Mouse.RightButton ==
MouseButtonState
.Pressed)
System\Windows\Controls\DataGrid.cs (2)
1742
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
6252
if (e.LeftButton ==
MouseButtonState
.Pressed)
System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
204
(mouseArgs.ButtonState ==
MouseButtonState
.Pressed);
System\Windows\Controls\GridViewColumnHeader.cs (2)
221
if (ClickMode == ClickMode.Hover && e.ButtonState ==
MouseButtonState
.Pressed)
237
(IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton ==
MouseButtonState
.Pressed)))
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
452
if (e.LeftButton ==
MouseButtonState
.Pressed)
504
if (e.LeftButton ==
MouseButtonState
.Pressed && _isHeaderDragging)
System\Windows\Controls\ListBox.cs (2)
557
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
968
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
System\Windows\Controls\ListBoxItem.cs (1)
307
if (parent != null && Mouse.LeftButton ==
MouseButtonState
.Pressed)
System\Windows\Controls\MenuItem.cs (1)
867
if ((Mouse.LeftButton ==
MouseButtonState
.Pressed) &&
System\Windows\Controls\PopupControlService.cs (3)
57
if ((Mouse.LeftButton ==
MouseButtonState
.Pressed) ||
58
(Mouse.RightButton ==
MouseButtonState
.Pressed))
208
(e.RightButton ==
MouseButtonState
.Released))
System\Windows\Controls\Primitives\ButtonBase.cs (5)
134
if (IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton ==
MouseButtonState
.Pressed) && !IsSpaceKeyDown)
438
if (e.ButtonState ==
MouseButtonState
.Pressed)
447
if (e.ButtonState ==
MouseButtonState
.Pressed)
519
((IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton ==
MouseButtonState
.Pressed) && !IsSpaceKeyDown)))
754
return InputManager.Current.PrimaryMouseDevice.LeftButton ==
MouseButtonState
.Released;
System\Windows\Controls\Primitives\CalendarItem.cs (1)
767
if (e.LeftButton ==
MouseButtonState
.Pressed && this._isDayPressed)
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
969
if (ClickMode == ClickMode.Hover && e.ButtonState ==
MouseButtonState
.Pressed)
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
540
if (e.LeftButton ==
MouseButtonState
.Pressed)
605
Mouse.LeftButton ==
MouseButtonState
.Pressed)
System\Windows\Controls\Primitives\MenuBase.cs (1)
169
if (e.ButtonState ==
MouseButtonState
.Released)
System\Windows\Controls\Primitives\Popup.cs (4)
1121
e.LeftButton ==
MouseButtonState
.Released &&
1122
e.RightButton ==
MouseButtonState
.Released)
1144
if (Mouse.LeftButton !=
MouseButtonState
.Released ||
1145
Mouse.RightButton !=
MouseButtonState
.Released)
System\Windows\Controls\Primitives\Thumb.cs (1)
302
if (e.MouseDevice.LeftButton ==
MouseButtonState
.Pressed)
System\Windows\Controls\VirtualizingStackPanel.cs (1)
9427
if ((Mouse.LeftButton ==
MouseButtonState
.Pressed) &&
System\Windows\Documents\Hyperlink.cs (2)
989
if (e.ButtonState ==
MouseButtonState
.Pressed)
1001
if (e.ButtonState ==
MouseButtonState
.Pressed)
System\Windows\Documents\ImmComposition.cs (2)
1633
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
1637
if (Mouse.RightButton ==
MouseButtonState
.Pressed)
System\Windows\Documents\RubberbandSelector.cs (1)
548
if (e.LeftButton ==
MouseButtonState
.Released)
System\windows\Documents\TextEditorMouse.cs (3)
191
if (e.ButtonState ==
MouseButtonState
.Released)
324
if (e.RightButton !=
MouseButtonState
.Released)
473
if (e.LeftButton !=
MouseButtonState
.Pressed)
System\Windows\Documents\TextStore.cs (2)
2987
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
2991
if (Mouse.RightButton ==
MouseButtonState
.Pressed)
System\Windows\Window.cs (1)
263
if (Mouse.LeftButton ==
MouseButtonState
.Pressed)
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (1)
319
if (e.ButtonState !=
MouseButtonState
.Pressed)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (1)
314
if (e.ButtonState ==
MouseButtonState
.Pressed)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
771
if ((Mouse.LeftButton ==
MouseButtonState
.Pressed) &&