142 references to Touch
PresentationCore (142)
System\Windows\Generated\ContentElement.cs (30)
2039public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 2047add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 2048remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 2059public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 2067add { AddHandler(Touch.TouchDownEvent, value, false); } 2068remove { RemoveHandler(Touch.TouchDownEvent, value); } 2079public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 2087add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 2088remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 2099public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 2107add { AddHandler(Touch.TouchMoveEvent, value, false); } 2108remove { RemoveHandler(Touch.TouchMoveEvent, value); } 2119public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 2127add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 2128remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 2139public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 2147add { AddHandler(Touch.TouchUpEvent, value, false); } 2148remove { RemoveHandler(Touch.TouchUpEvent, value); } 2159public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 2167add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 2168remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 2179public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 2187add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 2188remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 2199public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 2207add { AddHandler(Touch.TouchEnterEvent, value, false); } 2208remove { RemoveHandler(Touch.TouchEnterEvent, value); } 2219public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 2227add { AddHandler(Touch.TouchLeaveEvent, value, false); } 2228remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
System\Windows\Generated\UIElement.cs (40)
794EventManager.RegisterClassHandler(type, Touch.PreviewTouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchDownThunk), false); 795EventManager.RegisterClassHandler(type, Touch.TouchDownEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchDownThunk), false); 796EventManager.RegisterClassHandler(type, Touch.PreviewTouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchMoveThunk), false); 797EventManager.RegisterClassHandler(type, Touch.TouchMoveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchMoveThunk), false); 798EventManager.RegisterClassHandler(type, Touch.PreviewTouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnPreviewTouchUpThunk), false); 799EventManager.RegisterClassHandler(type, Touch.TouchUpEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchUpThunk), false); 800EventManager.RegisterClassHandler(type, Touch.GotTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnGotTouchCaptureThunk), false); 801EventManager.RegisterClassHandler(type, Touch.LostTouchCaptureEvent, new EventHandler<TouchEventArgs>(UIElement.OnLostTouchCaptureThunk), false); 802EventManager.RegisterClassHandler(type, Touch.TouchEnterEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchEnterThunk), false); 803EventManager.RegisterClassHandler(type, Touch.TouchLeaveEvent, new EventHandler<TouchEventArgs>(UIElement.OnTouchLeaveThunk), false); 3992public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 4000add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 4001remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 4012public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 4020add { AddHandler(Touch.TouchDownEvent, value, false); } 4021remove { RemoveHandler(Touch.TouchDownEvent, value); } 4032public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 4040add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 4041remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 4052public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 4060add { AddHandler(Touch.TouchMoveEvent, value, false); } 4061remove { RemoveHandler(Touch.TouchMoveEvent, value); } 4072public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 4080add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 4081remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 4092public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 4100add { AddHandler(Touch.TouchUpEvent, value, false); } 4101remove { RemoveHandler(Touch.TouchUpEvent, value); } 4112public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 4120add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 4121remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 4132public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 4140add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 4141remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 4152public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 4160add { AddHandler(Touch.TouchEnterEvent, value, false); } 4161remove { RemoveHandler(Touch.TouchEnterEvent, value); } 4172public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 4180add { AddHandler(Touch.TouchLeaveEvent, value, false); } 4181remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
System\Windows\Generated\UIElement3D.cs (30)
1769public static readonly RoutedEvent PreviewTouchDownEvent = Touch.PreviewTouchDownEvent.AddOwner(_typeofThis); 1777add { AddHandler(Touch.PreviewTouchDownEvent, value, false); } 1778remove { RemoveHandler(Touch.PreviewTouchDownEvent, value); } 1789public static readonly RoutedEvent TouchDownEvent = Touch.TouchDownEvent.AddOwner(_typeofThis); 1797add { AddHandler(Touch.TouchDownEvent, value, false); } 1798remove { RemoveHandler(Touch.TouchDownEvent, value); } 1809public static readonly RoutedEvent PreviewTouchMoveEvent = Touch.PreviewTouchMoveEvent.AddOwner(_typeofThis); 1817add { AddHandler(Touch.PreviewTouchMoveEvent, value, false); } 1818remove { RemoveHandler(Touch.PreviewTouchMoveEvent, value); } 1829public static readonly RoutedEvent TouchMoveEvent = Touch.TouchMoveEvent.AddOwner(_typeofThis); 1837add { AddHandler(Touch.TouchMoveEvent, value, false); } 1838remove { RemoveHandler(Touch.TouchMoveEvent, value); } 1849public static readonly RoutedEvent PreviewTouchUpEvent = Touch.PreviewTouchUpEvent.AddOwner(_typeofThis); 1857add { AddHandler(Touch.PreviewTouchUpEvent, value, false); } 1858remove { RemoveHandler(Touch.PreviewTouchUpEvent, value); } 1869public static readonly RoutedEvent TouchUpEvent = Touch.TouchUpEvent.AddOwner(_typeofThis); 1877add { AddHandler(Touch.TouchUpEvent, value, false); } 1878remove { RemoveHandler(Touch.TouchUpEvent, value); } 1889public static readonly RoutedEvent GotTouchCaptureEvent = Touch.GotTouchCaptureEvent.AddOwner(_typeofThis); 1897add { AddHandler(Touch.GotTouchCaptureEvent, value, false); } 1898remove { RemoveHandler(Touch.GotTouchCaptureEvent, value); } 1909public static readonly RoutedEvent LostTouchCaptureEvent = Touch.LostTouchCaptureEvent.AddOwner(_typeofThis); 1917add { AddHandler(Touch.LostTouchCaptureEvent, value, false); } 1918remove { RemoveHandler(Touch.LostTouchCaptureEvent, value); } 1929public static readonly RoutedEvent TouchEnterEvent = Touch.TouchEnterEvent.AddOwner(_typeofThis); 1937add { AddHandler(Touch.TouchEnterEvent, value, false); } 1938remove { RemoveHandler(Touch.TouchEnterEvent, value); } 1949public static readonly RoutedEvent TouchLeaveEvent = Touch.TouchLeaveEvent.AddOwner(_typeofThis); 1957add { AddHandler(Touch.TouchLeaveEvent, value, false); } 1958remove { RemoveHandler(Touch.TouchLeaveEvent, value); }
System\Windows\Input\Touch.cs (10)
11internal static readonly RoutedEvent PreviewTouchDownEvent = EventManager.RegisterRoutedEvent("PreviewTouchDown", RoutingStrategy.Tunnel, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 12internal static readonly RoutedEvent TouchDownEvent = EventManager.RegisterRoutedEvent("TouchDown", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 14internal static readonly RoutedEvent PreviewTouchMoveEvent = EventManager.RegisterRoutedEvent("PreviewTouchMove", RoutingStrategy.Tunnel, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 15internal static readonly RoutedEvent TouchMoveEvent = EventManager.RegisterRoutedEvent("TouchMove", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 17internal static readonly RoutedEvent PreviewTouchUpEvent = EventManager.RegisterRoutedEvent("PreviewTouchUp", RoutingStrategy.Tunnel, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 18internal static readonly RoutedEvent TouchUpEvent = EventManager.RegisterRoutedEvent("TouchUp", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 20internal static readonly RoutedEvent GotTouchCaptureEvent = EventManager.RegisterRoutedEvent("GotTouchCapture", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 21internal static readonly RoutedEvent LostTouchCaptureEvent = EventManager.RegisterRoutedEvent("LostTouchCapture", RoutingStrategy.Bubble, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 23internal static readonly RoutedEvent TouchEnterEvent = EventManager.RegisterRoutedEvent("TouchEnter", RoutingStrategy.Direct, typeof(EventHandler<TouchEventArgs>), typeof(Touch)); 24internal static readonly RoutedEvent TouchLeaveEvent = EventManager.RegisterRoutedEvent("TouchLeave", RoutingStrategy.Direct, typeof(EventHandler<TouchEventArgs>), typeof(Touch));
System\Windows\Input\TouchDevice.cs (32)
603TouchEventArgs e = CreateEventArgs(Touch.LostTouchCaptureEvent); 612TouchEventArgs e = CreateEventArgs(Touch.GotTouchCaptureEvent); 639Touch.ReportFrame(); 651Touch.ReportFrame(); 686Touch.ReportFrame(); 748Touch.ReportFrame(); 931TouchEventArgs touchEventArgs = CreateEventArgs(isLeave ? Touch.TouchLeaveEvent : Touch.TouchEnterEvent); 948TouchEventArgs e = CreateEventArgs(Touch.PreviewTouchDownEvent); 960TouchEventArgs e = CreateEventArgs(Touch.PreviewTouchMoveEvent); 972TouchEventArgs e = CreateEventArgs(Touch.PreviewTouchUpEvent); 995if (routedEvent == Touch.PreviewTouchMoveEvent || 996routedEvent == Touch.TouchMoveEvent) 1000else if (routedEvent == Touch.PreviewTouchDownEvent || 1001routedEvent == Touch.TouchDownEvent) 1005else if (routedEvent == Touch.PreviewTouchUpEvent || 1006routedEvent == Touch.TouchUpEvent) 1035if (routedEvent == Touch.PreviewTouchMoveEvent) 1037return Touch.TouchMoveEvent; 1039else if (routedEvent == Touch.PreviewTouchDownEvent) 1041return Touch.TouchDownEvent; 1043else if (routedEvent == Touch.PreviewTouchUpEvent) 1045return Touch.TouchUpEvent; 1048forManipulation = (routedEvent == Touch.TouchMoveEvent) || 1049(routedEvent == Touch.TouchDownEvent) || 1050(routedEvent == Touch.TouchUpEvent) || 1051(routedEvent == Touch.GotTouchCaptureEvent) || 1052(routedEvent == Touch.LostTouchCaptureEvent); 1070if (routedEvent == Touch.TouchDownEvent) 1077else if ((routedEvent == Touch.TouchUpEvent) && PromotingToManipulation) 1082else if ((routedEvent == Touch.GotTouchCaptureEvent) && !PromotingToManipulation) 1096else if ((routedEvent == Touch.LostTouchCaptureEvent) && PromotingToManipulation && _manipulatingElement != null)