63 references to Captured
PresentationCore (8)
System\Windows\Input\Stylus\Common\Stylus.cs (1)
753
return Stylus.CurrentStylusDevice?.Captured ?? Mouse.
Captured
;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
357
stylus.Capture(Mouse.
Captured
, Mouse.CapturedMode);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
1099
if (Mouse.
Captured
!= _stylusCapture || Mouse.CapturedMode != _captureMode)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (2)
710
if (!stylusIsDown && Mouse.
Captured
!= null && !InWindowClientRect(ptMouse, mouseInputReport.InputSource))
1168
stylusDevice.Capture(Mouse.
Captured
, Mouse.CapturedMode);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
679
if (Mouse.
Captured
!= _stylusCapture || Mouse.CapturedMode != _captureMode)
System\Windows\UIElement.cs (1)
2487
if (Mouse.
Captured
== this)
System\Windows\UIElement3D.cs (1)
468
if (Mouse.
Captured
== this)
PresentationFramework (39)
System\Windows\Controls\ComboBox.cs (10)
1278
if (IsDropDownOpen && Mouse.
Captured
== this && DidMouseMove())
1686
if (Mouse.
Captured
!= comboBox)
1692
if (Mouse.
Captured
== null || !MenuBase.IsDescendant(comboBox, Mouse.
Captured
as DependencyObject))
1702
if (comboBox.IsDropDownOpen && Mouse.
Captured
== null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero)
1732
if (Mouse.
Captured
== comboBox && e.OriginalSource == comboBox)
1735
Debug.Assert(!comboBox.CheckAccess() || Mouse.
Captured
!= comboBox, "On the dispatcher thread, ComboBox should not have capture after closing the dropdown");
1783
Debug.Assert(!CheckAccess() || Mouse.
Captured
!= this, "On the dispatcher thread, ComboBox should not have capture after closing the dropdown");
1813
if (Mouse.
Captured
== comboBox)
1928
return Mouse.
Captured
== this;
System\Windows\Controls\DataGrid.cs (1)
4820
if (Mouse.
Captured
== this)
System\Windows\Controls\DataGridCell.cs (1)
942
dataGridOwner.HandleSelectionForCellInput(this, /* startDragging = */ Mouse.
Captured
== null, /* allowsExtendSelect = */ true, /* allowsMinimalSelect = */ true);
System\Windows\Controls\ListBox.cs (3)
555
if (e.OriginalSource == this && Mouse.
Captured
== this)
704
if (mouseButton == MouseButton.Left && Mouse.
Captured
!= this)
772
if ((Mouse.
Captured
== this) && DidMouseMove())
System\Windows\Controls\Menu.cs (1)
341
if (Mouse.
Captured
!= null)
System\Windows\Controls\MenuItem.cs (3)
1558
if (Mouse.
Captured
== null || Mouse.
Captured
is MenuBase)
2484
if ((Mouse.
Captured
== elem) && (Mouse.DirectlyOver == elem))
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
138
dataGridOwner.HandleSelectionForRowHeaderAndDetailsInput(rowOwner, /* startDragging = */ Mouse.
Captured
== null);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
560
if (Mouse.
Captured
== this)
System\Windows\Controls\Primitives\MenuBase.cs (6)
544
if (Mouse.
Captured
!= menu)
550
if (Mouse.
Captured
== null || !MenuBase.IsDescendant(menu, Mouse.
Captured
as DependencyObject))
560
if (menu.IsMenuMode && Mouse.
Captured
== null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero)
783
return Mouse.
Captured
== this;
817
if (!IsDescendant(this, Mouse.
Captured
as Visual) && !Mouse.Capture(this, CaptureMode.SubTree))
System\Windows\Controls\Primitives\Popup.cs (9)
1102
Debug.Assert( Mouse.
Captured
== _popupRoot, "_cacheValid[(int)CacheBits.CaptureEngaged] == true but Mouse.Captured != _popupRoot");
1133
IInputElement capturedElement = Mouse.
Captured
;
1181
if (Mouse.
Captured
== _popupRoot)
1225
bool reestablishCapture = e.OriginalSource != root && Mouse.
Captured
== null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero;
1234
if(Mouse.
Captured
!= root)
1239
PopupRoot newRoot = Mouse.
Captured
as PopupRoot;
1244
bool newCaptureInsidePopup = childPopupTookCapture || (Mouse.
Captured
!= null && MenuBase.IsDescendant(root, Mouse.
Captured
as DependencyObject));
1245
bool newCaptureOutsidePopup = !newCaptureInsidePopup && Mouse.
Captured
!= root;
System\Windows\Controls\Primitives\Thumb.cs (1)
286
if (Mouse.
Captured
!= thumb)
System\Windows\Controls\ToolBar.cs (2)
270
if (Mouse.
Captured
== toolBar)
583
if (Mouse.
Captured
== null)
System.Windows.Controls.Ribbon (16)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
971
if (!this.IsMinimized && (SelectedIndex >= 0) && (Mouse.
Captured
== this || Mouse.
Captured
== null))
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
213
if (Mouse.
Captured
== this &&
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (12)
1030
if (Mouse.
Captured
== null)
1046
if (Mouse.
Captured
== null)
1074
else if (!RibbonHelper.IsAncestorOf(targetCapture, Mouse.
Captured
as DependencyObject))
1081
if (Mouse.
Captured
== null)
1145
UIElement source = Mouse.
Captured
as UIElement;
1203
(Mouse.
Captured
== null ||
1223
Mouse.
Captured
!= null &&
1335
return (Mouse.
Captured
== element ||
1336
RibbonHelper.IsAncestorOf(element, Mouse.
Captured
as DependencyObject));
1341
return (element != null && Mouse.
Captured
!= null && (Mouse.
Captured
== element ||
1342
TreeHelper.IsVisualAncestorOf(element, Mouse.
Captured
as DependencyObject)));
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1118
if (Mouse.
Captured
== this)