142 references to Touch
PresentationCore (142)
System\Windows\Generated\ContentElement.cs (30)
2040public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 2048add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 2049remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 2060public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 2068add { AddHandler(Touch.TouchDownEvent, value, false); } 2069remove { RemoveHandler(Touch.TouchDownEvent, value); } 2080public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 2088add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 2089remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 2100public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 2108add { AddHandler(Touch.TouchMoveEvent, value, false); } 2109remove { RemoveHandler(Touch.TouchMoveEvent, value); } 2120public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 2128add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 2129remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 2140public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 2148add { AddHandler(Touch.TouchUpEvent, value, false); } 2149remove { RemoveHandler(Touch.TouchUpEvent, value); } 2160public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 2168add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 2169remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 2180public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 2188add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 2189remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 2200public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 2208add { AddHandler(Touch.TouchEnterEvent, value, false); } 2209remove { RemoveHandler(Touch.TouchEnterEvent, value); } 2220public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 2228add { AddHandler(Touch.TouchLeaveEvent, value, false); } 2229remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
System\Windows\Generated\UIElement.cs (40)
795EventManager.RegisterClassHandler(type, Touch.PreviewTouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchDownThunk), false); 796EventManager.RegisterClassHandler(type, Touch.TouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchDownThunk), false); 797EventManager.RegisterClassHandler(type, Touch.PreviewTouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchMoveThunk), false); 798EventManager.RegisterClassHandler(type, Touch.TouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchMoveThunk), false); 799EventManager.RegisterClassHandler(type, Touch.PreviewTouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchUpThunk), false); 800EventManager.RegisterClassHandler(type, Touch.TouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchUpThunk), false); 801EventManager.RegisterClassHandler(type, Touch.GotTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnGotTouchCaptureThunk), false); 802EventManager.RegisterClassHandler(type, Touch.LostTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnLostTouchCaptureThunk), false); 803EventManager.RegisterClassHandler(type, Touch.TouchEnterEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchEnterThunk), false); 804EventManager.RegisterClassHandler(type, Touch.TouchLeaveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchLeaveThunk), false); 3993public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 4001add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 4002remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 4013public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 4021add { AddHandler(Touch.TouchDownEvent, value, false); } 4022remove { RemoveHandler(Touch.TouchDownEvent, value); } 4033public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 4041add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 4042remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 4053public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 4061add { AddHandler(Touch.TouchMoveEvent, value, false); } 4062remove { RemoveHandler(Touch.TouchMoveEvent, value); } 4073public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 4081add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 4082remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 4093public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 4101add { AddHandler(Touch.TouchUpEvent, value, false); } 4102remove { RemoveHandler(Touch.TouchUpEvent, value); } 4113public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 4121add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 4122remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 4133public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 4141add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 4142remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 4153public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 4161add { AddHandler(Touch.TouchEnterEvent, value, false); } 4162remove { RemoveHandler(Touch.TouchEnterEvent, value); } 4173public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 4181add { AddHandler(Touch.TouchLeaveEvent, value, false); } 4182remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
System\Windows\Generated\UIElement3D.cs (30)
1770public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 1778add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 1779remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 1790public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 1798add { AddHandler(Touch.TouchDownEvent, value, false); } 1799remove { RemoveHandler(Touch.TouchDownEvent, value); } 1810public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 1818add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 1819remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 1830public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 1838add { AddHandler(Touch.TouchMoveEvent, value, false); } 1839remove { RemoveHandler(Touch.TouchMoveEvent, value); } 1850public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 1858add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 1859remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 1870public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 1878add { AddHandler(Touch.TouchUpEvent, value, false); } 1879remove { RemoveHandler(Touch.TouchUpEvent, value); } 1890public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 1898add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 1899remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 1910public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 1918add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 1919remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 1930public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 1938add { AddHandler(Touch.TouchEnterEvent, value, false); } 1939remove { RemoveHandler(Touch.TouchEnterEvent, value); } 1950public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 1958add { AddHandler(Touch.TouchLeaveEvent, value, false); } 1959remove { 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)