115 references to MouseButtonState
PresentationCore (25)
Core\CSharp\System\Windows\Input\Mouse.cs (5)
526public static MouseButtonState LeftButton 537public static MouseButtonState RightButton 548public static MouseButtonState MiddleButton 559public static MouseButtonState XButton1 570public static MouseButtonState XButton2
Core\CSharp\System\Windows\Input\MouseButtonEventArgs.cs (3)
69public MouseButtonState ButtonState 73MouseButtonState state = MouseButtonState.Released;
Core\CSharp\System\Windows\Input\MouseDevice.cs (7)
84protected MouseButtonState GetButtonState(MouseButton mouseButton) 116internal abstract MouseButtonState GetButtonStateFromSystem(MouseButton mouseButton); 567public MouseButtonState LeftButton 578public MouseButtonState RightButton 589public MouseButtonState MiddleButton 600public MouseButtonState XButton1 611public MouseButtonState XButton2
Core\CSharp\System\Windows\Input\MouseEventArgs.cs (5)
81public MouseButtonState LeftButton 92public MouseButtonState RightButton 103public MouseButtonState MiddleButton 114public MouseButtonState XButton1 125public MouseButtonState XButton2
Core\CSharp\System\Windows\Input\Win32MouseDevice.cs (5)
57internal override MouseButtonState GetButtonStateFromSystem(MouseButton mouseButton) 59MouseButtonState mouseButtonState = MouseButtonState.Released; 85mouseButtonState = ( UnsafeNativeMethods.GetKeyState(virtualKeyCode) & 0x8000 ) != 0 ? MouseButtonState.Pressed : MouseButtonState.Released;
PresentationFramework (49)
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (2)
448bool mouseDown = (_inkCanvas.IsMouseOver && Mouse.PrimaryDevice.LeftButton == MouseButtonState.Pressed); 473else if ( _capturedMouse != null && _capturedMouse.LeftButton == MouseButtonState.Pressed )
src\Framework\MS\Internal\Ink\SelectionEditor.cs (1)
173if ( (args.StylusDevice == null && args.LeftButton != MouseButtonState.Pressed) )
src\Framework\System\Windows\Controls\ComboBox.cs (3)
1814if (Mouse.LeftButton == MouseButtonState.Pressed && comboBox.HasMouseEnteredItemsHost) 1818if (Mouse.LeftButton == MouseButtonState.Pressed) 1882if (Mouse.LeftButton == MouseButtonState.Pressed
src\Framework\System\Windows\Controls\ContextMenu.cs (2)
532if (Mouse.LeftButton == MouseButtonState.Pressed) 536if (Mouse.RightButton == MouseButtonState.Pressed)
src\Framework\System\Windows\Controls\DataGrid.cs (2)
1746if (Mouse.LeftButton == MouseButtonState.Pressed) 6257if (e.LeftButton == MouseButtonState.Pressed)
src\Framework\System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
196(mouseArgs.ButtonState == MouseButtonState.Pressed);
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (2)
224if (ClickMode == ClickMode.Hover && e.ButtonState == MouseButtonState.Pressed) 240(IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton == MouseButtonState.Pressed)))
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
454if (e.LeftButton == MouseButtonState.Pressed) 506if (e.LeftButton == MouseButtonState.Pressed && _isHeaderDragging)
src\Framework\System\Windows\Controls\ListBox.cs (2)
512if (Mouse.LeftButton == MouseButtonState.Pressed) 925if (Mouse.LeftButton == MouseButtonState.Pressed)
src\Framework\System\Windows\Controls\ListBoxItem.cs (1)
307if (parent != null && Mouse.LeftButton == MouseButtonState.Pressed)
src\Framework\System\Windows\Controls\MenuItem.cs (1)
862if ((Mouse.LeftButton == MouseButtonState.Pressed) &&
src\Framework\System\Windows\Controls\PopupControlService.cs (3)
68if ((Mouse.LeftButton == MouseButtonState.Pressed) || 69(Mouse.RightButton == MouseButtonState.Pressed)) 188(e.RightButton == MouseButtonState.Released))
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (5)
131if (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))) 748return InputManager.Current.PrimaryMouseDevice.LeftButton == MouseButtonState.Released;
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (1)
769if (e.LeftButton == MouseButtonState.Pressed && this._isDayPressed)
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
970if (ClickMode == ClickMode.Hover && e.ButtonState == MouseButtonState.Pressed)
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
540if (e.LeftButton == MouseButtonState.Pressed) 605Mouse.LeftButton == MouseButtonState.Pressed)
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
171if (e.ButtonState == MouseButtonState.Released)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (4)
1126e.LeftButton == MouseButtonState.Released && 1127e.RightButton == MouseButtonState.Released) 1149if (Mouse.LeftButton != MouseButtonState.Released || 1150Mouse.RightButton != MouseButtonState.Released)
src\Framework\System\Windows\Controls\Primitives\Thumb.cs (1)
299if (e.MouseDevice.LeftButton == MouseButtonState.Pressed)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
9273if ((Mouse.LeftButton == MouseButtonState.Pressed) &&
src\Framework\System\Windows\Documents\Hyperlink.cs (2)
1059if (e.ButtonState == MouseButtonState.Pressed) 1071if (e.ButtonState == MouseButtonState.Pressed)
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
1807if (Mouse.LeftButton == MouseButtonState.Pressed) 1811if (Mouse.RightButton == MouseButtonState.Pressed)
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
646if (e.LeftButton == MouseButtonState.Released)
src\Framework\System\windows\Documents\TextEditorMouse.cs (3)
193if (e.ButtonState == MouseButtonState.Released) 326if (e.RightButton != MouseButtonState.Released) 475if (e.LeftButton != MouseButtonState.Pressed)
src\Framework\System\Windows\Documents\TextStore.cs (2)
2895if (Mouse.LeftButton == MouseButtonState.Pressed) 2899if (Mouse.RightButton == MouseButtonState.Pressed)
src\Framework\System\Windows\Window.cs (1)
302if (Mouse.LeftButton == MouseButtonState.Pressed)
System.Activities.Core.Presentation (24)
System\Activities\Core\Presentation\CaseDesigner.xaml.cs (4)
101if (e.LeftButton == MouseButtonState.Pressed && e.ClickCount == 2) 106else if (e.LeftButton == MouseButtonState.Pressed) 112else if (e.RightButton == MouseButtonState.Pressed) 125if (!this.ShowExpanded && e.RightButton == MouseButtonState.Released)
System\Activities\Core\Presentation\CaseKeyBox.xaml.cs (1)
158if (e.ChangedButton == MouseButton.Right && e.RightButton == MouseButtonState.Released)
System\Activities\Core\Presentation\CatchDesigner.xaml.cs (4)
90if (e.LeftButton == MouseButtonState.Pressed && e.ClickCount == 2) 95else if (e.LeftButton == MouseButtonState.Pressed) 101else if (e.RightButton == MouseButtonState.Pressed) 114if (!this.ShowExpanded && e.RightButton == MouseButtonState.Released)
System\Activities\Core\Presentation\FlowchartResizeGrip.cs (1)
80if (args.LeftButton == MouseButtonState.Pressed && this.IsMouseCaptured)
System\Activities\Core\Presentation\StateContainerResizeGrip.cs (1)
128if (args.LeftButton == MouseButtonState.Pressed && this.IsMouseCaptured && this.scope != null)
System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (4)
313if (e.LeftButton == MouseButtonState.Pressed && e.ClickCount == 2) 318else if (e.LeftButton == MouseButtonState.Pressed) 323else if (e.RightButton == MouseButtonState.Pressed) 336if (!IsDefaultCaseViewExpanded() && e.RightButton == MouseButtonState.Released)
System\Activities\Core\Presentation\TryCatchDesigner.xaml.cs (9)
354if (e.LeftButton == MouseButtonState.Pressed && e.ClickCount == 2) 359else if (e.LeftButton == MouseButtonState.Pressed) 364else if (e.RightButton == MouseButtonState.Pressed) 377if (!IsExpanded(this.ShowFinallyExpanded) && e.RightButton == MouseButtonState.Released) 391if (e.LeftButton == MouseButtonState.Pressed && e.ClickCount == 2) 396else if (e.LeftButton == MouseButtonState.Pressed) 401else if (e.RightButton == MouseButtonState.Pressed) 414if (!IsExpanded(this.ShowTryExpanded) && e.RightButton == MouseButtonState.Released) 496if (e.LeftButton == MouseButtonState.Pressed)
System.Activities.Presentation (17)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\EditModeSwitchButton.cs (1)
221if (e.LeftButton == MouseButtonState.Pressed) {
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (1)
494if (e.LeftButton == MouseButtonState.Pressed)
System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (1)
375if (args.LeftButton == MouseButtonState.Released && this.lookupWindow.IsSelected)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (1)
358if (args.LeftButton == MouseButtonState.Pressed && TryGetSelectedToolboxItem(out tool, out toolWrapper))
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (1)
379else if (e.LeftButton == MouseButtonState.Pressed)
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowHeader.cs (1)
104if (args.LeftButton == MouseButtonState.Pressed && this.IsMouseCaptured)
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowResizeGrip.cs (1)
55if (args.LeftButton == MouseButtonState.Pressed && this.IsMouseCaptured)
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (1)
122if (e.LeftButton == MouseButtonState.Pressed && this.IsReadyForSelecting)
System.Activities.Presentation\System\Activities\Presentation\View\ScrollViewerPanner.cs (2)
303return Mouse.LeftButton == MouseButtonState.Released 304&& Mouse.RightButton == MouseButtonState.Released;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
633if (e.RightButton == MouseButtonState.Pressed)
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
518if (e.RightButton == MouseButtonState.Pressed)
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (5)
596if (e.LeftButton == MouseButtonState.Pressed) 615if (e.LeftButton == MouseButtonState.Pressed && e.ClickCount == 2 && this.Designer.lastClickedDesigner == this) 623if (e.RightButton == MouseButtonState.Pressed) 712if (e.LeftButton == MouseButtonState.Pressed) 749if (e.LeftButton == MouseButtonState.Pressed &&