393 references to Stylus
PresentationCore (369)
System\Windows\ContentElement.cs (3)
416return (Stylus.DirectlyOver == this); 432return Stylus.Capture(this); 440Stylus.Capture(null);
System\Windows\Generated\ContentElement.cs (66)
1219public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 1226add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 1227remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 1238public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 1245add { AddHandler(Stylus.StylusDownEvent, value, false); } 1246remove { RemoveHandler(Stylus.StylusDownEvent, value); } 1257public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 1264add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 1265remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 1276public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 1283add { AddHandler(Stylus.StylusUpEvent, value, false); } 1284remove { RemoveHandler(Stylus.StylusUpEvent, value); } 1295public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 1302add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 1303remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 1314public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 1321add { AddHandler(Stylus.StylusMoveEvent, value, false); } 1322remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 1333public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 1340add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 1341remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 1352public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 1359add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 1360remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 1371public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 1378add { AddHandler(Stylus.StylusEnterEvent, value, false); } 1379remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 1390public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 1397add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 1398remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 1409public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 1416add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 1417remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 1428public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 1435add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 1436remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 1447public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 1454add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 1455remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 1466public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 1473add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 1474remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 1485public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 1492add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 1493remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 1504public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 1511add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 1512remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 1523public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 1530add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 1531remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 1542public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 1549add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 1550remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 1561public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 1568add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 1569remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 1580public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 1587add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 1588remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 1599public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 1606add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 1607remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 1618public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 1625add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 1626remove { RemoveHandler(Stylus.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement.cs (88)
761EventManager.RegisterClassHandler(type, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(UIElement.OnPreviewStylusDownThunk), false); 762EventManager.RegisterClassHandler(type, Stylus.StylusDownEvent, new StylusDownEventHandler(UIElement.OnStylusDownThunk), false); 763EventManager.RegisterClassHandler(type, Stylus.PreviewStylusUpEvent, new StylusEventHandler(UIElement.OnPreviewStylusUpThunk), false); 764EventManager.RegisterClassHandler(type, Stylus.StylusUpEvent, new StylusEventHandler(UIElement.OnStylusUpThunk), false); 765EventManager.RegisterClassHandler(type, Stylus.PreviewStylusMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusMoveThunk), false); 766EventManager.RegisterClassHandler(type, Stylus.StylusMoveEvent, new StylusEventHandler(UIElement.OnStylusMoveThunk), false); 767EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInAirMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusInAirMoveThunk), false); 768EventManager.RegisterClassHandler(type, Stylus.StylusInAirMoveEvent, new StylusEventHandler(UIElement.OnStylusInAirMoveThunk), false); 769EventManager.RegisterClassHandler(type, Stylus.StylusEnterEvent, new StylusEventHandler(UIElement.OnStylusEnterThunk), false); 770EventManager.RegisterClassHandler(type, Stylus.StylusLeaveEvent, new StylusEventHandler(UIElement.OnStylusLeaveThunk), false); 771EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusInRangeThunk), false); 772EventManager.RegisterClassHandler(type, Stylus.StylusInRangeEvent, new StylusEventHandler(UIElement.OnStylusInRangeThunk), false); 773EventManager.RegisterClassHandler(type, Stylus.PreviewStylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusOutOfRangeThunk), false); 774EventManager.RegisterClassHandler(type, Stylus.StylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnStylusOutOfRangeThunk), false); 775EventManager.RegisterClassHandler(type, Stylus.PreviewStylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnPreviewStylusSystemGestureThunk), false); 776EventManager.RegisterClassHandler(type, Stylus.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnStylusSystemGestureThunk), false); 777EventManager.RegisterClassHandler(type, Stylus.GotStylusCaptureEvent, new StylusEventHandler(UIElement.OnGotStylusCaptureThunk), false); 778EventManager.RegisterClassHandler(type, Stylus.LostStylusCaptureEvent, new StylusEventHandler(UIElement.OnLostStylusCaptureThunk), false); 779EventManager.RegisterClassHandler(type, Stylus.StylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonDownThunk), false); 780EventManager.RegisterClassHandler(type, Stylus.StylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonUpThunk), false); 781EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonDownThunk), false); 782EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonUpThunk), false); 3172public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 3179add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 3180remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 3191public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 3198add { AddHandler(Stylus.StylusDownEvent, value, false); } 3199remove { RemoveHandler(Stylus.StylusDownEvent, value); } 3210public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 3217add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 3218remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 3229public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 3236add { AddHandler(Stylus.StylusUpEvent, value, false); } 3237remove { RemoveHandler(Stylus.StylusUpEvent, value); } 3248public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 3255add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 3256remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 3267public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 3274add { AddHandler(Stylus.StylusMoveEvent, value, false); } 3275remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 3286public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 3293add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 3294remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 3305public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 3312add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 3313remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 3324public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 3331add { AddHandler(Stylus.StylusEnterEvent, value, false); } 3332remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 3343public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 3350add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 3351remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 3362public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 3369add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 3370remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 3381public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 3388add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 3389remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 3400public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 3407add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 3408remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 3419public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 3426add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 3427remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 3438public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 3445add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 3446remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 3457public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 3464add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 3465remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 3476public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 3483add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 3484remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 3495public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 3502add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 3503remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 3514public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 3521add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 3522remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 3533public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 3540add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 3541remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 3552public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 3559add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 3560remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 3571public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 3578add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 3579remove { RemoveHandler(Stylus.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement3D.cs (66)
940public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 947add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 948remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 959public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 966add { AddHandler(Stylus.StylusDownEvent, value, false); } 967remove { RemoveHandler(Stylus.StylusDownEvent, value); } 978public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 985add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 986remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 997public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 1004add { AddHandler(Stylus.StylusUpEvent, value, false); } 1005remove { RemoveHandler(Stylus.StylusUpEvent, value); } 1016public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 1023add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 1024remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 1035public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 1042add { AddHandler(Stylus.StylusMoveEvent, value, false); } 1043remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 1054public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 1061add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 1062remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 1073public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 1080add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 1081remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 1092public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 1099add { AddHandler(Stylus.StylusEnterEvent, value, false); } 1100remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 1111public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 1118add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 1119remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 1130public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 1137add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 1138remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 1149public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 1156add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 1157remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 1168public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 1175add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 1176remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 1187public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 1194add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 1195remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 1206public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 1213add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 1214remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 1225public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 1232add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 1233remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 1244public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 1251add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 1252remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 1263public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 1270add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 1271remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 1282public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 1289add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 1290remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 1301public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 1308add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 1309remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 1320public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 1327add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 1328remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 1339public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 1346add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 1347remove { RemoveHandler(Stylus.PreviewStylusButtonUpEvent, value); }
System\Windows\Input\Stylus\Common\Stylus.cs (44)
23public static readonly RoutedEvent PreviewStylusDownEvent = EventManager.RegisterRoutedEvent("PreviewStylusDown", RoutingStrategy.Tunnel, typeof(StylusDownEventHandler), typeof(Stylus)); 48public static readonly RoutedEvent StylusDownEvent = EventManager.RegisterRoutedEvent("StylusDown", RoutingStrategy.Bubble, typeof(StylusDownEventHandler), typeof(Stylus)); 73public static readonly RoutedEvent PreviewStylusUpEvent = EventManager.RegisterRoutedEvent("PreviewStylusUp", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 98public static readonly RoutedEvent StylusUpEvent = EventManager.RegisterRoutedEvent("StylusUp", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 123public static readonly RoutedEvent PreviewStylusMoveEvent = EventManager.RegisterRoutedEvent("PreviewStylusMove", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 148public static readonly RoutedEvent StylusMoveEvent = EventManager.RegisterRoutedEvent("StylusMove", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 173public static readonly RoutedEvent PreviewStylusInAirMoveEvent = EventManager.RegisterRoutedEvent("PreviewStylusInAirMove", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 198public static readonly RoutedEvent StylusInAirMoveEvent = EventManager.RegisterRoutedEvent("StylusInAirMove", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 223public static readonly RoutedEvent StylusEnterEvent = EventManager.RegisterRoutedEvent("StylusEnter", RoutingStrategy.Direct, typeof(StylusEventHandler), typeof(Stylus)); 248public static readonly RoutedEvent StylusLeaveEvent = EventManager.RegisterRoutedEvent("StylusLeave", RoutingStrategy.Direct, typeof(StylusEventHandler), typeof(Stylus)); 273public static readonly RoutedEvent PreviewStylusInRangeEvent = EventManager.RegisterRoutedEvent("PreviewStylusInRange", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 298public static readonly RoutedEvent StylusInRangeEvent = EventManager.RegisterRoutedEvent("StylusInRange", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 323public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = EventManager.RegisterRoutedEvent("PreviewStylusOutOfRange", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 348public static readonly RoutedEvent StylusOutOfRangeEvent = EventManager.RegisterRoutedEvent("StylusOutOfRange", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 373public static readonly RoutedEvent PreviewStylusSystemGestureEvent = EventManager.RegisterRoutedEvent("PreviewStylusSystemGesture", RoutingStrategy.Tunnel, typeof(StylusSystemGestureEventHandler), typeof(Stylus)); 398public static readonly RoutedEvent StylusSystemGestureEvent = EventManager.RegisterRoutedEvent("StylusSystemGesture", RoutingStrategy.Bubble, typeof(StylusSystemGestureEventHandler), typeof(Stylus)); 423public static readonly RoutedEvent GotStylusCaptureEvent = EventManager.RegisterRoutedEvent("GotStylusCapture", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 448public static readonly RoutedEvent LostStylusCaptureEvent = EventManager.RegisterRoutedEvent("LostStylusCapture", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 473public static readonly RoutedEvent StylusButtonDownEvent = EventManager.RegisterRoutedEvent("StylusButtonDown", RoutingStrategy.Bubble, typeof(StylusButtonEventHandler), typeof(Stylus)); 499public static readonly RoutedEvent StylusButtonUpEvent = EventManager.RegisterRoutedEvent("StylusButtonUp", RoutingStrategy.Bubble, typeof(StylusButtonEventHandler), typeof(Stylus)); 525public static readonly RoutedEvent PreviewStylusButtonDownEvent = EventManager.RegisterRoutedEvent("PreviewStylusButtonDown", RoutingStrategy.Tunnel, typeof(StylusButtonEventHandler), typeof(Stylus)); 551public static readonly RoutedEvent PreviewStylusButtonUpEvent = EventManager.RegisterRoutedEvent("PreviewStylusButtonUp", RoutingStrategy.Tunnel, typeof(StylusButtonEventHandler), typeof(Stylus)); 579/// <seealso cref="Stylus.IsPressAndHoldEnabledProperty" /> 597/// <seealso cref="Stylus.IsPressAndHoldEnabledProperty" /> 608/// <seealso cref="Stylus.GetIsPressAndHoldEnabled" /> 609/// <seealso cref="Stylus.SetIsPressAndHoldEnabled" /> 611= DependencyProperty.RegisterAttached("IsPressAndHoldEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) 619/// <seealso cref="Stylus.IsFlicksEnabledProperty" /> 637/// <seealso cref="Stylus.IsFlicksEnabledProperty" /> 648/// <seealso cref="Stylus.GetIsFlicksEnabled" /> 649/// <seealso cref="Stylus.SetIsFlicksEnabled" /> 651= DependencyProperty.RegisterAttached("IsFlicksEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) 659/// <seealso cref="Stylus.IsTapFeedbackEnabledProperty" /> 677/// <seealso cref="Stylus.IsTapFeedbackEnabledProperty" /> 688/// <seealso cref="Stylus.GetIsTapFeedbackEnabled" /> 689/// <seealso cref="Stylus.SetIsTapFeedbackEnabled" /> 691= DependencyProperty.RegisterAttached("IsTapFeedbackEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) 699/// <seealso cref="Stylus.IsTouchFeedbackEnabledProperty" /> 716/// <seealso cref="Stylus.IsTouchFeedbackEnabledProperty" /> 727/// <seealso cref="Stylus.GetIsTouchFeedbackEnabled" /> 728/// <seealso cref="Stylus.SetIsTouchFeedbackEnabled" /> 730= DependencyProperty.RegisterAttached("IsTouchFeedbackEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) 741return Stylus.CurrentStylusDevice?.DirectlyOver; 753return Stylus.CurrentStylusDevice?.Captured ?? Mouse.Captured;
System\Windows\Input\Stylus\Common\StylusLogic.cs (25)
607if (routedEvent == Stylus.PreviewStylusDownEvent) 608return Stylus.StylusDownEvent; 609if (routedEvent == Stylus.PreviewStylusUpEvent) 610return Stylus.StylusUpEvent; 611if (routedEvent == Stylus.PreviewStylusMoveEvent) 612return Stylus.StylusMoveEvent; 613if (routedEvent == Stylus.PreviewStylusInAirMoveEvent) 614return Stylus.StylusInAirMoveEvent; 615if (routedEvent == Stylus.PreviewStylusInRangeEvent) 616return Stylus.StylusInRangeEvent; 617if (routedEvent == Stylus.PreviewStylusOutOfRangeEvent) 618return Stylus.StylusOutOfRangeEvent; 619if (routedEvent == Stylus.PreviewStylusSystemGestureEvent) 620return Stylus.StylusSystemGestureEvent; 621if (routedEvent == Stylus.PreviewStylusButtonDownEvent) 622return Stylus.StylusButtonDownEvent; 623if (routedEvent == Stylus.PreviewStylusButtonUpEvent) 624return Stylus.StylusButtonUpEvent; 636previewEvent = Stylus.PreviewStylusDownEvent; 641previewEvent = Stylus.PreviewStylusUpEvent; 646previewEvent = Stylus.PreviewStylusMoveEvent; 651previewEvent = Stylus.PreviewStylusInAirMoveEvent; 656previewEvent = Stylus.PreviewStylusInRangeEvent; 661previewEvent = Stylus.PreviewStylusOutOfRangeEvent; 666previewEvent = Stylus.PreviewStylusSystemGestureEvent;
System\Windows\Input\Stylus\Common\Tablet.cs (1)
27StylusDevice stylus = Stylus.CurrentStylusDevice;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (18)
825Stylus.Capture(null); 986(routedEvent == Stylus.StylusMoveEvent || 987routedEvent == Stylus.StylusDownEvent || 988routedEvent == Stylus.StylusUpEvent)); 1008if (routedEvent != Stylus.PreviewStylusSystemGestureEvent) 1010if (routedEvent == Stylus.PreviewStylusDownEvent) 1050if (eventMain == Stylus.StylusDownEvent || 1051eventMain == Stylus.PreviewStylusDownEvent) 1056else if (eventMain == Stylus.StylusButtonDownEvent || 1057eventMain == Stylus.StylusButtonUpEvent) 1062else if (eventMain != Stylus.StylusSystemGestureEvent) 1089stylusEventArgs.RoutedEvent == Stylus.PreviewStylusUpEvent && 1120if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent && 1143if (stylusEventArgs.RoutedEvent == Stylus.StylusMoveEvent) 1147else if (stylusEventArgs.RoutedEvent == Stylus.StylusDownEvent) 1151else if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent) 1280if (args.StagingItem.Input.RoutedEvent == Stylus.PreviewStylusDownEvent) 1317else if (args.StagingItem.Input.RoutedEvent == Stylus.PreviewStylusSystemGestureEvent)
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1056lostCapture.RoutedEvent = Stylus.LostStylusCaptureEvent; 1063gotCapture.RoutedEvent = Stylus.GotStylusCaptureEvent;
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (2)
188return Stylus.CurrentStylusDevice?.Target; 199return Stylus.CurrentStylusDevice?.ActiveSource;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (29)
1056if (e.StagingItem.Input.RoutedEvent == Stylus.PreviewStylusDownEvent) 1259if (e.StagingItem.Input.RoutedEvent == Stylus.StylusOutOfRangeEvent) 1321if (e.StagingItem.Input.RoutedEvent == Stylus.StylusMoveEvent) 1333if (e.StagingItem.Input.RoutedEvent == Stylus.StylusSystemGestureEvent) 1355if (e.StagingItem.Input.RoutedEvent == Stylus.StylusOutOfRangeEvent) 1377if (routedEvent != Stylus.PreviewStylusSystemGestureEvent) 1379if (routedEvent == Stylus.PreviewStylusDownEvent) 1417if (eventMain == Stylus.StylusDownEvent || 1418eventMain == Stylus.PreviewStylusDownEvent) 1423else if (eventMain == Stylus.StylusButtonDownEvent || 1424eventMain == Stylus.StylusButtonUpEvent) 1429else if (eventMain != Stylus.StylusSystemGestureEvent) 1455if (stylusEventArgs?.RoutedEvent == Stylus.PreviewStylusUpEvent && 1483if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent && 1497else if (e.StagingItem.Input.RoutedEvent == Stylus.StylusSystemGestureEvent) 1527(routedEvent == Stylus.StylusMoveEvent || 1528routedEvent == Stylus.StylusDownEvent || 1529routedEvent == Stylus.StylusUpEvent)); 1545if (stylusEventArgs.RoutedEvent == Stylus.StylusMoveEvent) 1549else if (stylusEventArgs.RoutedEvent == Stylus.StylusDownEvent) 1553else if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent) 1595storedStagingItems[stagingItemCount - 1].Input.RoutedEvent == Stylus.StylusMoveEvent) 2459Stylus.Capture(null); 2875if (routedEvent != null && (routedEvent == Stylus.StylusDownEvent 2876|| routedEvent == Stylus.StylusUpEvent 2877|| routedEvent == Stylus.StylusMoveEvent 2878|| routedEvent == Stylus.StylusInAirMoveEvent)) 2906args.RoutedEvent = Stylus.PreviewStylusButtonDownEvent; 2910args.RoutedEvent = Stylus.PreviewStylusButtonUpEvent;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (7)
632lostCapture.RoutedEvent = Stylus.LostStylusCaptureEvent; 639gotCapture.RoutedEvent = Stylus.GotStylusCaptureEvent; 1738if (stylusEvent == Stylus.StylusSystemGestureEvent) 1777else if (stylusEvent == Stylus.StylusInAirMoveEvent) 1781else if (stylusEvent == Stylus.StylusDownEvent) 1792else if (stylusEvent == Stylus.StylusMoveEvent) 1799else if (stylusEvent == Stylus.StylusUpEvent)
System\Windows\Input\Stylus\Wisp\WispTabletDevice.cs (2)
140StylusDevice stylusDevice = Stylus.CurrentStylusDevice; 159StylusDevice stylusDevice = Stylus.CurrentStylusDevice;
System\Windows\InterOp\HwndStylusInputProvider.cs (4)
106bool isPressAndHoldEnabled = Stylus.GetIsPressAndHoldEnabled(elementCur); 107bool isFlicksEnabled = Stylus.GetIsFlicksEnabled(elementCur); 108bool isTapFeedbackEnabled = Stylus.GetIsTapFeedbackEnabled(elementCur); 109bool isTouchFeedbackEnabled = Stylus.GetIsTouchFeedbackEnabled(elementCur);
System\Windows\StylusOverProperty.cs (4)
36if(Stylus.CurrentStylusDevice == null) 41StylusEventArgs stylusEventArgs = new StylusEventArgs(Stylus.CurrentStylusDevice, Environment.TickCount); 42stylusEventArgs.RoutedEvent = oldValue ? Stylus.StylusLeaveEvent : Stylus.StylusEnterEvent;
System\Windows\UIElement.cs (5)
2529return (Stylus.DirectlyOver == this); 2545return Stylus.Capture(this); 2553Stylus.Capture(null); 4366if (IsDefaultValue(this, Stylus.IsFlicksEnabledProperty)) 4368SetCurrentValueInternal(Stylus.IsFlicksEnabledProperty, BooleanBoxes.FalseBox);
System\Windows\UIElement3D.cs (3)
510return (Stylus.DirectlyOver == this); 526return Stylus.Capture(this); 534Stylus.Capture(null);
PresentationFramework (23)
MS\Internal\Ink\EditingCoordinator.cs (6)
63_inkCanvas.AddHandler(Stylus.StylusInRangeEvent, new StylusEventHandler(OnInkCanvasStylusInAirOrInRangeMove)); 64_inkCanvas.AddHandler(Stylus.StylusInAirMoveEvent, new StylusEventHandler(OnInkCanvasStylusInAirOrInRangeMove)); 65_inkCanvas.AddHandler(Stylus.StylusOutOfRangeEvent, new StylusEventHandler(OnInkCanvasStylusOutOfRange)); 430StylusDevice stylusDevice = Stylus.CurrentStylusDevice; 982_inkCanvas.AddHandler(Stylus.StylusMoveEvent, new StylusEventHandler(OnInkCanvasDeviceMove<StylusEventArgs>)); 1035_inkCanvas.RemoveHandler(Stylus.StylusMoveEvent, new StylusEventHandler(OnInkCanvasDeviceMove<StylusEventArgs>));
System\Windows\Controls\InkCanvas.cs (5)
68EventManager.RegisterClassHandler(ownerType, Stylus.StylusDownEvent, 74EventManager.RegisterClassHandler(ownerType, Stylus.StylusUpEvent, 112defaultStyle.Setters.Add(new Setter(Stylus.IsFlicksEnabledProperty, false)); 114defaultStyle.Setters.Add(new Setter(Stylus.IsTapFeedbackEnabledProperty, false)); 116defaultStyle.Setters.Add(new Setter(Stylus.IsTouchFeedbackEnabledProperty, false));
System\Windows\Controls\StickyNote.cs (1)
112EventManager.RegisterClassHandler(owner, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(_OnPreviewDeviceDown<StylusDownEventArgs>));
System\Windows\FrameworkContentElement.cs (4)
103Stylus.IsPressAndHoldEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 104Stylus.IsFlicksEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 105Stylus.IsTapFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 106Stylus.IsTouchFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
System\Windows\FrameworkElement.cs (4)
2396Stylus.IsPressAndHoldEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2397Stylus.IsFlicksEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2398Stylus.IsTapFeedbackEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2399Stylus.IsTouchFeedbackEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
717case 621: t = () => typeof(Stylus); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9687typeof(System.Windows.Input.Stylus),
System\Windows\Markup\KnownTypes.cs (1)
6175case KnownElements.Stylus: t = typeof(System.Windows.Input.Stylus); break;
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\KeyTipService.cs (1)
699routedEvent == Stylus.PreviewStylusDownEvent)