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