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