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)
521public static MouseButtonState LeftButton 532public static MouseButtonState RightButton 543public static MouseButtonState MiddleButton 554public static MouseButtonState XButton1 565public static MouseButtonState XButton2
System\Windows\Input\MouseButtonEventArgs.cs (3)
74public MouseButtonState ButtonState 78MouseButtonState state = MouseButtonState.Released;
System\Windows\Input\MouseDevice.cs (7)
78protected MouseButtonState GetButtonState(MouseButton mouseButton) 110internal abstract MouseButtonState GetButtonStateFromSystem(MouseButton mouseButton); 498public MouseButtonState LeftButton 509public MouseButtonState RightButton 520public MouseButtonState MiddleButton 531public MouseButtonState XButton1 542public MouseButtonState XButton2
System\Windows\Input\MouseEventArgs.cs (5)
79public MouseButtonState LeftButton 90public MouseButtonState RightButton 101public MouseButtonState MiddleButton 112public MouseButtonState XButton1 123public MouseButtonState XButton2
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
258Mouse.PrimaryDevice.LeftButton == MouseButtonState.Released;
System\Windows\Input\Stylus\Common\StylusDevice.cs (1)
324internal MouseButtonState GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice)
System\Windows\Input\Stylus\Common\StylusDeviceBase.cs (1)
232internal abstract MouseButtonState GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
775internal override MouseButtonState GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice)
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 (25)
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; 1953internal MouseButtonState GetMouseLeftOrRightButtonState(bool leftButton) 1972if (_mouseLeftButtonState != MouseButtonState.Pressed) 1975_mouseLeftButtonState = MouseButtonState.Pressed; 1980if (_mouseLeftButtonState != MouseButtonState.Released) 1983_mouseLeftButtonState = MouseButtonState.Released; 1988if (_mouseRightButtonState != MouseButtonState.Pressed) 1991_mouseRightButtonState = MouseButtonState.Pressed; 1996if (_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; 3671private MouseButtonState _mouseLeftButtonState = MouseButtonState.Released; 3672private MouseButtonState _mouseRightButtonState = MouseButtonState.Released;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (8)
1237internal override MouseButtonState GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice) 1672_promotedMouseState = MouseButtonState.Pressed; 1801var tempPromotedMouseState = _promotedMouseState; 1805if (tempPromotedMouseState == MouseButtonState.Pressed) 1833if (_promotedMouseState == MouseButtonState.Pressed) 1835_promotedMouseState = MouseButtonState.Released; 1866get { return _promotedMouseState == MouseButtonState.Pressed; } 1984MouseButtonState _promotedMouseState;
System\Windows\Input\Win32MouseDevice.cs (5)
47internal override MouseButtonState GetButtonStateFromSystem(MouseButton mouseButton) 49MouseButtonState mouseButtonState = MouseButtonState.Released; 75mouseButtonState = ( UnsafeNativeMethods.GetKeyState(virtualKeyCode) & 0x8000 ) != 0 ? MouseButtonState.Pressed : MouseButtonState.Released;
PresentationFramework (49)
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 (3)
57if ((Mouse.LeftButton == MouseButtonState.Pressed) || 58(Mouse.RightButton == MouseButtonState.Pressed)) 208(e.RightButton == MouseButtonState.Released))
System\Windows\Controls\Primitives\ButtonBase.cs (5)
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))) 754return InputManager.Current.PrimaryMouseDevice.LeftButton == MouseButtonState.Released;
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\MenuBase.cs (1)
169if (e.ButtonState == MouseButtonState.Released)
System\Windows\Controls\Primitives\Popup.cs (4)
1121e.LeftButton == MouseButtonState.Released && 1122e.RightButton == MouseButtonState.Released) 1144if (Mouse.LeftButton != MouseButtonState.Released || 1145Mouse.RightButton != MouseButtonState.Released)
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\RubberbandSelector.cs (1)
548if (e.LeftButton == MouseButtonState.Released)
System\windows\Documents\TextEditorMouse.cs (3)
191if (e.ButtonState == MouseButtonState.Released) 324if (e.RightButton != MouseButtonState.Released) 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) &&