78 references to CaptureMode
PresentationCore (65)
System\Windows\Input\Mouse.cs (2)
420internal static CaptureMode CapturedMode 448public static bool Capture(IInputElement element, CaptureMode captureMode)
System\Windows\Input\MouseDevice.cs (16)
257internal CaptureMode CapturedMode 270return Capture(element, CaptureMode.Element); 276public bool Capture(IInputElement element, CaptureMode captureMode) 281if (!(captureMode == CaptureMode.None || captureMode == CaptureMode.Element || captureMode == CaptureMode.SubTree)) 283throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode)); 288captureMode = CaptureMode.None; 291if (captureMode == CaptureMode.None) 1029private void ChangeMouseCapture(IInputElement mouseCapture, IMouseInputProvider providerCapture, CaptureMode captureMode, int timestamp) 1461ChangeMouseCapture(null, null, CaptureMode.None, e.StagingItem.Input.Timestamp); 1467ChangeMouseCapture(null, null, CaptureMode.None, e.StagingItem.Input.Timestamp); 1502case CaptureMode.None: 1536case CaptureMode.Element: 1562case CaptureMode.SubTree: 2282private CaptureMode _captureMode;
System\Windows\Input\Stylus\Common\Stylus.cs (2)
761return Capture(element, CaptureMode.Element); 774public static bool Capture(IInputElement element, CaptureMode captureMode)
System\Windows\Input\Stylus\Common\StylusDevice.cs (2)
109public bool Capture(IInputElement element, CaptureMode captureMode) 121return Capture(element, CaptureMode.Element);
System\Windows\Input\Stylus\Common\StylusDeviceBase.cs (2)
124internal abstract CaptureMode CapturedMode { get; } 129internal abstract bool Capture(IInputElement element, CaptureMode captureMode);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (16)
55private CaptureMode _captureMode = CaptureMode.None; 512internal override CaptureMode CapturedMode 527internal override bool Capture(IInputElement element, CaptureMode captureMode) 533if (!(captureMode == CaptureMode.None || captureMode == CaptureMode.Element || captureMode == CaptureMode.SubTree)) 535throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode)); 540captureMode = CaptureMode.None; 543if (captureMode == CaptureMode.None) 596return Capture(element, CaptureMode.Element); 903case CaptureMode.None: 915case CaptureMode.Element: 919case CaptureMode.SubTree: 1009internal void ChangeStylusCapture(IInputElement stylusCapture, CaptureMode captureMode, int timestamp) 1075if (CapturedMode == CaptureMode.SubTree && _inputSource is not null)
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (15)
210internal override CaptureMode CapturedMode 222internal override bool Capture(IInputElement element, CaptureMode captureMode) 227if (!(captureMode == CaptureMode.None || captureMode == CaptureMode.Element || captureMode == CaptureMode.SubTree)) 229throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode)); 234captureMode = CaptureMode.None; 237if (captureMode == CaptureMode.None) 297return Capture(element, CaptureMode.Element); 566internal void ChangeStylusCapture(IInputElement stylusCapture, CaptureMode captureMode, int timestamp) 656if (CapturedMode == CaptureMode.SubTree && _inputSource != null) 976case CaptureMode.None: 988case CaptureMode.Element: 993case CaptureMode.SubTree: 1966CaptureMode _captureMode;
System\Windows\Input\TouchDevice.cs (10)
156case CaptureMode.None: 175case CaptureMode.Element: 180case CaptureMode.SubTree: 292public CaptureMode CaptureMode 304return Capture(element, CaptureMode.Element); 313public bool Capture(IInputElement element, CaptureMode captureMode) 319if ((element == null) || (captureMode == CaptureMode.None)) 322captureMode = CaptureMode.None; 623protected virtual void OnCapture(IInputElement element, CaptureMode captureMode) 1295private CaptureMode _captureMode;
PresentationFramework (11)
System\Windows\Controls\ComboBox.cs (2)
224Mouse.Capture(comboBox, CaptureMode.SubTree); 1700Mouse.Capture(comboBox, CaptureMode.SubTree);
System\Windows\Controls\DataGrid.cs (1)
4811if (Mouse.Capture(this, CaptureMode.SubTree))
System\Windows\Controls\ListBox.cs (1)
702Mouse.Capture(this, CaptureMode.SubTree);
System\Windows\Controls\PopupControlService.cs (1)
60if (Mouse.CapturedMode != CaptureMode.None)
System\Windows\Controls\Primitives\CalendarItem.cs (2)
671Mouse.Capture(this, CaptureMode.SubTree); 874Mouse.Capture(this, CaptureMode.SubTree);
System\Windows\Controls\Primitives\MenuBase.cs (2)
553Mouse.Capture(menu, CaptureMode.SubTree); 808if (!IsDescendant(this, Mouse.Captured as Visual) && !Mouse.Capture(this, CaptureMode.SubTree))
System\Windows\Controls\Primitives\Popup.cs (1)
1174Mouse.Capture(_popupRoot, CaptureMode.SubTree);
System\Windows\Controls\ToolBar.cs (1)
249Mouse.Capture(toolBar, CaptureMode.SubTree);
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1104bool success = Mouse.Capture(targetCapture, CaptureMode.SubTree); 1205Mouse.Capture(targetCapture, CaptureMode.SubTree);