142 references to Touch
PresentationCore (142)
System\Windows\Generated\ContentElement.cs (30)
2043public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 2051add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 2052remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 2063public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 2071add { AddHandler(Touch.TouchDownEvent, value, false); } 2072remove { RemoveHandler(Touch.TouchDownEvent, value); } 2083public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 2091add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 2092remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 2103public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 2111add { AddHandler(Touch.TouchMoveEvent, value, false); } 2112remove { RemoveHandler(Touch.TouchMoveEvent, value); } 2123public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 2131add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 2132remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 2143public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 2151add { AddHandler(Touch.TouchUpEvent, value, false); } 2152remove { RemoveHandler(Touch.TouchUpEvent, value); } 2163public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 2171add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 2172remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 2183public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 2191add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 2192remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 2203public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 2211add { AddHandler(Touch.TouchEnterEvent, value, false); } 2212remove { RemoveHandler(Touch.TouchEnterEvent, value); } 2223public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 2231add { AddHandler(Touch.TouchLeaveEvent, value, false); } 2232remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
System\Windows\Generated\UIElement.cs (40)
798EventManager.RegisterClassHandler(type, Touch.PreviewTouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchDownThunk), false); 799EventManager.RegisterClassHandler(type, Touch.TouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchDownThunk), false); 800EventManager.RegisterClassHandler(type, Touch.PreviewTouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchMoveThunk), false); 801EventManager.RegisterClassHandler(type, Touch.TouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchMoveThunk), false); 802EventManager.RegisterClassHandler(type, Touch.PreviewTouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchUpThunk), false); 803EventManager.RegisterClassHandler(type, Touch.TouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchUpThunk), false); 804EventManager.RegisterClassHandler(type, Touch.GotTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnGotTouchCaptureThunk), false); 805EventManager.RegisterClassHandler(type, Touch.LostTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnLostTouchCaptureThunk), false); 806EventManager.RegisterClassHandler(type, Touch.TouchEnterEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchEnterThunk), false); 807EventManager.RegisterClassHandler(type, Touch.TouchLeaveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchLeaveThunk), false); 3996public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 4004add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 4005remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 4016public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 4024add { AddHandler(Touch.TouchDownEvent, value, false); } 4025remove { RemoveHandler(Touch.TouchDownEvent, value); } 4036public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 4044add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 4045remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 4056public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 4064add { AddHandler(Touch.TouchMoveEvent, value, false); } 4065remove { RemoveHandler(Touch.TouchMoveEvent, value); } 4076public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 4084add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 4085remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 4096public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 4104add { AddHandler(Touch.TouchUpEvent, value, false); } 4105remove { RemoveHandler(Touch.TouchUpEvent, value); } 4116public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 4124add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 4125remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 4136public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 4144add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 4145remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 4156public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 4164add { AddHandler(Touch.TouchEnterEvent, value, false); } 4165remove { RemoveHandler(Touch.TouchEnterEvent, value); } 4176public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 4184add { AddHandler(Touch.TouchLeaveEvent, value, false); } 4185remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
System\Windows\Generated\UIElement3D.cs (30)
1768public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 1776add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 1777remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 1788public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 1796add { AddHandler(Touch.TouchDownEvent, value, false); } 1797remove { RemoveHandler(Touch.TouchDownEvent, value); } 1808public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 1816add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 1817remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 1828public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 1836add { AddHandler(Touch.TouchMoveEvent, value, false); } 1837remove { RemoveHandler(Touch.TouchMoveEvent, value); } 1848public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 1856add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 1857remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 1868public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 1876add { AddHandler(Touch.TouchUpEvent, value, false); } 1877remove { RemoveHandler(Touch.TouchUpEvent, value); } 1888public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 1896add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 1897remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 1908public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 1916add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 1917remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 1928public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 1936add { AddHandler(Touch.TouchEnterEvent, value, false); } 1937remove { RemoveHandler(Touch.TouchEnterEvent, value); } 1948public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 1956add { AddHandler(Touch.TouchLeaveEvent, value, false); } 1957remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
System\Windows\Input\Touch.cs (10)
12internal static readonly RoutedEvent PreviewTouchDownEvent = EventManager.RegisterRoutedEvent("PreviewTouchDown", RoutingStrategy.Tunnel, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 13internal static readonly RoutedEvent TouchDownEvent = EventManager.RegisterRoutedEvent("TouchDown", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 15internal static readonly RoutedEvent PreviewTouchMoveEvent = EventManager.RegisterRoutedEvent("PreviewTouchMove", RoutingStrategy.Tunnel, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 16internal static readonly RoutedEvent TouchMoveEvent = EventManager.RegisterRoutedEvent("TouchMove", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 18internal static readonly RoutedEvent PreviewTouchUpEvent = EventManager.RegisterRoutedEvent("PreviewTouchUp", RoutingStrategy.Tunnel, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 19internal static readonly RoutedEvent TouchUpEvent = EventManager.RegisterRoutedEvent("TouchUp", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 21internal static readonly RoutedEvent GotTouchCaptureEvent = EventManager.RegisterRoutedEvent("GotTouchCapture", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 22internal static readonly RoutedEvent LostTouchCaptureEvent = EventManager.RegisterRoutedEvent("LostTouchCapture", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 24internal static readonly RoutedEvent TouchEnterEvent = EventManager.RegisterRoutedEvent("TouchEnter", RoutingStrategy.Direct, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 25internal static readonly RoutedEvent TouchLeaveEvent = EventManager.RegisterRoutedEvent("TouchLeave", RoutingStrategy.Direct, typeof(EventHandler<TouchEventArgs>), typeof(Touch));
System\Windows\Input\TouchDevice.cs (32)
604TouchEventArgs e = CreateEventArgs(Touch.LostTouchCaptureEvent); 613TouchEventArgs e = CreateEventArgs(Touch.GotTouchCaptureEvent); 640Touch.ReportFrame(); 652Touch.ReportFrame(); 687Touch.ReportFrame(); 749Touch.ReportFrame(); 932TouchEventArgs touchEventArgs = CreateEventArgs(isLeave ? Touch.TouchLeaveEvent : Touch.TouchEnterEvent); 949TouchEventArgs e = CreateEventArgs(Touch.PreviewTouchDownEvent); 961TouchEventArgs e = CreateEventArgs(Touch.PreviewTouchMoveEvent); 973TouchEventArgs e = CreateEventArgs(Touch.PreviewTouchUpEvent); 996if (routedEvent == Touch.PreviewTouchMoveEvent || 997routedEvent == Touch.TouchMoveEvent) 1001else if (routedEvent == Touch.PreviewTouchDownEvent || 1002routedEvent == Touch.TouchDownEvent) 1006else if (routedEvent == Touch.PreviewTouchUpEvent || 1007routedEvent == Touch.TouchUpEvent) 1036if (routedEvent == Touch.PreviewTouchMoveEvent) 1038return Touch.TouchMoveEvent; 1040else if (routedEvent == Touch.PreviewTouchDownEvent) 1042return Touch.TouchDownEvent; 1044else if (routedEvent == Touch.PreviewTouchUpEvent) 1046return Touch.TouchUpEvent; 1049forManipulation = (routedEvent == Touch.TouchMoveEvent) || 1050(routedEvent == Touch.TouchDownEvent) || 1051(routedEvent == Touch.TouchUpEvent) || 1052(routedEvent == Touch.GotTouchCaptureEvent) || 1053(routedEvent == Touch.LostTouchCaptureEvent); 1071if (routedEvent == Touch.TouchDownEvent) 1078else if ((routedEvent == Touch.TouchUpEvent) && PromotingToManipulation) 1083else if ((routedEvent == Touch.GotTouchCaptureEvent) && !PromotingToManipulation) 1097else if ((routedEvent == Touch.LostTouchCaptureEvent) && PromotingToManipulation && _manipulatingElement != null)