63 references to Pressed
PresentationCore (21)
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 (12)
1643
(_mouseLeftButtonState == MouseButtonState.
Pressed
||
1644
_mouseRightButtonState == MouseButtonState.
Pressed
||
1847
leftButtonDown = mouseDevice.LeftButton == MouseButtonState.
Pressed
;
1848
rightButtonDown = mouseDevice.RightButton == MouseButtonState.
Pressed
;
1858
leftButtonDown = mouseDevice.LeftButton == MouseButtonState.
Pressed
;
1859
rightButtonDown = mouseDevice.RightButton == MouseButtonState.
Pressed
;
1976
if (_mouseLeftButtonState != MouseButtonState.
Pressed
)
1979
_mouseLeftButtonState = MouseButtonState.
Pressed
;
1992
if (_mouseRightButtonState != MouseButtonState.
Pressed
)
1995
_mouseRightButtonState = MouseButtonState.
Pressed
;
3560
_mouseLeftButtonState = _currentStylusDevice.LeftIsActiveMouseButton ? MouseButtonState.
Pressed
: MouseButtonState.Released;
3561
_mouseRightButtonState = !_currentStylusDevice.LeftIsActiveMouseButton ? MouseButtonState.
Pressed
: MouseButtonState.Released;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (4)
1675
_promotedMouseState = MouseButtonState.
Pressed
;
1810
if (tempPromotedMouseState == MouseButtonState.
Pressed
)
1838
if (_promotedMouseState == MouseButtonState.
Pressed
)
1871
get { return _promotedMouseState == MouseButtonState.
Pressed
; }
System\Windows\Input\Win32MouseDevice.cs (1)
62
mouseButtonState = ( UnsafeNativeMethods.GetKeyState(virtualKeyCode) & 0x8000 ) != 0 ? MouseButtonState.
Pressed
: MouseButtonState.Released;
PresentationFramework (39)
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)
1807
if (Mouse.LeftButton == MouseButtonState.
Pressed
&& comboBox.HasMouseEnteredItemsHost)
1811
if (Mouse.LeftButton == MouseButtonState.
Pressed
)
1875
if (Mouse.LeftButton == MouseButtonState.
Pressed
System\Windows\Controls\ContextMenu.cs (2)
521
if (Mouse.LeftButton == MouseButtonState.
Pressed
)
525
if (Mouse.RightButton == MouseButtonState.
Pressed
)
System\Windows\Controls\DataGrid.cs (2)
1741
if (Mouse.LeftButton == MouseButtonState.
Pressed
)
6253
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
)
964
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 (2)
47
if ((Mouse.LeftButton == MouseButtonState.
Pressed
) ||
48
(Mouse.RightButton == MouseButtonState.
Pressed
))
System\Windows\Controls\Primitives\ButtonBase.cs (4)
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)))
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\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)
985
if (e.ButtonState == MouseButtonState.
Pressed
)
997
if (e.ButtonState == MouseButtonState.
Pressed
)
System\Windows\Documents\ImmComposition.cs (2)
1612
if (Mouse.LeftButton == MouseButtonState.
Pressed
)
1616
if (Mouse.RightButton == MouseButtonState.
Pressed
)
System\windows\Documents\TextEditorMouse.cs (1)
459
if (e.LeftButton != MouseButtonState.
Pressed
)
System\Windows\Documents\TextStore.cs (2)
2978
if (Mouse.LeftButton == MouseButtonState.
Pressed
)
2982
if (Mouse.RightButton == MouseButtonState.
Pressed
)
System\Windows\Window.cs (1)
245
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
) &&