63 references to Captured
PresentationCore (8)
System\Windows\Input\Stylus\Common\Stylus.cs (1)
748return Stylus.CurrentStylusDevice?.Captured ?? Mouse.Captured;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
340stylus.Capture(Mouse.Captured, Mouse.CapturedMode);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
1091if (Mouse.Captured != _stylusCapture || Mouse.CapturedMode != _captureMode)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (2)
701if (!stylusIsDown && Mouse.Captured != null && !InWindowClientRect(ptMouse, mouseInputReport.InputSource)) 1159stylusDevice.Capture(Mouse.Captured, Mouse.CapturedMode);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
676if (Mouse.Captured != _stylusCapture || Mouse.CapturedMode != _captureMode)
System\Windows\UIElement.cs (1)
2482if (Mouse.Captured == this)
System\Windows\UIElement3D.cs (1)
453if (Mouse.Captured == this)
PresentationFramework (39)
System\Windows\Controls\ComboBox.cs (10)
1268if (IsDropDownOpen && Mouse.Captured == this && DidMouseMove()) 1676if (Mouse.Captured != comboBox) 1682if (Mouse.Captured == null || !MenuBase.IsDescendant(comboBox, Mouse.Captured as DependencyObject)) 1692if (comboBox.IsDropDownOpen && Mouse.Captured == null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero) 1722if (Mouse.Captured == comboBox && e.OriginalSource == comboBox) 1725Debug.Assert(!comboBox.CheckAccess() || Mouse.Captured != comboBox, "On the dispatcher thread, ComboBox should not have capture after closing the dropdown"); 1773Debug.Assert(!CheckAccess() || Mouse.Captured != this, "On the dispatcher thread, ComboBox should not have capture after closing the dropdown"); 1803if (Mouse.Captured == comboBox) 1918return Mouse.Captured == this;
System\Windows\Controls\DataGrid.cs (1)
4817if (Mouse.Captured == this)
System\Windows\Controls\DataGridCell.cs (1)
935dataGridOwner.HandleSelectionForCellInput(this, /* startDragging = */ Mouse.Captured == null, /* allowsExtendSelect = */ true, /* allowsMinimalSelect = */ true);
System\Windows\Controls\ListBox.cs (3)
549if (e.OriginalSource == this && Mouse.Captured == this) 698if (mouseButton == MouseButton.Left && Mouse.Captured != this) 766if ((Mouse.Captured == this) && DidMouseMove())
System\Windows\Controls\Menu.cs (1)
331if (Mouse.Captured != null)
System\Windows\Controls\MenuItem.cs (3)
1548if (Mouse.Captured == null || Mouse.Captured is MenuBase) 2474if ((Mouse.Captured == elem) && (Mouse.DirectlyOver == elem))
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
134dataGridOwner.HandleSelectionForRowHeaderAndDetailsInput(rowOwner, /* startDragging = */ Mouse.Captured == null);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
555if (Mouse.Captured == this)
System\Windows\Controls\Primitives\MenuBase.cs (6)
535if (Mouse.Captured != menu) 541if (Mouse.Captured == null || !MenuBase.IsDescendant(menu, Mouse.Captured as DependencyObject)) 551if (menu.IsMenuMode && Mouse.Captured == null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero) 774return Mouse.Captured == this; 808if (!IsDescendant(this, Mouse.Captured as Visual) && !Mouse.Capture(this, CaptureMode.SubTree))
System\Windows\Controls\Primitives\Popup.cs (9)
1095Debug.Assert( Mouse.Captured == _popupRoot, "_cacheValid[(int)CacheBits.CaptureEngaged] == true but Mouse.Captured != _popupRoot"); 1126IInputElement capturedElement = Mouse.Captured; 1174if (Mouse.Captured == _popupRoot) 1218bool reestablishCapture = e.OriginalSource != root && Mouse.Captured == null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero; 1227if(Mouse.Captured != root) 1232PopupRoot newRoot = Mouse.Captured as PopupRoot; 1237bool newCaptureInsidePopup = childPopupTookCapture || (Mouse.Captured != null && MenuBase.IsDescendant(root, Mouse.Captured as DependencyObject)); 1238bool newCaptureOutsidePopup = !newCaptureInsidePopup && Mouse.Captured != root;
System\Windows\Controls\Primitives\Thumb.cs (1)
272if (Mouse.Captured != thumb)
System\Windows\Controls\ToolBar.cs (2)
261if (Mouse.Captured == toolBar) 574if (Mouse.Captured == null)
System.Windows.Controls.Ribbon (16)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
968if (!this.IsMinimized && (SelectedIndex >= 0) && (Mouse.Captured == this || Mouse.Captured == null))
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
211if (Mouse.Captured == this &&
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (12)
1025if (Mouse.Captured == null) 1041if (Mouse.Captured == null) 1069else if (!RibbonHelper.IsAncestorOf(targetCapture, Mouse.Captured as DependencyObject)) 1076if (Mouse.Captured == null) 1140UIElement source = Mouse.Captured as UIElement; 1198(Mouse.Captured == null || 1218Mouse.Captured != null && 1330return (Mouse.Captured == element || 1331RibbonHelper.IsAncestorOf(element, Mouse.Captured as DependencyObject)); 1336return (element != null && Mouse.Captured != null && (Mouse.Captured == element || 1337TreeHelper.IsVisualAncestorOf(element, Mouse.Captured as DependencyObject)));
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1115if (Mouse.Captured == this)