142 references to Touch
PresentationCore (142)
Core\CSharp\System\Windows\Generated\ContentElement.cs (30)
2115public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 2123add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 2124remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 2135public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 2143add { AddHandler(Touch.TouchDownEvent, value, false); } 2144remove { RemoveHandler(Touch.TouchDownEvent, value); } 2155public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 2163add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 2164remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 2175public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 2183add { AddHandler(Touch.TouchMoveEvent, value, false); } 2184remove { RemoveHandler(Touch.TouchMoveEvent, value); } 2195public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 2203add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 2204remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 2215public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 2223add { AddHandler(Touch.TouchUpEvent, value, false); } 2224remove { RemoveHandler(Touch.TouchUpEvent, value); } 2235public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 2243add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 2244remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 2255public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 2263add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 2264remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 2275public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 2283add { AddHandler(Touch.TouchEnterEvent, value, false); } 2284remove { RemoveHandler(Touch.TouchEnterEvent, value); } 2295public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 2303add { AddHandler(Touch.TouchLeaveEvent, value, false); } 2304remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
Core\CSharp\System\Windows\Generated\UIElement.cs (40)
875EventManager.RegisterClassHandler(type, Touch.PreviewTouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchDownThunk), false); 876EventManager.RegisterClassHandler(type, Touch.TouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchDownThunk), false); 877EventManager.RegisterClassHandler(type, Touch.PreviewTouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchMoveThunk), false); 878EventManager.RegisterClassHandler(type, Touch.TouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchMoveThunk), false); 879EventManager.RegisterClassHandler(type, Touch.PreviewTouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchUpThunk), false); 880EventManager.RegisterClassHandler(type, Touch.TouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchUpThunk), false); 881EventManager.RegisterClassHandler(type, Touch.GotTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnGotTouchCaptureThunk), false); 882EventManager.RegisterClassHandler(type, Touch.LostTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnLostTouchCaptureThunk), false); 883EventManager.RegisterClassHandler(type, Touch.TouchEnterEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchEnterThunk), false); 884EventManager.RegisterClassHandler(type, Touch.TouchLeaveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchLeaveThunk), false); 4393public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 4401add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 4402remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 4413public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 4421add { AddHandler(Touch.TouchDownEvent, value, false); } 4422remove { RemoveHandler(Touch.TouchDownEvent, value); } 4433public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 4441add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 4442remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 4453public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 4461add { AddHandler(Touch.TouchMoveEvent, value, false); } 4462remove { RemoveHandler(Touch.TouchMoveEvent, value); } 4473public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 4481add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 4482remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 4493public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 4501add { AddHandler(Touch.TouchUpEvent, value, false); } 4502remove { RemoveHandler(Touch.TouchUpEvent, value); } 4513public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 4521add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 4522remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 4533public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 4541add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 4542remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 4553public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 4561add { AddHandler(Touch.TouchEnterEvent, value, false); } 4562remove { RemoveHandler(Touch.TouchEnterEvent, value); } 4573public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 4581add { AddHandler(Touch.TouchLeaveEvent, value, false); } 4582remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
Core\CSharp\System\Windows\Generated\UIElement3D.cs (30)
1821public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 1829add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 1830remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 1841public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 1849add { AddHandler(Touch.TouchDownEvent, value, false); } 1850remove { RemoveHandler(Touch.TouchDownEvent, value); } 1861public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 1869add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 1870remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 1881public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 1889add { AddHandler(Touch.TouchMoveEvent, value, false); } 1890remove { RemoveHandler(Touch.TouchMoveEvent, value); } 1901public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 1909add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 1910remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 1921public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 1929add { AddHandler(Touch.TouchUpEvent, value, false); } 1930remove { RemoveHandler(Touch.TouchUpEvent, value); } 1941public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 1949add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 1950remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 1961public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 1969add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 1970remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 1981public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 1989add { AddHandler(Touch.TouchEnterEvent, value, false); } 1990remove { RemoveHandler(Touch.TouchEnterEvent, value); } 2001public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 2009add { AddHandler(Touch.TouchLeaveEvent, value, false); } 2010remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
Core\CSharp\System\Windows\Input\Touch.cs (10)
15internal static readonly RoutedEvent PreviewTouchDownEvent = EventManager.RegisterRoutedEvent("PreviewTouchDown", RoutingStrategy.Tunnel, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 16internal static readonly RoutedEvent TouchDownEvent = EventManager.RegisterRoutedEvent("TouchDown", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 18internal static readonly RoutedEvent PreviewTouchMoveEvent = EventManager.RegisterRoutedEvent("PreviewTouchMove", RoutingStrategy.Tunnel, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 19internal static readonly RoutedEvent TouchMoveEvent = EventManager.RegisterRoutedEvent("TouchMove", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 21internal static readonly RoutedEvent PreviewTouchUpEvent = EventManager.RegisterRoutedEvent("PreviewTouchUp", RoutingStrategy.Tunnel, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 22internal static readonly RoutedEvent TouchUpEvent = EventManager.RegisterRoutedEvent("TouchUp", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 24internal static readonly RoutedEvent GotTouchCaptureEvent = EventManager.RegisterRoutedEvent("GotTouchCapture", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 25internal static readonly RoutedEvent LostTouchCaptureEvent = EventManager.RegisterRoutedEvent("LostTouchCapture", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 27internal static readonly RoutedEvent TouchEnterEvent = EventManager.RegisterRoutedEvent("TouchEnter", RoutingStrategy.Direct, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 28internal static readonly RoutedEvent TouchLeaveEvent = EventManager.RegisterRoutedEvent("TouchLeave", RoutingStrategy.Direct, typeof(EventHandler<TouchEventArgs>), typeof(Touch));
Core\CSharp\System\Windows\Input\TouchDevice.cs (32)
663TouchEventArgs e = CreateEventArgs(Touch.LostTouchCaptureEvent); 677TouchEventArgs e = CreateEventArgs(Touch.GotTouchCaptureEvent); 704Touch.ReportFrame(); 716Touch.ReportFrame(); 751Touch.ReportFrame(); 818Touch.ReportFrame(); 1014TouchEventArgs touchEventArgs = CreateEventArgs(isLeave ? Touch.TouchLeaveEvent : Touch.TouchEnterEvent); 1034TouchEventArgs e = CreateEventArgs(Touch.PreviewTouchDownEvent); 1051TouchEventArgs e = CreateEventArgs(Touch.PreviewTouchMoveEvent); 1068TouchEventArgs e = CreateEventArgs(Touch.PreviewTouchUpEvent); 1095if (routedEvent == Touch.PreviewTouchMoveEvent || 1096routedEvent == Touch.TouchMoveEvent) 1100else if (routedEvent == Touch.PreviewTouchDownEvent || 1101routedEvent == Touch.TouchDownEvent) 1105else if (routedEvent == Touch.PreviewTouchUpEvent || 1106routedEvent == Touch.TouchUpEvent) 1135if (routedEvent == Touch.PreviewTouchMoveEvent) 1137return Touch.TouchMoveEvent; 1139else if (routedEvent == Touch.PreviewTouchDownEvent) 1141return Touch.TouchDownEvent; 1143else if (routedEvent == Touch.PreviewTouchUpEvent) 1145return Touch.TouchUpEvent; 1148forManipulation = (routedEvent == Touch.TouchMoveEvent) || 1149(routedEvent == Touch.TouchDownEvent) || 1150(routedEvent == Touch.TouchUpEvent) || 1151(routedEvent == Touch.GotTouchCaptureEvent) || 1152(routedEvent == Touch.LostTouchCaptureEvent); 1170if (routedEvent == Touch.TouchDownEvent) 1177else if ((routedEvent == Touch.TouchUpEvent) && PromotingToManipulation) 1182else if ((routedEvent == Touch.GotTouchCaptureEvent) && !PromotingToManipulation) 1196else if ((routedEvent == Touch.LostTouchCaptureEvent) && PromotingToManipulation && _manipulatingElement != null)