41 references to CaptureMode
PresentationCore (28)
Core\CSharp\System\Windows\Input\Mouse.cs (2)
427
internal static
CaptureMode
CapturedMode
455
public static bool Capture(IInputElement element,
CaptureMode
captureMode)
Core\CSharp\System\Windows\Input\MouseDevice.cs (16)
318
internal
CaptureMode
CapturedMode
331
return Capture(element,
CaptureMode
.Element);
342
public bool Capture(IInputElement element,
CaptureMode
captureMode)
347
if (!(captureMode ==
CaptureMode
.None || captureMode ==
CaptureMode
.Element || captureMode ==
CaptureMode
.SubTree))
349
throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(
CaptureMode
));
354
captureMode =
CaptureMode
.None;
357
if (captureMode ==
CaptureMode
.None)
1143
private void ChangeMouseCapture(IInputElement mouseCapture, IMouseInputProvider providerCapture,
CaptureMode
captureMode, int timestamp)
1561
ChangeMouseCapture(null, null,
CaptureMode
.None, e.StagingItem.Input.Timestamp);
1567
ChangeMouseCapture(null, null,
CaptureMode
.None, e.StagingItem.Input.Timestamp);
1601
case
CaptureMode
.None:
1631
case
CaptureMode
.Element:
1657
case
CaptureMode
.SubTree:
2393
private
CaptureMode
_captureMode;
Core\CSharp\System\Windows\Input\TouchDevice.cs (10)
207
case
CaptureMode
.None:
226
case
CaptureMode
.Element:
231
case
CaptureMode
.SubTree:
343
public
CaptureMode
CaptureMode
355
return Capture(element,
CaptureMode
.Element);
364
public bool Capture(IInputElement element,
CaptureMode
captureMode)
370
if ((element == null) || (captureMode ==
CaptureMode
.None))
373
captureMode =
CaptureMode
.None;
687
protected virtual void OnCapture(IInputElement element,
CaptureMode
captureMode)
1403
private
CaptureMode
_captureMode;
PresentationFramework (11)
src\Framework\System\Windows\Controls\ComboBox.cs (2)
235
Mouse.Capture(comboBox,
CaptureMode
.SubTree);
1707
Mouse.Capture(comboBox,
CaptureMode
.SubTree);
src\Framework\System\Windows\Controls\DataGrid.cs (1)
4815
if (Mouse.Capture(this,
CaptureMode
.SubTree))
src\Framework\System\Windows\Controls\ListBox.cs (1)
661
Mouse.Capture(this,
CaptureMode
.SubTree);
src\Framework\System\Windows\Controls\PopupControlService.cs (1)
82
if (Mouse.CapturedMode !=
CaptureMode
.None)
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (2)
677
Mouse.Capture(this,
CaptureMode
.SubTree);
881
Mouse.Capture(this,
CaptureMode
.SubTree);
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (2)
566
Mouse.Capture(menu,
CaptureMode
.SubTree);
828
if (!IsDescendant(this, Mouse.Captured as Visual) && !Mouse.Capture(this,
CaptureMode
.SubTree))
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
1172
Mouse.Capture(_popupRoot.Value,
CaptureMode
.SubTree);
src\Framework\System\Windows\Controls\ToolBar.cs (1)
259
Mouse.Capture(toolBar,
CaptureMode
.SubTree);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Controls\WorkaroundPopup.cs (2)
36
Mouse.Capture(this.Child,
CaptureMode
.SubTree);
79
Mouse.Capture(this.Child,
CaptureMode
.SubTree);