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