63 references to Pressed
PresentationCore (21)
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 (12)
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
;
1972
if (_mouseLeftButtonState != MouseButtonState.
Pressed
)
1975
_mouseLeftButtonState = MouseButtonState.
Pressed
;
1988
if (_mouseRightButtonState != MouseButtonState.
Pressed
)
1991
_mouseRightButtonState = MouseButtonState.
Pressed
;
3546
_mouseLeftButtonState = _currentStylusDevice.LeftIsActiveMouseButton ? MouseButtonState.
Pressed
: MouseButtonState.Released;
3547
_mouseRightButtonState = !_currentStylusDevice.LeftIsActiveMouseButton ? MouseButtonState.
Pressed
: MouseButtonState.Released;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (4)
1672
_promotedMouseState = MouseButtonState.
Pressed
;
1805
if (tempPromotedMouseState == MouseButtonState.
Pressed
)
1833
if (_promotedMouseState == MouseButtonState.
Pressed
)
1866
get { return _promotedMouseState == MouseButtonState.
Pressed
; }
System\Windows\Input\Win32MouseDevice.cs (1)
75
mouseButtonState = ( UnsafeNativeMethods.GetKeyState(virtualKeyCode) & 0x8000 ) != 0 ? MouseButtonState.
Pressed
: MouseButtonState.Released;
PresentationFramework (39)
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 (2)
57
if ((Mouse.LeftButton == MouseButtonState.
Pressed
) ||
58
(Mouse.RightButton == MouseButtonState.
Pressed
))
System\Windows\Controls\Primitives\ButtonBase.cs (4)
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)))
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\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\TextEditorMouse.cs (1)
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
) &&