483 references to Mouse
PresentationCore (225)
Core\CSharp\MS\Internal\SynchronizedInputHelper.cs (4)
49re == Mouse.MouseDownEvent || 50re == Mouse.MouseUpEvent); 280e = new RoutedEvent[] {Mouse.MouseDownEvent}; 284e = new RoutedEvent[] {Mouse.MouseUpEvent};
Core\CSharp\System\Windows\ContentElement.cs (5)
272return (Mouse.DirectlyOver == this); 300Mouse.PrimaryDevice.ReevaluateMouseOver(this, oldParent, isCoreParent); 305Mouse.PrimaryDevice.ReevaluateCapture(this, oldParent, isCoreParent); 375return Mouse.Capture(this); 383Mouse.Capture(null);
Core\CSharp\System\Windows\Generated\ContentElement.cs (39)
880public static readonly RoutedEvent PreviewMouseDownEvent = Mouse.PreviewMouseDownEvent.AddOwner(_typeofThis); 887add { AddHandler(Mouse.PreviewMouseDownEvent, value, false); } 888remove { RemoveHandler(Mouse.PreviewMouseDownEvent, value); } 899public static readonly RoutedEvent MouseDownEvent = Mouse.MouseDownEvent.AddOwner(_typeofThis); 906add { AddHandler(Mouse.MouseDownEvent, value, false); } 907remove { RemoveHandler(Mouse.MouseDownEvent, value); } 918public static readonly RoutedEvent PreviewMouseUpEvent = Mouse.PreviewMouseUpEvent.AddOwner(_typeofThis); 925add { AddHandler(Mouse.PreviewMouseUpEvent, value, false); } 926remove { RemoveHandler(Mouse.PreviewMouseUpEvent, value); } 937public static readonly RoutedEvent MouseUpEvent = Mouse.MouseUpEvent.AddOwner(_typeofThis); 944add { AddHandler(Mouse.MouseUpEvent, value, false); } 945remove { RemoveHandler(Mouse.MouseUpEvent, value); } 1108public static readonly RoutedEvent PreviewMouseMoveEvent = Mouse.PreviewMouseMoveEvent.AddOwner(_typeofThis); 1115add { AddHandler(Mouse.PreviewMouseMoveEvent, value, false); } 1116remove { RemoveHandler(Mouse.PreviewMouseMoveEvent, value); } 1127public static readonly RoutedEvent MouseMoveEvent = Mouse.MouseMoveEvent.AddOwner(_typeofThis); 1134add { AddHandler(Mouse.MouseMoveEvent, value, false); } 1135remove { RemoveHandler(Mouse.MouseMoveEvent, value); } 1146public static readonly RoutedEvent PreviewMouseWheelEvent = Mouse.PreviewMouseWheelEvent.AddOwner(_typeofThis); 1153add { AddHandler(Mouse.PreviewMouseWheelEvent, value, false); } 1154remove { RemoveHandler(Mouse.PreviewMouseWheelEvent, value); } 1165public static readonly RoutedEvent MouseWheelEvent = Mouse.MouseWheelEvent.AddOwner(_typeofThis); 1172add { AddHandler(Mouse.MouseWheelEvent, value, false); } 1173remove { RemoveHandler(Mouse.MouseWheelEvent, value); } 1184public static readonly RoutedEvent MouseEnterEvent = Mouse.MouseEnterEvent.AddOwner(_typeofThis); 1191add { AddHandler(Mouse.MouseEnterEvent, value, false); } 1192remove { RemoveHandler(Mouse.MouseEnterEvent, value); } 1203public static readonly RoutedEvent MouseLeaveEvent = Mouse.MouseLeaveEvent.AddOwner(_typeofThis); 1210add { AddHandler(Mouse.MouseLeaveEvent, value, false); } 1211remove { RemoveHandler(Mouse.MouseLeaveEvent, value); } 1222public static readonly RoutedEvent GotMouseCaptureEvent = Mouse.GotMouseCaptureEvent.AddOwner(_typeofThis); 1229add { AddHandler(Mouse.GotMouseCaptureEvent, value, false); } 1230remove { RemoveHandler(Mouse.GotMouseCaptureEvent, value); } 1241public static readonly RoutedEvent LostMouseCaptureEvent = Mouse.LostMouseCaptureEvent.AddOwner(_typeofThis); 1248add { AddHandler(Mouse.LostMouseCaptureEvent, value, false); } 1249remove { RemoveHandler(Mouse.LostMouseCaptureEvent, value); } 1260public static readonly RoutedEvent QueryCursorEvent = Mouse.QueryCursorEvent.AddOwner(_typeofThis); 1267add { AddHandler(Mouse.QueryCursorEvent, value, false); } 1268remove { RemoveHandler(Mouse.QueryCursorEvent, value); }
Core\CSharp\System\Windows\Generated\UIElement.cs (52)
805EventManager.RegisterClassHandler(type, Mouse.PreviewMouseDownEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseDownThunk), true); 806EventManager.RegisterClassHandler(type, Mouse.MouseDownEvent, new MouseButtonEventHandler(UIElement.OnMouseDownThunk), true); 807EventManager.RegisterClassHandler(type, Mouse.PreviewMouseUpEvent, new MouseButtonEventHandler(UIElement.OnPreviewMouseUpThunk), true); 808EventManager.RegisterClassHandler(type, Mouse.MouseUpEvent, new MouseButtonEventHandler(UIElement.OnMouseUpThunk), true); 817EventManager.RegisterClassHandler(type, Mouse.PreviewMouseMoveEvent, new MouseEventHandler(UIElement.OnPreviewMouseMoveThunk), false); 818EventManager.RegisterClassHandler(type, Mouse.MouseMoveEvent, new MouseEventHandler(UIElement.OnMouseMoveThunk), false); 819EventManager.RegisterClassHandler(type, Mouse.PreviewMouseWheelEvent, new MouseWheelEventHandler(UIElement.OnPreviewMouseWheelThunk), false); 820EventManager.RegisterClassHandler(type, Mouse.MouseWheelEvent, new MouseWheelEventHandler(UIElement.OnMouseWheelThunk), false); 821EventManager.RegisterClassHandler(type, Mouse.MouseEnterEvent, new MouseEventHandler(UIElement.OnMouseEnterThunk), false); 822EventManager.RegisterClassHandler(type, Mouse.MouseLeaveEvent, new MouseEventHandler(UIElement.OnMouseLeaveThunk), false); 823EventManager.RegisterClassHandler(type, Mouse.GotMouseCaptureEvent, new MouseEventHandler(UIElement.OnGotMouseCaptureThunk), false); 824EventManager.RegisterClassHandler(type, Mouse.LostMouseCaptureEvent, new MouseEventHandler(UIElement.OnLostMouseCaptureThunk), false); 825EventManager.RegisterClassHandler(type, Mouse.QueryCursorEvent, new QueryCursorEventHandler(UIElement.OnQueryCursorThunk), false); 3158public static readonly RoutedEvent PreviewMouseDownEvent = Mouse.PreviewMouseDownEvent.AddOwner(_typeofThis); 3165add { AddHandler(Mouse.PreviewMouseDownEvent, value, false); } 3166remove { RemoveHandler(Mouse.PreviewMouseDownEvent, value); } 3177public static readonly RoutedEvent MouseDownEvent = Mouse.MouseDownEvent.AddOwner(_typeofThis); 3184add { AddHandler(Mouse.MouseDownEvent, value, false); } 3185remove { RemoveHandler(Mouse.MouseDownEvent, value); } 3196public static readonly RoutedEvent PreviewMouseUpEvent = Mouse.PreviewMouseUpEvent.AddOwner(_typeofThis); 3203add { AddHandler(Mouse.PreviewMouseUpEvent, value, false); } 3204remove { RemoveHandler(Mouse.PreviewMouseUpEvent, value); } 3215public static readonly RoutedEvent MouseUpEvent = Mouse.MouseUpEvent.AddOwner(_typeofThis); 3222add { AddHandler(Mouse.MouseUpEvent, value, false); } 3223remove { RemoveHandler(Mouse.MouseUpEvent, value); } 3386public static readonly RoutedEvent PreviewMouseMoveEvent = Mouse.PreviewMouseMoveEvent.AddOwner(_typeofThis); 3393add { AddHandler(Mouse.PreviewMouseMoveEvent, value, false); } 3394remove { RemoveHandler(Mouse.PreviewMouseMoveEvent, value); } 3405public static readonly RoutedEvent MouseMoveEvent = Mouse.MouseMoveEvent.AddOwner(_typeofThis); 3412add { AddHandler(Mouse.MouseMoveEvent, value, false); } 3413remove { RemoveHandler(Mouse.MouseMoveEvent, value); } 3424public static readonly RoutedEvent PreviewMouseWheelEvent = Mouse.PreviewMouseWheelEvent.AddOwner(_typeofThis); 3431add { AddHandler(Mouse.PreviewMouseWheelEvent, value, false); } 3432remove { RemoveHandler(Mouse.PreviewMouseWheelEvent, value); } 3443public static readonly RoutedEvent MouseWheelEvent = Mouse.MouseWheelEvent.AddOwner(_typeofThis); 3450add { AddHandler(Mouse.MouseWheelEvent, value, false); } 3451remove { RemoveHandler(Mouse.MouseWheelEvent, value); } 3462public static readonly RoutedEvent MouseEnterEvent = Mouse.MouseEnterEvent.AddOwner(_typeofThis); 3469add { AddHandler(Mouse.MouseEnterEvent, value, false); } 3470remove { RemoveHandler(Mouse.MouseEnterEvent, value); } 3481public static readonly RoutedEvent MouseLeaveEvent = Mouse.MouseLeaveEvent.AddOwner(_typeofThis); 3488add { AddHandler(Mouse.MouseLeaveEvent, value, false); } 3489remove { RemoveHandler(Mouse.MouseLeaveEvent, value); } 3500public static readonly RoutedEvent GotMouseCaptureEvent = Mouse.GotMouseCaptureEvent.AddOwner(_typeofThis); 3507add { AddHandler(Mouse.GotMouseCaptureEvent, value, false); } 3508remove { RemoveHandler(Mouse.GotMouseCaptureEvent, value); } 3519public static readonly RoutedEvent LostMouseCaptureEvent = Mouse.LostMouseCaptureEvent.AddOwner(_typeofThis); 3526add { AddHandler(Mouse.LostMouseCaptureEvent, value, false); } 3527remove { RemoveHandler(Mouse.LostMouseCaptureEvent, value); } 3538public static readonly RoutedEvent QueryCursorEvent = Mouse.QueryCursorEvent.AddOwner(_typeofThis); 3545add { AddHandler(Mouse.QueryCursorEvent, value, false); } 3546remove { RemoveHandler(Mouse.QueryCursorEvent, value); }
Core\CSharp\System\Windows\Generated\UIElement3D.cs (39)
586public static readonly RoutedEvent PreviewMouseDownEvent = Mouse.PreviewMouseDownEvent.AddOwner(_typeofThis); 593add { AddHandler(Mouse.PreviewMouseDownEvent, value, false); } 594remove { RemoveHandler(Mouse.PreviewMouseDownEvent, value); } 605public static readonly RoutedEvent MouseDownEvent = Mouse.MouseDownEvent.AddOwner(_typeofThis); 612add { AddHandler(Mouse.MouseDownEvent, value, false); } 613remove { RemoveHandler(Mouse.MouseDownEvent, value); } 624public static readonly RoutedEvent PreviewMouseUpEvent = Mouse.PreviewMouseUpEvent.AddOwner(_typeofThis); 631add { AddHandler(Mouse.PreviewMouseUpEvent, value, false); } 632remove { RemoveHandler(Mouse.PreviewMouseUpEvent, value); } 643public static readonly RoutedEvent MouseUpEvent = Mouse.MouseUpEvent.AddOwner(_typeofThis); 650add { AddHandler(Mouse.MouseUpEvent, value, false); } 651remove { RemoveHandler(Mouse.MouseUpEvent, value); } 814public static readonly RoutedEvent PreviewMouseMoveEvent = Mouse.PreviewMouseMoveEvent.AddOwner(_typeofThis); 821add { AddHandler(Mouse.PreviewMouseMoveEvent, value, false); } 822remove { RemoveHandler(Mouse.PreviewMouseMoveEvent, value); } 833public static readonly RoutedEvent MouseMoveEvent = Mouse.MouseMoveEvent.AddOwner(_typeofThis); 840add { AddHandler(Mouse.MouseMoveEvent, value, false); } 841remove { RemoveHandler(Mouse.MouseMoveEvent, value); } 852public static readonly RoutedEvent PreviewMouseWheelEvent = Mouse.PreviewMouseWheelEvent.AddOwner(_typeofThis); 859add { AddHandler(Mouse.PreviewMouseWheelEvent, value, false); } 860remove { RemoveHandler(Mouse.PreviewMouseWheelEvent, value); } 871public static readonly RoutedEvent MouseWheelEvent = Mouse.MouseWheelEvent.AddOwner(_typeofThis); 878add { AddHandler(Mouse.MouseWheelEvent, value, false); } 879remove { RemoveHandler(Mouse.MouseWheelEvent, value); } 890public static readonly RoutedEvent MouseEnterEvent = Mouse.MouseEnterEvent.AddOwner(_typeofThis); 897add { AddHandler(Mouse.MouseEnterEvent, value, false); } 898remove { RemoveHandler(Mouse.MouseEnterEvent, value); } 909public static readonly RoutedEvent MouseLeaveEvent = Mouse.MouseLeaveEvent.AddOwner(_typeofThis); 916add { AddHandler(Mouse.MouseLeaveEvent, value, false); } 917remove { RemoveHandler(Mouse.MouseLeaveEvent, value); } 928public static readonly RoutedEvent GotMouseCaptureEvent = Mouse.GotMouseCaptureEvent.AddOwner(_typeofThis); 935add { AddHandler(Mouse.GotMouseCaptureEvent, value, false); } 936remove { RemoveHandler(Mouse.GotMouseCaptureEvent, value); } 947public static readonly RoutedEvent LostMouseCaptureEvent = Mouse.LostMouseCaptureEvent.AddOwner(_typeofThis); 954add { AddHandler(Mouse.LostMouseCaptureEvent, value, false); } 955remove { RemoveHandler(Mouse.LostMouseCaptureEvent, value); } 966public static readonly RoutedEvent QueryCursorEvent = Mouse.QueryCursorEvent.AddOwner(_typeofThis); 973add { AddHandler(Mouse.QueryCursorEvent, value, false); } 974remove { RemoveHandler(Mouse.QueryCursorEvent, value); }
Core\CSharp\System\Windows\Input\Command\CommandDevice.cs (2)
136e.StagingItem.Input.RoutedEvent == Mouse.MouseUpEvent || 306return Mouse.DirectlyOver;
Core\CSharp\System\Windows\Input\Mouse.cs (32)
25public static readonly RoutedEvent PreviewMouseMoveEvent = EventManager.RegisterRoutedEvent("PreviewMouseMove", RoutingStrategy.Tunnel, typeof(MouseEventHandler), typeof(Mouse)); 50public static readonly RoutedEvent MouseMoveEvent = EventManager.RegisterRoutedEvent("MouseMove", RoutingStrategy.Bubble, typeof(MouseEventHandler), typeof(Mouse)); 75public static readonly RoutedEvent PreviewMouseDownOutsideCapturedElementEvent = EventManager.RegisterRoutedEvent("PreviewMouseDownOutsideCapturedElement", RoutingStrategy.Tunnel, typeof(MouseButtonEventHandler), typeof(Mouse)); 100public static readonly RoutedEvent PreviewMouseUpOutsideCapturedElementEvent = EventManager.RegisterRoutedEvent("PreviewMouseUpOutsideCapturedElement", RoutingStrategy.Tunnel, typeof(MouseButtonEventHandler), typeof(Mouse)); 125public static readonly RoutedEvent PreviewMouseDownEvent = EventManager.RegisterRoutedEvent("PreviewMouseDown", RoutingStrategy.Tunnel, typeof(MouseButtonEventHandler), typeof(Mouse)); 150public static readonly RoutedEvent MouseDownEvent = EventManager.RegisterRoutedEvent("MouseDown", RoutingStrategy.Bubble, typeof(MouseButtonEventHandler), typeof(Mouse)); 175public static readonly RoutedEvent PreviewMouseUpEvent = EventManager.RegisterRoutedEvent("PreviewMouseUp", RoutingStrategy.Tunnel, typeof(MouseButtonEventHandler), typeof(Mouse)); 200public static readonly RoutedEvent MouseUpEvent = EventManager.RegisterRoutedEvent("MouseUp", RoutingStrategy.Bubble, typeof(MouseButtonEventHandler), typeof(Mouse)); 225public static readonly RoutedEvent PreviewMouseWheelEvent = EventManager.RegisterRoutedEvent("PreviewMouseWheel", RoutingStrategy.Tunnel, typeof(MouseWheelEventHandler), typeof(Mouse)); 250public static readonly RoutedEvent MouseWheelEvent = EventManager.RegisterRoutedEvent("MouseWheel", RoutingStrategy.Bubble, typeof(MouseWheelEventHandler), typeof(Mouse)); 275public static readonly RoutedEvent MouseEnterEvent = EventManager.RegisterRoutedEvent("MouseEnter", RoutingStrategy.Direct, typeof(MouseEventHandler), typeof(Mouse)); 300public static readonly RoutedEvent MouseLeaveEvent = EventManager.RegisterRoutedEvent("MouseLeave", RoutingStrategy.Direct, typeof(MouseEventHandler), typeof(Mouse)); 325public static readonly RoutedEvent GotMouseCaptureEvent = EventManager.RegisterRoutedEvent("GotMouseCapture", RoutingStrategy.Bubble, typeof(MouseEventHandler), typeof(Mouse)); 350public static readonly RoutedEvent LostMouseCaptureEvent = EventManager.RegisterRoutedEvent("LostMouseCapture", RoutingStrategy.Bubble, typeof(MouseEventHandler), typeof(Mouse)); 375public static readonly RoutedEvent QueryCursorEvent = EventManager.RegisterRoutedEvent("QueryCursor", RoutingStrategy.Bubble, typeof(QueryCursorEventHandler), typeof(Mouse)); 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\Input\MouseDevice.cs (29)
1038queryCursor.RoutedEvent=Mouse.QueryCursorEvent; 1240lostCapture.RoutedEvent=Mouse.LostMouseCaptureEvent; 1248gotCapture.RoutedEvent=Mouse.GotMouseCaptureEvent; 1442if (e.StagingItem.Input.RoutedEvent == Mouse.PreviewMouseDownEvent) 1452clickThrough.RoutedEvent=Mouse.PreviewMouseDownOutsideCapturedElementEvent; 1458else if (e.StagingItem.Input.RoutedEvent == Mouse.PreviewMouseUpEvent) 1468clickThrough.RoutedEvent=Mouse.PreviewMouseUpOutsideCapturedElementEvent; 1884if (e.StagingItem.Input.RoutedEvent == Mouse.PreviewMouseDownEvent) 1924if (e.StagingItem.Input.RoutedEvent == Mouse.PreviewMouseWheelEvent) 1930wheel.RoutedEvent=Mouse.MouseWheelEvent; 1943if (e.StagingItem.Input.RoutedEvent == Mouse.PreviewMouseDownEvent) 1950down.RoutedEvent=Mouse.MouseDownEvent; 1956if (e.StagingItem.Input.RoutedEvent == Mouse.PreviewMouseUpEvent) 1962up.RoutedEvent=Mouse.MouseUpEvent; 1968if (e.StagingItem.Input.RoutedEvent == Mouse.PreviewMouseMoveEvent) 1974move.RoutedEvent=Mouse.MouseMoveEvent; 1981if (e.StagingItem.Input.RoutedEvent == Mouse.QueryCursorEvent) 2022previewWheel.RoutedEvent=Mouse.PreviewMouseWheelEvent; 2042previewDown.RoutedEvent=Mouse.PreviewMouseDownEvent; 2051previewUp.RoutedEvent=Mouse.PreviewMouseUpEvent; 2060previewDown.RoutedEvent=Mouse.PreviewMouseDownEvent; 2069previewUp.RoutedEvent=Mouse.PreviewMouseUpEvent; 2078previewDown.RoutedEvent=Mouse.PreviewMouseDownEvent; 2087previewUp.RoutedEvent=Mouse.PreviewMouseUpEvent; 2096previewDown.RoutedEvent=Mouse.PreviewMouseDownEvent; 2105previewUp.RoutedEvent=Mouse.PreviewMouseUpEvent; 2114previewDown.RoutedEvent=Mouse.PreviewMouseDownEvent; 2123previewUp.RoutedEvent=Mouse.PreviewMouseUpEvent; 2132previewMove.RoutedEvent=Mouse.PreviewMouseMoveEvent;
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (1)
874Mouse.UpdateCursor();
Core\CSharp\System\Windows\MouseOverProperty.cs (4)
45MouseEventArgs mouseEventArgs = new MouseEventArgs(Mouse.PrimaryDevice, Environment.TickCount, Mouse.PrimaryDevice.StylusDevice); 46mouseEventArgs.RoutedEvent = oldValue ? Mouse.MouseLeaveEvent : Mouse.MouseEnterEvent;
Core\CSharp\System\Windows\UIElement.cs (12)
2224if(e.RoutedEvent == Mouse.PreviewMouseDownEvent) 2226else if(e.RoutedEvent == Mouse.MouseDownEvent) 2228else if(e.RoutedEvent == Mouse.PreviewMouseUpEvent) 2234if(e.RoutedEvent == Mouse.PreviewMouseDownEvent) 2236else if(e.RoutedEvent == Mouse.MouseDownEvent) 2238else if(e.RoutedEvent == Mouse.PreviewMouseUpEvent) 2401return (Mouse.DirectlyOver == this); 2430Mouse.PrimaryDevice.ReevaluateMouseOver(this, oldParent, isCoreParent); 2435Mouse.PrimaryDevice.ReevaluateCapture(this, oldParent, isCoreParent); 2508return Mouse.Capture(this); 2516if (Mouse.Captured == this) 2518Mouse.Capture(null);
Core\CSharp\System\Windows\UIElement3D.cs (6)
361return (Mouse.DirectlyOver == this); 390Mouse.PrimaryDevice.ReevaluateMouseOver(this, oldParent, isCoreParent); 395Mouse.PrimaryDevice.ReevaluateCapture(this, oldParent, isCoreParent); 468return Mouse.Capture(this); 476if (Mouse.Captured == this) 478Mouse.Capture(null);
PresentationFramework (181)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (1)
965Point currentPosition = Mouse.PrimaryDevice.GetPosition(textView.RenderScope);
src\Framework\MS\Internal\Documents\DocumentGridContextMenu.cs (1)
130uiScopeMouseDownPoint = Mouse.GetPosition(documentGrid);
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (3)
448bool mouseDown = (_inkCanvas.IsMouseOver && Mouse.PrimaryDevice.LeftButton == MouseButtonState.Pressed); 1057_inkCanvas.AddHandler(Mouse.MouseMoveEvent, new MouseEventHandler(OnInkCanvasDeviceMove<MouseEventArgs>)); 1095_inkCanvas.RemoveHandler(Mouse.MouseMoveEvent, new MouseEventHandler(OnInkCanvasDeviceMove<MouseEventArgs>));
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (5)
75MouseDevice mouse = Mouse.PrimaryDevice; 94InkCanvas.SelectionAdorner.AddHandler(Mouse.MouseUpEvent, new MouseButtonEventHandler(OnMouseUp)); 95InkCanvas.SelectionAdorner.AddHandler(Mouse.MouseMoveEvent, new MouseEventHandler(OnMouseMove)); 107InkCanvas.SelectionAdorner.RemoveHandler(Mouse.MouseUpEvent, new MouseButtonEventHandler(OnMouseUp)); 108InkCanvas.SelectionAdorner.RemoveHandler(Mouse.MouseMoveEvent, new MouseEventHandler(OnMouseMove));
src\Framework\MS\Internal\Ink\SelectionEditor.cs (10)
76Point currentPosition = Mouse.PrimaryDevice.GetPosition(InkCanvas.SelectionAdorner); 96InkCanvas.SelectionAdorner.AddHandler(Mouse.MouseDownEvent, new MouseButtonEventHandler(OnAdornerMouseButtonDownEvent)); 97InkCanvas.SelectionAdorner.AddHandler(Mouse.MouseMoveEvent, new MouseEventHandler(OnAdornerMouseMoveEvent)); 98InkCanvas.SelectionAdorner.AddHandler(Mouse.MouseEnterEvent, new MouseEventHandler(OnAdornerMouseMoveEvent)); 99InkCanvas.SelectionAdorner.AddHandler(Mouse.MouseLeaveEvent, new MouseEventHandler(OnAdornerMouseLeaveEvent)); 101Point currentPosition = Mouse.PrimaryDevice.GetPosition(InkCanvas.SelectionAdorner); 111InkCanvas.SelectionAdorner.RemoveHandler(Mouse.MouseDownEvent, new MouseButtonEventHandler(OnAdornerMouseButtonDownEvent)); 112InkCanvas.SelectionAdorner.RemoveHandler(Mouse.MouseMoveEvent, new MouseEventHandler(OnAdornerMouseMoveEvent)); 113InkCanvas.SelectionAdorner.RemoveHandler(Mouse.MouseEnterEvent, new MouseEventHandler(OnAdornerMouseMoveEvent)); 114InkCanvas.SelectionAdorner.RemoveHandler(Mouse.MouseLeaveEvent, new MouseEventHandler(OnAdornerMouseLeaveEvent));
src\Framework\System\Windows\Controls\ComboBox.cs (21)
59EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture)); 60EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnMouseButtonDown), true); // call us even if the transparent button in the style gets the click. 61EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.MouseMoveEvent, new MouseEventHandler(OnMouseMove)); 62EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.PreviewMouseDownEvent, new MouseButtonEventHandler(OnPreviewMouseButtonDown)); 63EventManager.RegisterClassHandler(typeof(ComboBox), Mouse.MouseWheelEvent, new MouseWheelEventHandler(OnMouseWheel), true); // call us even if textbox in the style gets the click. 235Mouse.Capture(comboBox, CaptureMode.SubTree); 308Mouse.Capture(null); 1280if (IsDropDownOpen && Mouse.Captured == this && DidMouseMove()) 1689if (Mouse.Captured != comboBox) 1695if (Mouse.Captured == null || !MenuBase.IsDescendant(comboBox, Mouse.Captured as DependencyObject)) 1705if (comboBox.IsDropDownOpen && Mouse.Captured == null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero) 1707Mouse.Capture(comboBox, CaptureMode.SubTree); 1735if (Mouse.Captured == comboBox && e.OriginalSource == comboBox) 1738Debug.Assert(!comboBox.CheckAccess() || Mouse.Captured != comboBox, "On the dispatcher thread, ComboBox should not have capture after closing the dropdown"); 1786Debug.Assert(!CheckAccess() || Mouse.Captured != this, "On the dispatcher thread, ComboBox should not have capture after closing the dropdown"); 1814if (Mouse.LeftButton == MouseButtonState.Pressed && comboBox.HasMouseEnteredItemsHost) 1816if (Mouse.Captured == comboBox) 1818if (Mouse.LeftButton == MouseButtonState.Pressed) 1882if (Mouse.LeftButton == MouseButtonState.Pressed 1931return Mouse.Captured == this;
src\Framework\System\Windows\Controls\ContextMenu.cs (2)
532if (Mouse.LeftButton == MouseButtonState.Pressed) 536if (Mouse.RightButton == MouseButtonState.Pressed)
src\Framework\System\Windows\Controls\DataGrid.cs (11)
1746if (Mouse.LeftButton == MouseButtonState.Pressed) 4815if (Mouse.Capture(this, CaptureMode.SubTree)) 4818_dragPoint = Mouse.GetPosition(this); 4825if (Mouse.Captured == this) 6266Point currentMousePosition = Mouse.GetPosition(this); 6447Point pt = Mouse.GetPosition(row); 6567Point pt = Mouse.GetPosition(cell); 6577Point rowPt = Mouse.GetPosition(rowOwner); 6617UIElement element = Mouse.DirectlyOver as UIElement; 6638UIElement element = Mouse.DirectlyOver as UIElement; 6669Point pt = Mouse.GetPosition(itemsHost);
src\Framework\System\Windows\Controls\DataGridCell.cs (1)
938dataGridOwner.HandleSelectionForCellInput(this, /* startDragging = */ Mouse.Captured == null, /* allowsExtendSelect = */ true, /* allowsMinimalSelect = */ true);
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (1)
190if ((mouseArgs == null) || !PlaceCaretOnTextBox(textBox, Mouse.GetPosition(textBox)))
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\InkCanvas.cs (4)
81EventManager.RegisterClassHandler(ownerType, Mouse.MouseDownEvent, 87EventManager.RegisterClassHandler(ownerType, Mouse.MouseUpEvent, 92EventManager.RegisterClassHandler(ownerType, Mouse.QueryCursorEvent, 3051Mouse.UpdateCursor();
src\Framework\System\Windows\Controls\ItemsControl.cs (5)
3303Point mousePosition = Mouse.GetPosition(relativeTo); 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 (8)
77EventManager.RegisterClassHandler(typeof(ListBox), Mouse.MouseUpEvent, new MouseButtonEventHandler(OnMouseButtonUp), true); 510if (e.OriginalSource == this && Mouse.Captured == this) 512if (Mouse.LeftButton == MouseButtonState.Pressed) 659if (mouseButton == MouseButton.Left && Mouse.Captured != this) 661Mouse.Capture(this, CaptureMode.SubTree); 727if ((Mouse.Captured == this) && DidMouseMove()) 729NavigateToItem(ItemInfoFromContainer(listItem), new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers)); 925if (Mouse.LeftButton == MouseButtonState.Pressed)
src\Framework\System\Windows\Controls\ListBoxItem.cs (1)
307if (parent != null && Mouse.LeftButton == MouseButtonState.Pressed)
src\Framework\System\Windows\Controls\Menu.cs (1)
367if (Mouse.Captured != null)
src\Framework\System\Windows\Controls\MenuItem.cs (6)
862if ((Mouse.LeftButton == MouseButtonState.Pressed) && 864itemBounds.Contains(Mouse.GetPosition(this))) 1594if (Mouse.Captured == null || Mouse.Captured is MenuBase) 2544if ((Mouse.Captured == elem) && (Mouse.DirectlyOver == elem))
src\Framework\System\Windows\Controls\PopupControlService.cs (11)
68if ((Mouse.LeftButton == MouseButtonState.Pressed) || 69(Mouse.RightButton == MouseButtonState.Pressed)) 75IInputElement directlyOver = Mouse.PrimaryDevice.RawDirectlyOver; 78Point pt = Mouse.PrimaryDevice.GetPosition(directlyOver); 82if (Mouse.CapturedMode != CaptureMode.None) 90pt = Mouse.PrimaryDevice.GetPosition(rootAsUIElement); 97pt = Mouse.PrimaryDevice.GetPosition(directlyOver); 145else if (e.StagingItem.Input.RoutedEvent == Mouse.MouseUpEvent) 149else if (e.StagingItem.Input.RoutedEvent == Mouse.MouseDownEvent) 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\Primitives\CalendarItem.cs (2)
677Mouse.Capture(this, CaptureMode.SubTree); 881Mouse.Capture(this, CaptureMode.SubTree);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
605Mouse.LeftButton == MouseButtonState.Pressed)
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
138dataGridOwner.HandleSelectionForRowHeaderAndDetailsInput(rowOwner, /* startDragging = */ Mouse.Captured == null);
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
561if (Mouse.Captured == this)
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (16)
57EventManager.RegisterClassHandler(typeof(MenuBase), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnMouseButtonDown)); 58EventManager.RegisterClassHandler(typeof(MenuBase), Mouse.MouseUpEvent, new MouseButtonEventHandler(OnMouseButtonUp)); 59EventManager.RegisterClassHandler(typeof(MenuBase), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture)); 62EventManager.RegisterClassHandler(typeof(MenuBase), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnPromotedMouseButton)); 63EventManager.RegisterClassHandler(typeof(MenuBase), Mouse.MouseUpEvent, new MouseButtonEventHandler(OnPromotedMouseButton)); 65EventManager.RegisterClassHandler(typeof(MenuBase), Mouse.PreviewMouseDownOutsideCapturedElementEvent, new MouseButtonEventHandler(OnClickThroughThunk)); 66EventManager.RegisterClassHandler(typeof(MenuBase), Mouse.PreviewMouseUpOutsideCapturedElementEvent, new MouseButtonEventHandler(OnClickThroughThunk)); 548if (Mouse.Captured != menu) 554if (Mouse.Captured == null || !MenuBase.IsDescendant(menu, Mouse.Captured as DependencyObject)) 564if (menu.IsMenuMode && Mouse.Captured == null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero) 566Mouse.Capture(menu, CaptureMode.SubTree); 794return Mouse.Captured == this; 828if (!IsDescendant(this, Mouse.Captured as Visual) && !Mouse.Capture(this, CaptureMode.SubTree)) 885Mouse.Capture(null);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (17)
61EventManager.RegisterClassHandler(typeof(Popup), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture)); 1107Debug.Assert( Mouse.Captured == _popupRoot.Value, "_cacheValid[(int)CacheBits.CaptureEngaged] == true but Mouse.Captured != _popupRoot"); 1138IInputElement capturedElement = Mouse.Captured; 1149if (Mouse.LeftButton != MouseButtonState.Released || 1150Mouse.RightButton != MouseButtonState.Released) 1172Mouse.Capture(_popupRoot.Value, CaptureMode.SubTree); 1186if (Mouse.Captured == _popupRoot.Value) 1190Mouse.Capture(null); 1230bool reestablishCapture = e.OriginalSource != root && Mouse.Captured == null && MS.Win32.SafeNativeMethods.GetCapture() == IntPtr.Zero; 1239if(Mouse.Captured != root) 1244PopupRoot newRoot = Mouse.Captured as PopupRoot; 1249bool newCaptureInsidePopup = childPopupTookCapture || (Mouse.Captured != null && MenuBase.IsDescendant(root, Mouse.Captured as DependencyObject)); 1250bool newCaptureOutsidePopup = !newCaptureInsidePopup && Mouse.Captured != root; 1374e.RoutedEvent != Mouse.LostMouseCaptureEvent; 3083if (Mouse.DirectlyOver != null) 3096Point pt = Mouse.GetPosition(relativeTarget);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (2)
1029_lastMousePosition = Mouse.GetPosition(this); 1036Point newPosition = Mouse.GetPosition(this);
src\Framework\System\Windows\Controls\Primitives\Thumb.cs (2)
55EventManager.RegisterClassHandler(typeof(Thumb), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture)); 283if (Mouse.Captured != thumb)
src\Framework\System\Windows\Controls\Primitives\Track.cs (1)
811Mouse.Synchronize();
src\Framework\System\Windows\Controls\Slider.cs (1)
78EventManager.RegisterClassHandler(typeof(Slider), Mouse.MouseDownEvent, new MouseButtonEventHandler(Slider._OnMouseLeftButtonDown),true);
src\Framework\System\Windows\Controls\StickyNote.cs (2)
123EventManager.RegisterClassHandler(owner, Mouse.PreviewMouseDownEvent, new MouseButtonEventHandler(_OnPreviewDeviceDown<MouseButtonEventArgs>)); 124EventManager.RegisterClassHandler(owner, Mouse.MouseDownEvent, new MouseButtonEventHandler(_OnDeviceDown<MouseButtonEventArgs>));
src\Framework\System\Windows\Controls\ToolBar.cs (5)
82EventManager.RegisterClassHandler(typeof(ToolBar), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnMouseButtonDown), true); 259Mouse.Capture(toolBar, CaptureMode.SubTree); 271if (Mouse.Captured == toolBar) 273Mouse.Capture(null); 593if (Mouse.Captured == null)
src\Framework\System\Windows\Controls\ToolBarTray.cs (1)
543Point pointRelativeToToolBarTray = Mouse.PrimaryDevice.GetPosition((IInputElement)this);
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
49EventManager.RegisterClassHandler(typeof(TreeViewItem), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnMouseButtonDown), true);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
9273if ((Mouse.LeftButton == MouseButtonState.Pressed) &&
src\Framework\System\Windows\Documents\Hyperlink.cs (2)
54EventManager.RegisterClassHandler(typeof(Hyperlink), Mouse.QueryCursorEvent, new QueryCursorEventHandler(OnQueryCursor)); 1062Mouse.Capture(element);
src\Framework\System\Windows\Documents\ImmComposition.cs (3)
1807if (Mouse.LeftButton == MouseButtonState.Pressed) 1811if (Mouse.RightButton == MouseButtonState.Pressed) 1816Point point = Mouse.GetPosition(RenderScope);
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (3)
67Point renderScopeMouseDownPoint = Mouse.GetPosition(This.TextView.RenderScope); 117if (!TextEditorMouse.IsPointWithinInteractiveArea(This, Mouse.GetPosition(This.UiScope))) 221Point uiScopeMouseDownPoint = Mouse.GetPosition(This.UiScope);
src\Framework\System\windows\Documents\TextEditorMouse.cs (6)
53EventManager.RegisterClassHandler(controlType, Mouse.QueryCursorEvent, new QueryCursorEventHandler(OnQueryCursor)); 55EventManager.RegisterClassHandler(controlType, Mouse.MouseDownEvent, new MouseButtonEventHandler(OnMouseDown)); 56EventManager.RegisterClassHandler(controlType, Mouse.MouseMoveEvent, new MouseEventHandler(OnMouseMove)); 57EventManager.RegisterClassHandler(controlType, Mouse.MouseUpEvent, new MouseButtonEventHandler(OnMouseUp)); 415if (IsPointWithinInteractiveArea(This, Mouse.GetPosition(This.UiScope))) 724Mouse.UpdateCursor();
src\Framework\System\windows\Documents\TextEditorTyping.cs (4)
78EventManager.RegisterClassHandler(controlType, Mouse.MouseMoveEvent, new MouseEventHandler(OnMouseMove), true /* handledEventsToo */); 79EventManager.RegisterClassHandler(controlType, Mouse.MouseLeaveEvent, new MouseEventHandler(OnMouseLeave), true /* handledEventsToo */); 1927TextPointer pointer = (TextPointer)This.TextView.GetTextPositionFromPoint(Mouse.GetPosition(This.TextView.RenderScope), false); 1933Mouse.UpdateCursor();
src\Framework\System\Windows\Documents\TextStore.cs (3)
2895if (Mouse.LeftButton == MouseButtonState.Pressed) 2899if (Mouse.RightButton == MouseButtonState.Pressed) 2912Point point = Mouse.GetPosition(RenderScope);
src\Framework\System\Windows\FrameworkContentElement.cs (3)
96EventManager.RegisterClassHandler(typeof(FrameworkContentElement), Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkContentElement.OnQueryCursor), true); 945Mouse.UpdateCursor(); 977Mouse.UpdateCursor();
src\Framework\System\Windows\FrameworkElement.cs (3)
2385EventManager.RegisterClassHandler(_typeofThis, Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkElement.OnQueryCursorOverride), true); 3890Mouse.UpdateCursor(); 3925Mouse.UpdateCursor();
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
3338else if (inputEventArgs.RoutedEvent == Mouse.MouseDownEvent 3339|| inputEventArgs.RoutedEvent == Mouse.MouseUpEvent)
src\Framework\System\Windows\Window.cs (1)
302if (Mouse.LeftButton == MouseButtonState.Pressed)
System.Activities.Core.Presentation (11)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (2)
632if (Mouse.DirectlyOver != null) 634removeConnectionPointsAdorner = !typeof(ConnectionPointsAdorner).IsAssignableFrom(Mouse.DirectlyOver.GetType());
System\Activities\Core\Presentation\FlowchartResizeGrip.cs (3)
85Point currentPosition = Mouse.GetPosition(flowchartGrid); 108Mouse.OverrideCursor = null; 109Mouse.Capture(null);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (3)
1236VisualTreeUtils.FindVisualAncestor<VirtualizedContainerService.VirtualizingContainer>(Mouse.DirectlyOver as DependencyObject); 1288if (Mouse.DirectlyOver != null) 1290removeConnectionPointsAdorner = !typeof(ConnectionPointsAdorner).IsAssignableFrom(Mouse.DirectlyOver.GetType());
System\Activities\Core\Presentation\StateContainerResizeGrip.cs (3)
133Point currentPosition = Mouse.GetPosition(stateContainerGrid); 150Mouse.OverrideCursor = null; 151Mouse.Capture(null);
System.Activities.Presentation (66)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Controls\WorkaroundPopup.cs (7)
36Mouse.Capture(this.Child, CaptureMode.SubTree); 66if (!this.releasingCapture && Mouse.Captured != this.Child) 70if (Mouse.Captured == null) 77if (this.IsOpen && Mouse.Captured == null) 79Mouse.Capture(this.Child, CaptureMode.SubTree); 118if (Mouse.Captured == this.Child) 121Mouse.Capture(null);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\PropertyContainerPopupHelper.cs (2)
52DependencyObject potentialDescendant = Mouse.Captured as DependencyObject; 59Mouse.Capture(null);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (3)
449Mouse.OverrideCursor = loadingCursor; 464Mouse.OverrideCursor = null; 584Mouse.OverrideCursor = null;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (2)
456if (typeof(ConnectionPointsAdorner).IsAssignableFrom(Mouse.DirectlyOver.GetType())) 458ConnectionPointsAdorner connPtsAdorner = Mouse.DirectlyOver as ConnectionPointsAdorner;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (2)
77if (typeof(ConnectionPointsAdorner).IsAssignableFrom(Mouse.DirectlyOver.GetType())) 79ConnectionPointsAdorner destConnPtsAdorner = Mouse.DirectlyOver as ConnectionPointsAdorner;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (2)
477&& Mouse.DirectlyOver != null 478&& !(Mouse.DirectlyOver is ConnectionPointsAdorner))
System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (1)
78Mouse.Capture(null);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
1023Mouse.OverrideCursor = (state == Visibility.Visible ? null : Cursors.Wait);
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
267Mouse.OverrideCursor = null; 332Mouse.OverrideCursor = Cursors.Wait;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (16)
328Mouse.OverrideCursor = Cursors.SizeNWSE; 333Mouse.OverrideCursor = Cursors.SizeNESW; 338Mouse.OverrideCursor = Cursors.SizeNESW; 343Mouse.OverrideCursor = Cursors.SizeNWSE; 348Mouse.OverrideCursor = Cursors.SizeNS; 353Mouse.OverrideCursor = Cursors.SizeNS; 358Mouse.OverrideCursor = Cursors.SizeWE; 363Mouse.OverrideCursor = Cursors.SizeWE; 367Mouse.OverrideCursor = null; 373else if (Mouse.OverrideCursor != null) 375Mouse.OverrideCursor = null; 389Mouse.Capture(this.border); 397Mouse.Capture(null); 404Mouse.OverrideCursor = null; 451Point current = Mouse.GetPosition(this); 452Point absolutePosition = Mouse.GetPosition(this.surface);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowHeader.cs (5)
95this.offset = Mouse.GetPosition(this); 96Mouse.OverrideCursor = Cursors.Arrow; 106Point moveTo = Mouse.GetPosition(this.surface); 117Mouse.OverrideCursor = null; 118Mouse.Capture(null);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowResizeGrip.cs (3)
57Point currentPosition = Mouse.GetPosition(this.parent); 70Mouse.OverrideCursor = null; 71Mouse.Capture(null);
System.Activities.Presentation\System\Activities\Presentation\View\ScrollViewerPanner.cs (9)
167Point currentPosition = Mouse.GetPosition(this.scrollViewer); 251this.panningStartPosition = Mouse.GetPosition(this.scrollViewer); 252Mouse.Capture(this.scrollViewer); 259if (e.ChangedButton == this.draggingMouseButton && object.Equals(this.scrollViewer, Mouse.Captured)) 282Point pt = Mouse.GetPosition(this.ScrollViewer); 297return (Mouse.Captured != null) 298&& !object.Equals(Mouse.Captured, this.ScrollViewer); 303return Mouse.LeftButton == MouseButtonState.Released 304&& Mouse.RightButton == MouseButtonState.Released;
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (3)
337Mouse.OverrideCursor = Cursors.Wait; 344if (null != item && item.Header is AssemblyNode && null != Mouse.OverrideCursor) 346Mouse.OverrideCursor = null;
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (3)
155Cursor oldCursor = Mouse.OverrideCursor; 156Mouse.OverrideCursor = Cursors.Wait; 183Mouse.OverrideCursor = oldCursor;
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
687Point position = Mouse.GetPosition(textbox);
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (4)
618Mouse.Capture(null); 744Mouse.Capture(null); 781Mouse.Capture(null); 820Mouse.Capture(null);