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