47 references to PrimaryDevice
PresentationCore (25)
Core\CSharp\System\Windows\ContentElement.cs (2)
300Mouse.PrimaryDevice.ReevaluateMouseOver(this, oldParent, isCoreParent); 305Mouse.PrimaryDevice.ReevaluateCapture(this, oldParent, isCoreParent);
Core\CSharp\System\Windows\Input\Mouse.cs (17)
408return Mouse.PrimaryDevice.DirectlyOver; 420return Mouse.PrimaryDevice.Captured; 431return Mouse.PrimaryDevice.CapturedMode; 443return Mouse.PrimaryDevice.Capture(element); 457return Mouse.PrimaryDevice.Capture(element, captureMode); 478if(Mouse.PrimaryDevice.IsActive) 503return Mouse.PrimaryDevice.OverrideCursor; 509Mouse.PrimaryDevice.OverrideCursor = value; 520return Mouse.PrimaryDevice.SetCursor(cursor); 530return Mouse.PrimaryDevice.LeftButton; 541return Mouse.PrimaryDevice.RightButton; 552return Mouse.PrimaryDevice.MiddleButton; 563return Mouse.PrimaryDevice.XButton1; 574return Mouse.PrimaryDevice.XButton2; 584return Mouse.PrimaryDevice.GetPosition(relativeTo); 592Mouse.PrimaryDevice.Synchronize(); 600Mouse.PrimaryDevice.UpdateCursor();
Core\CSharp\System\Windows\MouseOverProperty.cs (2)
45MouseEventArgs mouseEventArgs = new MouseEventArgs(Mouse.PrimaryDevice, Environment.TickCount, Mouse.PrimaryDevice.StylusDevice);
Core\CSharp\System\Windows\UIElement.cs (2)
2430Mouse.PrimaryDevice.ReevaluateMouseOver(this, oldParent, isCoreParent); 2435Mouse.PrimaryDevice.ReevaluateCapture(this, oldParent, isCoreParent);
Core\CSharp\System\Windows\UIElement3D.cs (2)
390Mouse.PrimaryDevice.ReevaluateMouseOver(this, oldParent, isCoreParent); 395Mouse.PrimaryDevice.ReevaluateCapture(this, oldParent, isCoreParent);
PresentationFramework (22)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (1)
965Point currentPosition = Mouse.PrimaryDevice.GetPosition(textView.RenderScope);
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (1)
448bool mouseDown = (_inkCanvas.IsMouseOver && Mouse.PrimaryDevice.LeftButton == MouseButtonState.Pressed);
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (1)
75MouseDevice mouse = Mouse.PrimaryDevice;
src\Framework\MS\Internal\Ink\SelectionEditor.cs (2)
76Point currentPosition = Mouse.PrimaryDevice.GetPosition(InkCanvas.SelectionAdorner); 101Point currentPosition = Mouse.PrimaryDevice.GetPosition(InkCanvas.SelectionAdorner);
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (2)
240(IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton == MouseButtonState.Pressed))) 839Point pos = Mouse.PrimaryDevice.GetPosition(this);
src\Framework\System\Windows\Controls\ItemsControl.cs (4)
3311NavigateByLine(startingInfo, FocusNavigationDirection.Up, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers)); 3316NavigateByLine(startingInfo, FocusNavigationDirection.Down, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers)); 3331NavigateByLine(startingInfo, direction, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers)); 3341NavigateByLine(startingInfo, direction, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers));
src\Framework\System\Windows\Controls\ListBox.cs (1)
729NavigateToItem(ItemInfoFromContainer(listItem), new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers));
src\Framework\System\Windows\Controls\PopupControlService.cs (6)
75IInputElement directlyOver = Mouse.PrimaryDevice.RawDirectlyOver; 78Point pt = Mouse.PrimaryDevice.GetPosition(directlyOver); 90pt = Mouse.PrimaryDevice.GetPosition(rootAsUIElement); 97pt = Mouse.PrimaryDevice.GetPosition(directlyOver); 190IInputElement directlyOver = Mouse.PrimaryDevice.RawDirectlyOver; 193Point pt = Mouse.PrimaryDevice.GetPosition(directlyOver);
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (3)
131if (IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton == MouseButtonState.Pressed) && !IsSpaceKeyDown) 157Point pos = Mouse.PrimaryDevice.GetPosition(this); 508((IsMouseCaptured && (Mouse.PrimaryDevice.LeftButton == MouseButtonState.Pressed) && !IsSpaceKeyDown)))
src\Framework\System\Windows\Controls\ToolBarTray.cs (1)
543Point pointRelativeToToolBarTray = Mouse.PrimaryDevice.GetPosition((IInputElement)this);