50 references to PrimaryDevice
PresentationCore (26)
System\Windows\ContentElement.cs (2)
294
Mouse.
PrimaryDevice
.ReevaluateMouseOver(this, oldParent, isCoreParent);
299
Mouse.
PrimaryDevice
.ReevaluateCapture(this, oldParent, isCoreParent);
System\Windows\Input\Mouse.cs (17)
410
return Mouse.
PrimaryDevice
.DirectlyOver;
421
return Mouse.
PrimaryDevice
.Captured;
432
return Mouse.
PrimaryDevice
.CapturedMode;
444
return Mouse.
PrimaryDevice
.Capture(element);
458
return Mouse.
PrimaryDevice
.Capture(element, captureMode);
473
if(Mouse.
PrimaryDevice
.IsActive)
498
return Mouse.
PrimaryDevice
.OverrideCursor;
504
Mouse.
PrimaryDevice
.OverrideCursor = value;
515
return Mouse.
PrimaryDevice
.SetCursor(cursor);
525
return Mouse.
PrimaryDevice
.LeftButton;
536
return Mouse.
PrimaryDevice
.RightButton;
547
return Mouse.
PrimaryDevice
.MiddleButton;
558
return Mouse.
PrimaryDevice
.XButton1;
569
return Mouse.
PrimaryDevice
.XButton2;
579
return Mouse.
PrimaryDevice
.GetPosition(relativeTo);
587
Mouse.
PrimaryDevice
.Synchronize();
595
Mouse.
PrimaryDevice
.UpdateCursor();
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
258
Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Released;
System\Windows\MouseOverProperty.cs (2)
49
MouseEventArgs mouseEventArgs = new MouseEventArgs(Mouse.
PrimaryDevice
, Environment.TickCount, Mouse.
PrimaryDevice
.StylusDevice);
System\Windows\UIElement.cs (2)
2401
Mouse.
PrimaryDevice
.ReevaluateMouseOver(this, oldParent, isCoreParent);
2406
Mouse.
PrimaryDevice
.ReevaluateCapture(this, oldParent, isCoreParent);
System\Windows\UIElement3D.cs (2)
382
Mouse.
PrimaryDevice
.ReevaluateMouseOver(this, oldParent, isCoreParent);
387
Mouse.
PrimaryDevice
.ReevaluateCapture(this, oldParent, isCoreParent);
PresentationFramework (23)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
943
Point currentPosition = Mouse.
PrimaryDevice
.GetPosition(textView.RenderScope);
MS\Internal\Ink\EditingCoordinator.cs (1)
436
bool mouseDown = (_inkCanvas.IsMouseOver && Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Pressed);
MS\Internal\Ink\SelectionEditingBehavior.cs (1)
73
MouseDevice mouse = Mouse.
PrimaryDevice
;
MS\Internal\Ink\SelectionEditor.cs (2)
70
Point currentPosition = Mouse.
PrimaryDevice
.GetPosition(InkCanvas.SelectionAdorner);
95
Point currentPosition = Mouse.
PrimaryDevice
.GetPosition(InkCanvas.SelectionAdorner);
System\Windows\Controls\GridViewColumnHeader.cs (2)
237
(IsMouseCaptured && (Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Pressed)))
806
Point pos = Mouse.
PrimaryDevice
.GetPosition(this);
System\Windows\Controls\ItemsControl.cs (4)
3380
NavigateByLine(startingInfo, FocusNavigationDirection.Up, new ItemNavigateArgs(Mouse.
PrimaryDevice
, Keyboard.Modifiers));
3385
NavigateByLine(startingInfo, FocusNavigationDirection.Down, new ItemNavigateArgs(Mouse.
PrimaryDevice
, Keyboard.Modifiers));
3400
NavigateByLine(startingInfo, direction, new ItemNavigateArgs(Mouse.
PrimaryDevice
, Keyboard.Modifiers));
3410
NavigateByLine(startingInfo, direction, new ItemNavigateArgs(Mouse.
PrimaryDevice
, Keyboard.Modifiers));
System\Windows\Controls\ListBox.cs (1)
774
NavigateToItem(ItemInfoFromContainer(listItem), new ItemNavigateArgs(Mouse.
PrimaryDevice
, Keyboard.Modifiers));
System\Windows\Controls\PopupControlService.cs (7)
64
IInputElement directlyOver = Mouse.
PrimaryDevice
.RawDirectlyOver;
78
Point pt = Mouse.
PrimaryDevice
.GetPosition(rootAsUIElement);
210
IInputElement directlyOver = Mouse.
PrimaryDevice
.RawDirectlyOver;
213
Point pt = Mouse.
PrimaryDevice
.GetPosition(directlyOver);
1593
PresentationSource mouseSource = Mouse.
PrimaryDevice
.CriticalActiveSource;
1594
System.Windows.Point pt = Mouse.
PrimaryDevice
.NonRelativePosition;
1614
System.Windows.Point pt2 = hwndSource.TransformToDevice(Mouse.
PrimaryDevice
.GetPosition(rootElement));
System\Windows\Controls\Primitives\ButtonBase.cs (3)
134
if (IsMouseCaptured && (Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Pressed) && !IsSpaceKeyDown)
160
Point pos = Mouse.
PrimaryDevice
.GetPosition(this);
519
((IsMouseCaptured && (Mouse.
PrimaryDevice
.LeftButton == MouseButtonState.Pressed) && !IsSpaceKeyDown)))
System\Windows\Controls\ToolBarTray.cs (1)
532
Point pointRelativeToToolBarTray = Mouse.
PrimaryDevice
.GetPosition((IInputElement)this);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1048
PresentationSource mouseSource = Mouse.
PrimaryDevice
.ActiveSource;