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