63 references to Pressed
PresentationCore (21)
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (4)
542leftButtonDown = mouseDevice.LeftButton == MouseButtonState.Pressed; 543rightButtonDown = mouseDevice.RightButton == MouseButtonState.Pressed; 553leftButtonDown = mouseDevice.LeftButton == MouseButtonState.Pressed; 554rightButtonDown = mouseDevice.RightButton == MouseButtonState.Pressed;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (12)
1641(_mouseLeftButtonState == MouseButtonState.Pressed || 1642_mouseRightButtonState == MouseButtonState.Pressed || 1843leftButtonDown = mouseDevice.LeftButton == MouseButtonState.Pressed; 1844rightButtonDown = mouseDevice.RightButton == MouseButtonState.Pressed; 1854leftButtonDown = mouseDevice.LeftButton == MouseButtonState.Pressed; 1855rightButtonDown = mouseDevice.RightButton == MouseButtonState.Pressed; 1972if (_mouseLeftButtonState != MouseButtonState.Pressed) 1975_mouseLeftButtonState = MouseButtonState.Pressed; 1988if (_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; 1805if (tempPromotedMouseState == MouseButtonState.Pressed) 1833if (_promotedMouseState == MouseButtonState.Pressed) 1866get { return _promotedMouseState == MouseButtonState.Pressed; }
System\Windows\Input\Win32MouseDevice.cs (1)
75mouseButtonState = ( UnsafeNativeMethods.GetKeyState(virtualKeyCode) & 0x8000 ) != 0 ? MouseButtonState.Pressed : MouseButtonState.Released;
PresentationFramework (39)
MS\Internal\Ink\EditingCoordinator.cs (2)
436bool mouseDown = (_inkCanvas.IsMouseOver && Mouse.PrimaryDevice.LeftButton == MouseButtonState.Pressed); 461else if ( _capturedMouse != null && _capturedMouse.LeftButton == MouseButtonState.Pressed )
MS\Internal\Ink\SelectionEditor.cs (1)
159if ( (args.StylusDevice == null && args.LeftButton != MouseButtonState.Pressed) )
System\Windows\Controls\ComboBox.cs (3)
1811if (Mouse.LeftButton == MouseButtonState.Pressed && comboBox.HasMouseEnteredItemsHost) 1815if (Mouse.LeftButton == MouseButtonState.Pressed) 1879if (Mouse.LeftButton == MouseButtonState.Pressed
System\Windows\Controls\ContextMenu.cs (2)
528if (Mouse.LeftButton == MouseButtonState.Pressed) 532if (Mouse.RightButton == MouseButtonState.Pressed)
System\Windows\Controls\DataGrid.cs (2)
1742if (Mouse.LeftButton == MouseButtonState.Pressed) 6252if (e.LeftButton == MouseButtonState.Pressed)
System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
204(mouseArgs.ButtonState == MouseButtonState.Pressed);
System\Windows\Controls\GridViewColumnHeader.cs (2)
221if (ClickMode == ClickMode.Hover && e.ButtonState == MouseButtonState.Pressed) 237(IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton == MouseButtonState.Pressed)))
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
452if (e.LeftButton == MouseButtonState.Pressed) 504if (e.LeftButton == MouseButtonState.Pressed && _isHeaderDragging)
System\Windows\Controls\ListBox.cs (2)
557if (Mouse.LeftButton == MouseButtonState.Pressed) 968if (Mouse.LeftButton == MouseButtonState.Pressed)
System\Windows\Controls\ListBoxItem.cs (1)
307if (parent != null && Mouse.LeftButton == MouseButtonState.Pressed)
System\Windows\Controls\MenuItem.cs (1)
867if ((Mouse.LeftButton == MouseButtonState.Pressed) &&
System\Windows\Controls\PopupControlService.cs (2)
57if ((Mouse.LeftButton == MouseButtonState.Pressed) || 58(Mouse.RightButton == MouseButtonState.Pressed))
System\Windows\Controls\Primitives\ButtonBase.cs (4)
134if (IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton == MouseButtonState.Pressed) && !IsSpaceKeyDown) 438if (e.ButtonState == MouseButtonState.Pressed) 447if (e.ButtonState == MouseButtonState.Pressed) 519((IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton == MouseButtonState.Pressed) && !IsSpaceKeyDown)))
System\Windows\Controls\Primitives\CalendarItem.cs (1)
767if (e.LeftButton == MouseButtonState.Pressed && this._isDayPressed)
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
969if (ClickMode == ClickMode.Hover && e.ButtonState == MouseButtonState.Pressed)
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
540if (e.LeftButton == MouseButtonState.Pressed) 605Mouse.LeftButton == MouseButtonState.Pressed)
System\Windows\Controls\Primitives\Thumb.cs (1)
302if (e.MouseDevice.LeftButton == MouseButtonState.Pressed)
System\Windows\Controls\VirtualizingStackPanel.cs (1)
9427if ((Mouse.LeftButton == MouseButtonState.Pressed) &&
System\Windows\Documents\Hyperlink.cs (2)
989if (e.ButtonState == MouseButtonState.Pressed) 1001if (e.ButtonState == MouseButtonState.Pressed)
System\Windows\Documents\ImmComposition.cs (2)
1633if (Mouse.LeftButton == MouseButtonState.Pressed) 1637if (Mouse.RightButton == MouseButtonState.Pressed)
System\windows\Documents\TextEditorMouse.cs (1)
473if (e.LeftButton != MouseButtonState.Pressed)
System\Windows\Documents\TextStore.cs (2)
2987if (Mouse.LeftButton == MouseButtonState.Pressed) 2991if (Mouse.RightButton == MouseButtonState.Pressed)
System\Windows\Window.cs (1)
263if (Mouse.LeftButton == MouseButtonState.Pressed)
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (1)
319if (e.ButtonState != MouseButtonState.Pressed)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (1)
314if (e.ButtonState == MouseButtonState.Pressed)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
771if ((Mouse.LeftButton == MouseButtonState.Pressed) &&