50 references to PrimaryDevice
PresentationCore (26)
System\Windows\ContentElement.cs (2)
283
Mouse.
PrimaryDevice
.ReevaluateMouseOver(this, oldParent, isCoreParent);
288
Mouse.
PrimaryDevice
.ReevaluateCapture(this, oldParent, isCoreParent);
System\Windows\Input\Mouse.cs (17)
402
return Mouse.
PrimaryDevice
.DirectlyOver;
413
return Mouse.
PrimaryDevice
.Captured;
424
return Mouse.
PrimaryDevice
.CapturedMode;
436
return Mouse.
PrimaryDevice
.Capture(element);
450
return Mouse.
PrimaryDevice
.Capture(element, captureMode);
465
if(Mouse.
PrimaryDevice
.IsActive)
490
return Mouse.
PrimaryDevice
.OverrideCursor;
496
Mouse.
PrimaryDevice
.OverrideCursor = value;
507
return Mouse.
PrimaryDevice
.SetCursor(cursor);
517
return Mouse.
PrimaryDevice
.LeftButton;
528
return Mouse.
PrimaryDevice
.RightButton;
539
return Mouse.
PrimaryDevice
.MiddleButton;
550
return Mouse.
PrimaryDevice
.XButton1;
561
return Mouse.
PrimaryDevice
.XButton2;
571
return Mouse.
PrimaryDevice
.GetPosition(relativeTo);
579
Mouse.
PrimaryDevice
.Synchronize();
587
Mouse.
PrimaryDevice
.UpdateCursor();
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
244
Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Released;
System\Windows\MouseOverProperty.cs (2)
47
MouseEventArgs mouseEventArgs = new MouseEventArgs(Mouse.
PrimaryDevice
, Environment.TickCount, Mouse.
PrimaryDevice
.StylusDevice);
System\Windows\UIElement.cs (2)
2396
Mouse.
PrimaryDevice
.ReevaluateMouseOver(this, oldParent, isCoreParent);
2401
Mouse.
PrimaryDevice
.ReevaluateCapture(this, oldParent, isCoreParent);
System\Windows\UIElement3D.cs (2)
367
Mouse.
PrimaryDevice
.ReevaluateMouseOver(this, oldParent, isCoreParent);
372
Mouse.
PrimaryDevice
.ReevaluateCapture(this, oldParent, isCoreParent);
PresentationFramework (23)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
937
Point currentPosition = Mouse.
PrimaryDevice
.GetPosition(textView.RenderScope);
MS\Internal\Ink\EditingCoordinator.cs (1)
421
bool mouseDown = (_inkCanvas.IsMouseOver && Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Pressed);
MS\Internal\Ink\SelectionEditingBehavior.cs (1)
60
MouseDevice mouse = Mouse.
PrimaryDevice
;
MS\Internal\Ink\SelectionEditor.cs (2)
55
Point currentPosition = Mouse.
PrimaryDevice
.GetPosition(InkCanvas.SelectionAdorner);
80
Point currentPosition = Mouse.
PrimaryDevice
.GetPosition(InkCanvas.SelectionAdorner);
System\Windows\Controls\GridViewColumnHeader.cs (2)
233
(IsMouseCaptured && (Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Pressed)))
802
Point pos = Mouse.
PrimaryDevice
.GetPosition(this);
System\Windows\Controls\ItemsControl.cs (4)
3371
NavigateByLine(startingInfo, FocusNavigationDirection.Up, new ItemNavigateArgs(Mouse.
PrimaryDevice
, Keyboard.Modifiers));
3376
NavigateByLine(startingInfo, FocusNavigationDirection.Down, new ItemNavigateArgs(Mouse.
PrimaryDevice
, Keyboard.Modifiers));
3391
NavigateByLine(startingInfo, direction, new ItemNavigateArgs(Mouse.
PrimaryDevice
, Keyboard.Modifiers));
3401
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)
54
IInputElement directlyOver = Mouse.
PrimaryDevice
.RawDirectlyOver;
68
Point pt = Mouse.
PrimaryDevice
.GetPosition(rootAsUIElement);
200
IInputElement directlyOver = Mouse.
PrimaryDevice
.RawDirectlyOver;
203
Point pt = Mouse.
PrimaryDevice
.GetPosition(directlyOver);
1583
PresentationSource mouseSource = Mouse.
PrimaryDevice
.CriticalActiveSource;
1584
System.Windows.Point pt = Mouse.
PrimaryDevice
.NonRelativePosition;
1604
System.Windows.Point pt2 = hwndSource.TransformToDevice(Mouse.
PrimaryDevice
.GetPosition(rootElement));
System\Windows\Controls\Primitives\ButtonBase.cs (3)
123
if (IsMouseCaptured && (Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Pressed) && !IsSpaceKeyDown)
149
Point pos = Mouse.
PrimaryDevice
.GetPosition(this);
508
((IsMouseCaptured && (Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Pressed) && !IsSpaceKeyDown)))
System\Windows\Controls\ToolBarTray.cs (1)
524
Point pointRelativeToToolBarTray = Mouse.
PrimaryDevice
.GetPosition((IInputElement)this);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1043
PresentationSource mouseSource = Mouse.
PrimaryDevice
.ActiveSource;