78 references to CaptureMode
PresentationCore (65)
System\Windows\Input\Mouse.cs (2)
428internal static CaptureMode CapturedMode 456public static bool Capture(IInputElement element, CaptureMode captureMode)
System\Windows\Input\MouseDevice.cs (16)
268internal CaptureMode CapturedMode 281return Capture(element, CaptureMode.Element); 287public bool Capture(IInputElement element, CaptureMode captureMode) 292if (!(captureMode == CaptureMode.None || captureMode == CaptureMode.Element || captureMode == CaptureMode.SubTree)) 294throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode)); 299captureMode = CaptureMode.None; 302if (captureMode == CaptureMode.None) 1039private void ChangeMouseCapture(IInputElement mouseCapture, IMouseInputProvider providerCapture, CaptureMode captureMode, int timestamp) 1455ChangeMouseCapture(null, null, CaptureMode.None, e.StagingItem.Input.Timestamp); 1461ChangeMouseCapture(null, null, CaptureMode.None, e.StagingItem.Input.Timestamp); 1496case CaptureMode.None: 1530case CaptureMode.Element: 1556case CaptureMode.SubTree: 2256private CaptureMode _captureMode;
System\Windows\Input\Stylus\Common\Stylus.cs (2)
766return Capture(element, CaptureMode.Element); 779public static bool Capture(IInputElement element, CaptureMode captureMode)
System\Windows\Input\Stylus\Common\StylusDevice.cs (2)
123public bool Capture(IInputElement element, CaptureMode captureMode) 135return Capture(element, CaptureMode.Element);
System\Windows\Input\Stylus\Common\StylusDeviceBase.cs (2)
138internal abstract CaptureMode CapturedMode { get; } 143internal abstract bool Capture(IInputElement element, CaptureMode captureMode);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (16)
63private CaptureMode _captureMode = CaptureMode.None; 520internal override CaptureMode CapturedMode 535internal override bool Capture(IInputElement element, CaptureMode captureMode) 541if (!(captureMode == CaptureMode.None || captureMode == CaptureMode.Element || captureMode == CaptureMode.SubTree)) 543throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode)); 548captureMode = CaptureMode.None; 551if (captureMode == CaptureMode.None) 604return Capture(element, CaptureMode.Element); 909case CaptureMode.None: 921case CaptureMode.Element: 925case CaptureMode.SubTree: 1015internal void ChangeStylusCapture(IInputElement stylusCapture, CaptureMode captureMode, int timestamp) 1077if (CapturedMode == CaptureMode.SubTree && _inputSource is not null)
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (15)
213internal override CaptureMode CapturedMode 225internal override bool Capture(IInputElement element, CaptureMode captureMode) 230if (!(captureMode == CaptureMode.None || captureMode == CaptureMode.Element || captureMode == CaptureMode.SubTree)) 232throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode)); 237captureMode = CaptureMode.None; 240if (captureMode == CaptureMode.None) 300return Capture(element, CaptureMode.Element); 567internal void ChangeStylusCapture(IInputElement stylusCapture, CaptureMode captureMode, int timestamp) 653if (CapturedMode == CaptureMode.SubTree && _inputSource != null) 973case CaptureMode.None: 985case CaptureMode.Element: 990case CaptureMode.SubTree: 1961CaptureMode _captureMode;
System\Windows\Input\TouchDevice.cs (10)
168case CaptureMode.None: 187case CaptureMode.Element: 192case CaptureMode.SubTree: 304public CaptureMode CaptureMode 316return Capture(element, CaptureMode.Element); 325public bool Capture(IInputElement element, CaptureMode captureMode) 331if ((element == null) || (captureMode == CaptureMode.None)) 334captureMode = CaptureMode.None; 635protected virtual void OnCapture(IInputElement element, CaptureMode captureMode) 1305private CaptureMode _captureMode;
PresentationFramework (11)
System\Windows\Controls\ComboBox.cs (2)
234Mouse.Capture(comboBox, CaptureMode.SubTree); 1704Mouse.Capture(comboBox, CaptureMode.SubTree);
System\Windows\Controls\DataGrid.cs (1)
4810if (Mouse.Capture(this, CaptureMode.SubTree))
System\Windows\Controls\ListBox.cs (1)
706Mouse.Capture(this, CaptureMode.SubTree);
System\Windows\Controls\PopupControlService.cs (1)
70if (Mouse.CapturedMode != CaptureMode.None)
System\Windows\Controls\Primitives\CalendarItem.cs (2)
676Mouse.Capture(this, CaptureMode.SubTree); 879Mouse.Capture(this, CaptureMode.SubTree);
System\Windows\Controls\Primitives\MenuBase.cs (2)
562Mouse.Capture(menu, CaptureMode.SubTree); 817if (!IsDescendant(this, Mouse.Captured as Visual) && !Mouse.Capture(this, CaptureMode.SubTree))
System\Windows\Controls\Primitives\Popup.cs (1)
1167Mouse.Capture(_popupRoot, CaptureMode.SubTree);
System\Windows\Controls\ToolBar.cs (1)
258Mouse.Capture(toolBar, CaptureMode.SubTree);
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1105bool success = Mouse.Capture(targetCapture, CaptureMode.SubTree); 1206Mouse.Capture(targetCapture, CaptureMode.SubTree);