49 references to Captured
PresentationCore (2)
Core\CSharp\System\Windows\UIElement.cs (1)
2516
if (Mouse.
Captured
== this)
Core\CSharp\System\Windows\UIElement3D.cs (1)
476
if (Mouse.
Captured
== this)
PresentationFramework (39)
src\Framework\System\Windows\Controls\ComboBox.cs (10)
1280
if (IsDropDownOpen && Mouse.
Captured
== this && DidMouseMove())
1689
if (Mouse.
Captured
!= comboBox)
1695
if (Mouse.
Captured
== null || !MenuBase.IsDescendant(comboBox, Mouse.
Captured
as DependencyObject))
1705
if (comboBox.IsDropDownOpen && Mouse.
Captured
== null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero)
1735
if (Mouse.
Captured
== comboBox && e.OriginalSource == comboBox)
1738
Debug.Assert(!comboBox.CheckAccess() || Mouse.
Captured
!= comboBox, "On the dispatcher thread, ComboBox should not have capture after closing the dropdown");
1786
Debug.Assert(!CheckAccess() || Mouse.
Captured
!= this, "On the dispatcher thread, ComboBox should not have capture after closing the dropdown");
1816
if (Mouse.
Captured
== comboBox)
1931
return Mouse.
Captured
== this;
src\Framework\System\Windows\Controls\DataGrid.cs (1)
4825
if (Mouse.
Captured
== this)
src\Framework\System\Windows\Controls\DataGridCell.cs (1)
938
dataGridOwner.HandleSelectionForCellInput(this, /* startDragging = */ Mouse.
Captured
== null, /* allowsExtendSelect = */ true, /* allowsMinimalSelect = */ true);
src\Framework\System\Windows\Controls\ListBox.cs (3)
510
if (e.OriginalSource == this && Mouse.
Captured
== this)
659
if (mouseButton == MouseButton.Left && Mouse.
Captured
!= this)
727
if ((Mouse.
Captured
== this) && DidMouseMove())
src\Framework\System\Windows\Controls\Menu.cs (1)
367
if (Mouse.
Captured
!= null)
src\Framework\System\Windows\Controls\MenuItem.cs (3)
1594
if (Mouse.
Captured
== null || Mouse.
Captured
is MenuBase)
2544
if ((Mouse.
Captured
== elem) && (Mouse.DirectlyOver == elem))
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
138
dataGridOwner.HandleSelectionForRowHeaderAndDetailsInput(rowOwner, /* startDragging = */ Mouse.
Captured
== null);
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
561
if (Mouse.
Captured
== this)
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (6)
548
if (Mouse.
Captured
!= menu)
554
if (Mouse.
Captured
== null || !MenuBase.IsDescendant(menu, Mouse.
Captured
as DependencyObject))
564
if (menu.IsMenuMode && Mouse.
Captured
== null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero)
794
return Mouse.
Captured
== this;
828
if (!IsDescendant(this, Mouse.
Captured
as Visual) && !Mouse.Capture(this, CaptureMode.SubTree))
src\Framework\System\Windows\Controls\Primitives\Popup.cs (9)
1107
Debug.Assert( Mouse.
Captured
== _popupRoot.Value, "_cacheValid[(int)CacheBits.CaptureEngaged] == true but Mouse.Captured != _popupRoot");
1138
IInputElement capturedElement = Mouse.
Captured
;
1186
if (Mouse.
Captured
== _popupRoot.Value)
1230
bool reestablishCapture = e.OriginalSource != root && Mouse.
Captured
== null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero;
1239
if(Mouse.
Captured
!= root)
1244
PopupRoot newRoot = Mouse.
Captured
as PopupRoot;
1249
bool newCaptureInsidePopup = childPopupTookCapture || (Mouse.
Captured
!= null && MenuBase.IsDescendant(root, Mouse.
Captured
as DependencyObject));
1250
bool newCaptureOutsidePopup = !newCaptureInsidePopup && Mouse.
Captured
!= root;
src\Framework\System\Windows\Controls\Primitives\Thumb.cs (1)
283
if (Mouse.
Captured
!= thumb)
src\Framework\System\Windows\Controls\ToolBar.cs (2)
271
if (Mouse.
Captured
== toolBar)
593
if (Mouse.
Captured
== null)
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Controls\WorkaroundPopup.cs (4)
66
if (!this.releasingCapture && Mouse.
Captured
!= this.Child)
70
if (Mouse.
Captured
== null)
77
if (this.IsOpen && Mouse.
Captured
== null)
118
if (Mouse.
Captured
== this.Child)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\PropertyContainerPopupHelper.cs (1)
52
DependencyObject potentialDescendant = Mouse.
Captured
as DependencyObject;
System.Activities.Presentation\System\Activities\Presentation\View\ScrollViewerPanner.cs (3)
259
if (e.ChangedButton == this.draggingMouseButton && object.Equals(this.scrollViewer, Mouse.
Captured
))
297
return (Mouse.
Captured
!= null)
298
&& !object.Equals(Mouse.
Captured
, this.ScrollViewer);