142 references to Touch
PresentationCore (142)
System\Windows\Generated\ContentElement.cs (30)
2055public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 2063add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 2064remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 2075public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 2083add { AddHandler(Touch.TouchDownEvent, value, false); } 2084remove { RemoveHandler(Touch.TouchDownEvent, value); } 2095public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 2103add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 2104remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 2115public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 2123add { AddHandler(Touch.TouchMoveEvent, value, false); } 2124remove { RemoveHandler(Touch.TouchMoveEvent, value); } 2135public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 2143add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 2144remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 2155public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 2163add { AddHandler(Touch.TouchUpEvent, value, false); } 2164remove { RemoveHandler(Touch.TouchUpEvent, value); } 2175public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 2183add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 2184remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 2195public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 2203add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 2204remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 2215public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 2223add { AddHandler(Touch.TouchEnterEvent, value, false); } 2224remove { RemoveHandler(Touch.TouchEnterEvent, value); } 2235public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 2243add { AddHandler(Touch.TouchLeaveEvent, value, false); } 2244remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
System\Windows\Generated\UIElement.cs (40)
810EventManager.RegisterClassHandler(type, Touch.PreviewTouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchDownThunk), false); 811EventManager.RegisterClassHandler(type, Touch.TouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchDownThunk), false); 812EventManager.RegisterClassHandler(type, Touch.PreviewTouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchMoveThunk), false); 813EventManager.RegisterClassHandler(type, Touch.TouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchMoveThunk), false); 814EventManager.RegisterClassHandler(type, Touch.PreviewTouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchUpThunk), false); 815EventManager.RegisterClassHandler(type, Touch.TouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchUpThunk), false); 816EventManager.RegisterClassHandler(type, Touch.GotTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnGotTouchCaptureThunk), false); 817EventManager.RegisterClassHandler(type, Touch.LostTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnLostTouchCaptureThunk), false); 818EventManager.RegisterClassHandler(type, Touch.TouchEnterEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchEnterThunk), false); 819EventManager.RegisterClassHandler(type, Touch.TouchLeaveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchLeaveThunk), false); 4008public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 4016add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 4017remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 4028public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 4036add { AddHandler(Touch.TouchDownEvent, value, false); } 4037remove { RemoveHandler(Touch.TouchDownEvent, value); } 4048public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 4056add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 4057remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 4068public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 4076add { AddHandler(Touch.TouchMoveEvent, value, false); } 4077remove { RemoveHandler(Touch.TouchMoveEvent, value); } 4088public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 4096add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 4097remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 4108public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 4116add { AddHandler(Touch.TouchUpEvent, value, false); } 4117remove { RemoveHandler(Touch.TouchUpEvent, value); } 4128public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 4136add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 4137remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 4148public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 4156add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 4157remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 4168public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 4176add { AddHandler(Touch.TouchEnterEvent, value, false); } 4177remove { RemoveHandler(Touch.TouchEnterEvent, value); } 4188public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 4196add { AddHandler(Touch.TouchLeaveEvent, value, false); } 4197remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
System\Windows\Generated\UIElement3D.cs (30)
1776public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 1784add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 1785remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 1796public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 1804add { AddHandler(Touch.TouchDownEvent, value, false); } 1805remove { RemoveHandler(Touch.TouchDownEvent, value); } 1816public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 1824add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 1825remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 1836public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 1844add { AddHandler(Touch.TouchMoveEvent, value, false); } 1845remove { RemoveHandler(Touch.TouchMoveEvent, value); } 1856public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 1864add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 1865remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 1876public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 1884add { AddHandler(Touch.TouchUpEvent, value, false); } 1885remove { RemoveHandler(Touch.TouchUpEvent, value); } 1896public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 1904add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 1905remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 1916public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 1924add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 1925remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 1936public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 1944add { AddHandler(Touch.TouchEnterEvent, value, false); } 1945remove { RemoveHandler(Touch.TouchEnterEvent, value); } 1956public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 1964add { AddHandler(Touch.TouchLeaveEvent, value, false); } 1965remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
System\Windows\Input\Touch.cs (10)
16internal static readonly RoutedEvent PreviewTouchDownEvent = EventManager.RegisterRoutedEvent("PreviewTouchDown", RoutingStrategy.Tunnel, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 17internal static readonly RoutedEvent TouchDownEvent = EventManager.RegisterRoutedEvent("TouchDown", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 19internal static readonly RoutedEvent PreviewTouchMoveEvent = EventManager.RegisterRoutedEvent("PreviewTouchMove", RoutingStrategy.Tunnel, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 20internal static readonly RoutedEvent TouchMoveEvent = EventManager.RegisterRoutedEvent("TouchMove", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 22internal static readonly RoutedEvent PreviewTouchUpEvent = EventManager.RegisterRoutedEvent("PreviewTouchUp", RoutingStrategy.Tunnel, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 23internal static readonly RoutedEvent TouchUpEvent = EventManager.RegisterRoutedEvent("TouchUp", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 25internal static readonly RoutedEvent GotTouchCaptureEvent = EventManager.RegisterRoutedEvent("GotTouchCapture", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 26internal static readonly RoutedEvent LostTouchCaptureEvent = EventManager.RegisterRoutedEvent("LostTouchCapture", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 28internal static readonly RoutedEvent TouchEnterEvent = EventManager.RegisterRoutedEvent("TouchEnter", RoutingStrategy.Direct, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 29internal static readonly RoutedEvent TouchLeaveEvent = EventManager.RegisterRoutedEvent("TouchLeave", RoutingStrategy.Direct, typeof(EventHandler<TouchEventArgs>), typeof(Touch));
System\Windows\Input\TouchDevice.cs (32)
616TouchEventArgs e = CreateEventArgs(Touch.LostTouchCaptureEvent); 625TouchEventArgs e = CreateEventArgs(Touch.GotTouchCaptureEvent); 652Touch.ReportFrame(); 664Touch.ReportFrame(); 699Touch.ReportFrame(); 761Touch.ReportFrame(); 944TouchEventArgs touchEventArgs = CreateEventArgs(isLeave ? Touch.TouchLeaveEvent : Touch.TouchEnterEvent); 959TouchEventArgs e = CreateEventArgs(Touch.PreviewTouchDownEvent); 971TouchEventArgs e = CreateEventArgs(Touch.PreviewTouchMoveEvent); 983TouchEventArgs e = CreateEventArgs(Touch.PreviewTouchUpEvent); 1006if (routedEvent == Touch.PreviewTouchMoveEvent || 1007routedEvent == Touch.TouchMoveEvent) 1011else if (routedEvent == Touch.PreviewTouchDownEvent || 1012routedEvent == Touch.TouchDownEvent) 1016else if (routedEvent == Touch.PreviewTouchUpEvent || 1017routedEvent == Touch.TouchUpEvent) 1046if (routedEvent == Touch.PreviewTouchMoveEvent) 1048return Touch.TouchMoveEvent; 1050else if (routedEvent == Touch.PreviewTouchDownEvent) 1052return Touch.TouchDownEvent; 1054else if (routedEvent == Touch.PreviewTouchUpEvent) 1056return Touch.TouchUpEvent; 1059forManipulation = (routedEvent == Touch.TouchMoveEvent) || 1060(routedEvent == Touch.TouchDownEvent) || 1061(routedEvent == Touch.TouchUpEvent) || 1062(routedEvent == Touch.GotTouchCaptureEvent) || 1063(routedEvent == Touch.LostTouchCaptureEvent); 1081if (routedEvent == Touch.TouchDownEvent) 1088else if ((routedEvent == Touch.TouchUpEvent) && PromotingToManipulation) 1093else if ((routedEvent == Touch.GotTouchCaptureEvent) && !PromotingToManipulation) 1107else if ((routedEvent == Touch.LostTouchCaptureEvent) && PromotingToManipulation && _manipulatingElement != null)