50 references to PrimaryDevice
PresentationCore (26)
System\Windows\ContentElement.cs (2)
282
Mouse.
PrimaryDevice
.ReevaluateMouseOver(this, oldParent, isCoreParent);
287
Mouse.
PrimaryDevice
.ReevaluateCapture(this, oldParent, isCoreParent);
System\Windows\Input\Mouse.cs (17)
401
return Mouse.
PrimaryDevice
.DirectlyOver;
412
return Mouse.
PrimaryDevice
.Captured;
423
return Mouse.
PrimaryDevice
.CapturedMode;
435
return Mouse.
PrimaryDevice
.Capture(element);
449
return Mouse.
PrimaryDevice
.Capture(element, captureMode);
464
if(Mouse.
PrimaryDevice
.IsActive)
489
return Mouse.
PrimaryDevice
.OverrideCursor;
495
Mouse.
PrimaryDevice
.OverrideCursor = value;
506
return Mouse.
PrimaryDevice
.SetCursor(cursor);
516
return Mouse.
PrimaryDevice
.LeftButton;
527
return Mouse.
PrimaryDevice
.RightButton;
538
return Mouse.
PrimaryDevice
.MiddleButton;
549
return Mouse.
PrimaryDevice
.XButton1;
560
return Mouse.
PrimaryDevice
.XButton2;
570
return Mouse.
PrimaryDevice
.GetPosition(relativeTo);
578
Mouse.
PrimaryDevice
.Synchronize();
586
Mouse.
PrimaryDevice
.UpdateCursor();
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
245
Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Released;
System\Windows\MouseOverProperty.cs (2)
46
MouseEventArgs mouseEventArgs = new MouseEventArgs(Mouse.
PrimaryDevice
, Environment.TickCount, Mouse.
PrimaryDevice
.StylusDevice)
System\Windows\UIElement.cs (2)
2387
Mouse.
PrimaryDevice
.ReevaluateMouseOver(this, oldParent, isCoreParent);
2392
Mouse.
PrimaryDevice
.ReevaluateCapture(this, oldParent, isCoreParent);
System\Windows\UIElement3D.cs (2)
366
Mouse.
PrimaryDevice
.ReevaluateMouseOver(this, oldParent, isCoreParent);
371
Mouse.
PrimaryDevice
.ReevaluateCapture(this, oldParent, isCoreParent);
PresentationFramework (23)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
940
Point currentPosition = Mouse.
PrimaryDevice
.GetPosition(textView.RenderScope);
MS\Internal\Ink\EditingCoordinator.cs (1)
420
bool mouseDown = (_inkCanvas.IsMouseOver && Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Pressed);
MS\Internal\Ink\SelectionEditingBehavior.cs (1)
59
MouseDevice mouse = Mouse.
PrimaryDevice
;
MS\Internal\Ink\SelectionEditor.cs (2)
54
Point currentPosition = Mouse.
PrimaryDevice
.GetPosition(InkCanvas.SelectionAdorner);
79
Point currentPosition = Mouse.
PrimaryDevice
.GetPosition(InkCanvas.SelectionAdorner);
System\Windows\Controls\GridViewColumnHeader.cs (2)
232
(IsMouseCaptured && (Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Pressed)))
792
Point pos = Mouse.
PrimaryDevice
.GetPosition(this);
System\Windows\Controls\ItemsControl.cs (4)
3340
NavigateByLine(startingInfo, FocusNavigationDirection.Up, new ItemNavigateArgs(Mouse.
PrimaryDevice
, Keyboard.Modifiers));
3345
NavigateByLine(startingInfo, FocusNavigationDirection.Down, new ItemNavigateArgs(Mouse.
PrimaryDevice
, Keyboard.Modifiers));
3360
NavigateByLine(startingInfo, direction, new ItemNavigateArgs(Mouse.
PrimaryDevice
, Keyboard.Modifiers));
3370
NavigateByLine(startingInfo, direction, new ItemNavigateArgs(Mouse.
PrimaryDevice
, Keyboard.Modifiers));
System\Windows\Controls\ListBox.cs (1)
768
NavigateToItem(ItemInfoFromContainer(listItem), new ItemNavigateArgs(Mouse.
PrimaryDevice
, Keyboard.Modifiers));
System\Windows\Controls\PopupControlService.cs (7)
53
IInputElement directlyOver = Mouse.
PrimaryDevice
.RawDirectlyOver;
67
Point pt = Mouse.
PrimaryDevice
.GetPosition(rootAsUIElement);
199
IInputElement directlyOver = Mouse.
PrimaryDevice
.RawDirectlyOver;
202
Point pt = Mouse.
PrimaryDevice
.GetPosition(directlyOver);
1589
PresentationSource mouseSource = Mouse.
PrimaryDevice
.CriticalActiveSource;
1590
System.Windows.Point pt = Mouse.
PrimaryDevice
.NonRelativePosition;
1610
System.Windows.Point pt2 = hwndSource.TransformToDevice(Mouse.
PrimaryDevice
.GetPosition(rootElement));
System\Windows\Controls\Primitives\ButtonBase.cs (3)
122
if (IsMouseCaptured && (Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Pressed) && !IsSpaceKeyDown)
148
Point pos = Mouse.
PrimaryDevice
.GetPosition(this);
507
((IsMouseCaptured && (Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Pressed) && !IsSpaceKeyDown)))
System\Windows\Controls\ToolBarTray.cs (1)
523
Point pointRelativeToToolBarTray = Mouse.
PrimaryDevice
.GetPosition((IInputElement)this);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1040
PresentationSource mouseSource = Mouse.
PrimaryDevice
.ActiveSource;