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