393 references to Stylus
PresentationCore (369)
System\Windows\ContentElement.cs (3)
404return (Stylus.DirectlyOver == this); 420return Stylus.Capture(this); 428Stylus.Capture(null);
System\Windows\Generated\ContentElement.cs (66)
1203public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 1210add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 1211remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 1222public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 1229add { AddHandler(Stylus.StylusDownEvent, value, false); } 1230remove { RemoveHandler(Stylus.StylusDownEvent, value); } 1241public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 1248add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 1249remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 1260public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 1267add { AddHandler(Stylus.StylusUpEvent, value, false); } 1268remove { RemoveHandler(Stylus.StylusUpEvent, value); } 1279public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 1286add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 1287remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 1298public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 1305add { AddHandler(Stylus.StylusMoveEvent, value, false); } 1306remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 1317public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 1324add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 1325remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 1336public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 1343add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 1344remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 1355public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 1362add { AddHandler(Stylus.StylusEnterEvent, value, false); } 1363remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 1374public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 1381add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 1382remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 1393public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 1400add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 1401remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 1412public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 1419add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 1420remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 1431public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 1438add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 1439remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 1450public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 1457add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 1458remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 1469public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 1476add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 1477remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 1488public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 1495add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 1496remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 1507public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 1514add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 1515remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 1526public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 1533add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 1534remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 1545public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 1552add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 1553remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 1564public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 1571add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 1572remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 1583public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 1590add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 1591remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 1602public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 1609add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 1610remove { RemoveHandler(Stylus.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement.cs (88)
745EventManager.RegisterClassHandler(type, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(UIElement.OnPreviewStylusDownThunk), false); 746EventManager.RegisterClassHandler(type, Stylus.StylusDownEvent, new StylusDownEventHandler(UIElement.OnStylusDownThunk), false); 747EventManager.RegisterClassHandler(type, Stylus.PreviewStylusUpEvent, new StylusEventHandler(UIElement.OnPreviewStylusUpThunk), false); 748EventManager.RegisterClassHandler(type, Stylus.StylusUpEvent, new StylusEventHandler(UIElement.OnStylusUpThunk), false); 749EventManager.RegisterClassHandler(type, Stylus.PreviewStylusMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusMoveThunk), false); 750EventManager.RegisterClassHandler(type, Stylus.StylusMoveEvent, new StylusEventHandler(UIElement.OnStylusMoveThunk), false); 751EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInAirMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusInAirMoveThunk), false); 752EventManager.RegisterClassHandler(type, Stylus.StylusInAirMoveEvent, new StylusEventHandler(UIElement.OnStylusInAirMoveThunk), false); 753EventManager.RegisterClassHandler(type, Stylus.StylusEnterEvent, new StylusEventHandler(UIElement.OnStylusEnterThunk), false); 754EventManager.RegisterClassHandler(type, Stylus.StylusLeaveEvent, new StylusEventHandler(UIElement.OnStylusLeaveThunk), false); 755EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusInRangeThunk), false); 756EventManager.RegisterClassHandler(type, Stylus.StylusInRangeEvent, new StylusEventHandler(UIElement.OnStylusInRangeThunk), false); 757EventManager.RegisterClassHandler(type, Stylus.PreviewStylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusOutOfRangeThunk), false); 758EventManager.RegisterClassHandler(type, Stylus.StylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnStylusOutOfRangeThunk), false); 759EventManager.RegisterClassHandler(type, Stylus.PreviewStylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnPreviewStylusSystemGestureThunk), false); 760EventManager.RegisterClassHandler(type, Stylus.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnStylusSystemGestureThunk), false); 761EventManager.RegisterClassHandler(type, Stylus.GotStylusCaptureEvent, new StylusEventHandler(UIElement.OnGotStylusCaptureThunk), false); 762EventManager.RegisterClassHandler(type, Stylus.LostStylusCaptureEvent, new StylusEventHandler(UIElement.OnLostStylusCaptureThunk), false); 763EventManager.RegisterClassHandler(type, Stylus.StylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonDownThunk), false); 764EventManager.RegisterClassHandler(type, Stylus.StylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonUpThunk), false); 765EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonDownThunk), false); 766EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonUpThunk), false); 3156public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 3163add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 3164remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 3175public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 3182add { AddHandler(Stylus.StylusDownEvent, value, false); } 3183remove { RemoveHandler(Stylus.StylusDownEvent, value); } 3194public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 3201add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 3202remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 3213public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 3220add { AddHandler(Stylus.StylusUpEvent, value, false); } 3221remove { RemoveHandler(Stylus.StylusUpEvent, value); } 3232public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 3239add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 3240remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 3251public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 3258add { AddHandler(Stylus.StylusMoveEvent, value, false); } 3259remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 3270public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 3277add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 3278remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 3289public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 3296add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 3297remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 3308public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 3315add { AddHandler(Stylus.StylusEnterEvent, value, false); } 3316remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 3327public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 3334add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 3335remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 3346public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 3353add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 3354remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 3365public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 3372add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 3373remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 3384public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 3391add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 3392remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 3403public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 3410add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 3411remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 3422public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 3429add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 3430remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 3441public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 3448add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 3449remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 3460public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 3467add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 3468remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 3479public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 3486add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 3487remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 3498public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 3505add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 3506remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 3517public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 3524add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 3525remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 3536public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 3543add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 3544remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 3555public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 3562add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 3563remove { RemoveHandler(Stylus.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement3D.cs (66)
933public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 940add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 941remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 952public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 959add { AddHandler(Stylus.StylusDownEvent, value, false); } 960remove { RemoveHandler(Stylus.StylusDownEvent, value); } 971public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 978add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 979remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 990public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 997add { AddHandler(Stylus.StylusUpEvent, value, false); } 998remove { RemoveHandler(Stylus.StylusUpEvent, value); } 1009public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 1016add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 1017remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 1028public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 1035add { AddHandler(Stylus.StylusMoveEvent, value, false); } 1036remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 1047public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 1054add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 1055remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 1066public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 1073add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 1074remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 1085public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 1092add { AddHandler(Stylus.StylusEnterEvent, value, false); } 1093remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 1104public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 1111add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 1112remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 1123public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 1130add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 1131remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 1142public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 1149add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 1150remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 1161public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 1168add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 1169remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 1180public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 1187add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 1188remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 1199public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 1206add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 1207remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 1218public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 1225add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 1226remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 1237public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 1244add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 1245remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 1256public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 1263add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 1264remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 1275public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 1282add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 1283remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 1294public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 1301add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 1302remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 1313public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 1320add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 1321remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 1332public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 1339add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 1340remove { RemoveHandler(Stylus.PreviewStylusButtonUpEvent, value); }
System\Windows\Input\Stylus\Common\Stylus.cs (44)
17public static readonly RoutedEvent PreviewStylusDownEvent = EventManager.RegisterRoutedEvent("PreviewStylusDown", RoutingStrategy.Tunnel, typeof(StylusDownEventHandler), typeof(Stylus)); 42public static readonly RoutedEvent StylusDownEvent = EventManager.RegisterRoutedEvent("StylusDown", RoutingStrategy.Bubble, typeof(StylusDownEventHandler), typeof(Stylus)); 67public static readonly RoutedEvent PreviewStylusUpEvent = EventManager.RegisterRoutedEvent("PreviewStylusUp", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 92public static readonly RoutedEvent StylusUpEvent = EventManager.RegisterRoutedEvent("StylusUp", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 117public static readonly RoutedEvent PreviewStylusMoveEvent = EventManager.RegisterRoutedEvent("PreviewStylusMove", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 142public static readonly RoutedEvent StylusMoveEvent = EventManager.RegisterRoutedEvent("StylusMove", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 167public static readonly RoutedEvent PreviewStylusInAirMoveEvent = EventManager.RegisterRoutedEvent("PreviewStylusInAirMove", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 192public static readonly RoutedEvent StylusInAirMoveEvent = EventManager.RegisterRoutedEvent("StylusInAirMove", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 217public static readonly RoutedEvent StylusEnterEvent = EventManager.RegisterRoutedEvent("StylusEnter", RoutingStrategy.Direct, typeof(StylusEventHandler), typeof(Stylus)); 242public static readonly RoutedEvent StylusLeaveEvent = EventManager.RegisterRoutedEvent("StylusLeave", RoutingStrategy.Direct, typeof(StylusEventHandler), typeof(Stylus)); 267public static readonly RoutedEvent PreviewStylusInRangeEvent = EventManager.RegisterRoutedEvent("PreviewStylusInRange", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 292public static readonly RoutedEvent StylusInRangeEvent = EventManager.RegisterRoutedEvent("StylusInRange", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 317public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = EventManager.RegisterRoutedEvent("PreviewStylusOutOfRange", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 342public static readonly RoutedEvent StylusOutOfRangeEvent = EventManager.RegisterRoutedEvent("StylusOutOfRange", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 367public static readonly RoutedEvent PreviewStylusSystemGestureEvent = EventManager.RegisterRoutedEvent("PreviewStylusSystemGesture", RoutingStrategy.Tunnel, typeof(StylusSystemGestureEventHandler), typeof(Stylus)); 392public static readonly RoutedEvent StylusSystemGestureEvent = EventManager.RegisterRoutedEvent("StylusSystemGesture", RoutingStrategy.Bubble, typeof(StylusSystemGestureEventHandler), typeof(Stylus)); 417public static readonly RoutedEvent GotStylusCaptureEvent = EventManager.RegisterRoutedEvent("GotStylusCapture", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 442public static readonly RoutedEvent LostStylusCaptureEvent = EventManager.RegisterRoutedEvent("LostStylusCapture", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 467public static readonly RoutedEvent StylusButtonDownEvent = EventManager.RegisterRoutedEvent("StylusButtonDown", RoutingStrategy.Bubble, typeof(StylusButtonEventHandler), typeof(Stylus)); 493public static readonly RoutedEvent StylusButtonUpEvent = EventManager.RegisterRoutedEvent("StylusButtonUp", RoutingStrategy.Bubble, typeof(StylusButtonEventHandler), typeof(Stylus)); 519public static readonly RoutedEvent PreviewStylusButtonDownEvent = EventManager.RegisterRoutedEvent("PreviewStylusButtonDown", RoutingStrategy.Tunnel, typeof(StylusButtonEventHandler), typeof(Stylus)); 545public static readonly RoutedEvent PreviewStylusButtonUpEvent = EventManager.RegisterRoutedEvent("PreviewStylusButtonUp", RoutingStrategy.Tunnel, typeof(StylusButtonEventHandler), typeof(Stylus)); 573/// <seealso cref="Stylus.IsPressAndHoldEnabledProperty" /> 591/// <seealso cref="Stylus.IsPressAndHoldEnabledProperty" /> 602/// <seealso cref="Stylus.GetIsPressAndHoldEnabled" /> 603/// <seealso cref="Stylus.SetIsPressAndHoldEnabled" /> 605= DependencyProperty.RegisterAttached("IsPressAndHoldEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) 613/// <seealso cref="Stylus.IsFlicksEnabledProperty" /> 631/// <seealso cref="Stylus.IsFlicksEnabledProperty" /> 642/// <seealso cref="Stylus.GetIsFlicksEnabled" /> 643/// <seealso cref="Stylus.SetIsFlicksEnabled" /> 645= DependencyProperty.RegisterAttached("IsFlicksEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) 653/// <seealso cref="Stylus.IsTapFeedbackEnabledProperty" /> 671/// <seealso cref="Stylus.IsTapFeedbackEnabledProperty" /> 682/// <seealso cref="Stylus.GetIsTapFeedbackEnabled" /> 683/// <seealso cref="Stylus.SetIsTapFeedbackEnabled" /> 685= DependencyProperty.RegisterAttached("IsTapFeedbackEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) 693/// <seealso cref="Stylus.IsTouchFeedbackEnabledProperty" /> 710/// <seealso cref="Stylus.IsTouchFeedbackEnabledProperty" /> 721/// <seealso cref="Stylus.GetIsTouchFeedbackEnabled" /> 722/// <seealso cref="Stylus.SetIsTouchFeedbackEnabled" /> 724= DependencyProperty.RegisterAttached("IsTouchFeedbackEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) 735return Stylus.CurrentStylusDevice?.DirectlyOver; 747return Stylus.CurrentStylusDevice?.Captured ?? Mouse.Captured;
System\Windows\Input\Stylus\Common\StylusLogic.cs (25)
590if (routedEvent == Stylus.PreviewStylusDownEvent) 591return Stylus.StylusDownEvent; 592if (routedEvent == Stylus.PreviewStylusUpEvent) 593return Stylus.StylusUpEvent; 594if (routedEvent == Stylus.PreviewStylusMoveEvent) 595return Stylus.StylusMoveEvent; 596if (routedEvent == Stylus.PreviewStylusInAirMoveEvent) 597return Stylus.StylusInAirMoveEvent; 598if (routedEvent == Stylus.PreviewStylusInRangeEvent) 599return Stylus.StylusInRangeEvent; 600if (routedEvent == Stylus.PreviewStylusOutOfRangeEvent) 601return Stylus.StylusOutOfRangeEvent; 602if (routedEvent == Stylus.PreviewStylusSystemGestureEvent) 603return Stylus.StylusSystemGestureEvent; 604if (routedEvent == Stylus.PreviewStylusButtonDownEvent) 605return Stylus.StylusButtonDownEvent; 606if (routedEvent == Stylus.PreviewStylusButtonUpEvent) 607return Stylus.StylusButtonUpEvent; 619previewEvent = Stylus.PreviewStylusDownEvent; 624previewEvent = Stylus.PreviewStylusUpEvent; 629previewEvent = Stylus.PreviewStylusMoveEvent; 634previewEvent = Stylus.PreviewStylusInAirMoveEvent; 639previewEvent = Stylus.PreviewStylusInRangeEvent; 644previewEvent = Stylus.PreviewStylusOutOfRangeEvent; 649previewEvent = Stylus.PreviewStylusSystemGestureEvent;
System\Windows\Input\Stylus\Common\Tablet.cs (1)
21StylusDevice stylus = Stylus.CurrentStylusDevice;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (18)
809Stylus.Capture(null); 970(routedEvent == Stylus.StylusMoveEvent || 971routedEvent == Stylus.StylusDownEvent || 972routedEvent == Stylus.StylusUpEvent)); 992if (routedEvent != Stylus.PreviewStylusSystemGestureEvent) 994if (routedEvent == Stylus.PreviewStylusDownEvent) 1034if (eventMain == Stylus.StylusDownEvent || 1035eventMain == Stylus.PreviewStylusDownEvent) 1040else if (eventMain == Stylus.StylusButtonDownEvent || 1041eventMain == Stylus.StylusButtonUpEvent) 1046else if (eventMain != Stylus.StylusSystemGestureEvent) 1073stylusEventArgs.RoutedEvent == Stylus.PreviewStylusUpEvent && 1104if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent && 1127if (stylusEventArgs.RoutedEvent == Stylus.StylusMoveEvent) 1131else if (stylusEventArgs.RoutedEvent == Stylus.StylusDownEvent) 1135else if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent) 1264if (args.StagingItem.Input.RoutedEvent == Stylus.PreviewStylusDownEvent) 1301else if (args.StagingItem.Input.RoutedEvent == Stylus.PreviewStylusSystemGestureEvent)
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1050RoutedEvent = Stylus.LostStylusCaptureEvent, 1059RoutedEvent = Stylus.GotStylusCaptureEvent,
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (2)
183return Stylus.CurrentStylusDevice?.Target; 194return Stylus.CurrentStylusDevice?.ActiveSource;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (29)
1055if (e.StagingItem.Input.RoutedEvent == Stylus.PreviewStylusDownEvent) 1258if (e.StagingItem.Input.RoutedEvent == Stylus.StylusOutOfRangeEvent) 1322if (e.StagingItem.Input.RoutedEvent == Stylus.StylusMoveEvent) 1334if (e.StagingItem.Input.RoutedEvent == Stylus.StylusSystemGestureEvent) 1356if (e.StagingItem.Input.RoutedEvent == Stylus.StylusOutOfRangeEvent) 1378if (routedEvent != Stylus.PreviewStylusSystemGestureEvent) 1380if (routedEvent == Stylus.PreviewStylusDownEvent) 1418if (eventMain == Stylus.StylusDownEvent || 1419eventMain == Stylus.PreviewStylusDownEvent) 1424else if (eventMain == Stylus.StylusButtonDownEvent || 1425eventMain == Stylus.StylusButtonUpEvent) 1430else if (eventMain != Stylus.StylusSystemGestureEvent) 1456if (stylusEventArgs?.RoutedEvent == Stylus.PreviewStylusUpEvent && 1484if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent && 1498else if (e.StagingItem.Input.RoutedEvent == Stylus.StylusSystemGestureEvent) 1528(routedEvent == Stylus.StylusMoveEvent || 1529routedEvent == Stylus.StylusDownEvent || 1530routedEvent == Stylus.StylusUpEvent)); 1546if (stylusEventArgs.RoutedEvent == Stylus.StylusMoveEvent) 1550else if (stylusEventArgs.RoutedEvent == Stylus.StylusDownEvent) 1554else if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent) 1596storedStagingItems[stagingItemCount - 1].Input.RoutedEvent == Stylus.StylusMoveEvent) 2462Stylus.Capture(null); 2886if (routedEvent != null && (routedEvent == Stylus.StylusDownEvent 2887|| routedEvent == Stylus.StylusUpEvent 2888|| routedEvent == Stylus.StylusMoveEvent 2889|| routedEvent == Stylus.StylusInAirMoveEvent)) 2919args.RoutedEvent = Stylus.PreviewStylusButtonDownEvent; 2923args.RoutedEvent = Stylus.PreviewStylusButtonUpEvent;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (7)
628RoutedEvent = Stylus.LostStylusCaptureEvent, 637RoutedEvent = Stylus.GotStylusCaptureEvent, 1739if (stylusEvent == Stylus.StylusSystemGestureEvent) 1778else if (stylusEvent == Stylus.StylusInAirMoveEvent) 1782else if (stylusEvent == Stylus.StylusDownEvent) 1793else if (stylusEvent == Stylus.StylusMoveEvent) 1800else if (stylusEvent == Stylus.StylusUpEvent)
System\Windows\Input\Stylus\Wisp\WispTabletDevice.cs (2)
130StylusDevice stylusDevice = Stylus.CurrentStylusDevice; 149StylusDevice stylusDevice = Stylus.CurrentStylusDevice;
System\Windows\InterOp\HwndStylusInputProvider.cs (4)
98bool isPressAndHoldEnabled = Stylus.GetIsPressAndHoldEnabled(elementCur); 99bool isFlicksEnabled = Stylus.GetIsFlicksEnabled(elementCur); 100bool isTapFeedbackEnabled = Stylus.GetIsTapFeedbackEnabled(elementCur); 101bool isTouchFeedbackEnabled = Stylus.GetIsTouchFeedbackEnabled(elementCur);
System\Windows\StylusOverProperty.cs (4)
33if(Stylus.CurrentStylusDevice == null) 38StylusEventArgs stylusEventArgs = new StylusEventArgs(Stylus.CurrentStylusDevice, Environment.TickCount) 40RoutedEvent = oldValue ? Stylus.StylusLeaveEvent : Stylus.StylusEnterEvent
System\Windows\UIElement.cs (5)
2515return (Stylus.DirectlyOver == this); 2531return Stylus.Capture(this); 2539Stylus.Capture(null); 4345if (IsDefaultValue(this, Stylus.IsFlicksEnabledProperty)) 4347SetCurrentValueInternal(Stylus.IsFlicksEnabledProperty, BooleanBoxes.FalseBox);
System\Windows\UIElement3D.cs (3)
494return (Stylus.DirectlyOver == this); 510return Stylus.Capture(this); 518Stylus.Capture(null);
PresentationFramework (23)
MS\Internal\Ink\EditingCoordinator.cs (6)
47_inkCanvas.AddHandler(Stylus.StylusInRangeEvent, new StylusEventHandler(OnInkCanvasStylusInAirOrInRangeMove)); 48_inkCanvas.AddHandler(Stylus.StylusInAirMoveEvent, new StylusEventHandler(OnInkCanvasStylusInAirOrInRangeMove)); 49_inkCanvas.AddHandler(Stylus.StylusOutOfRangeEvent, new StylusEventHandler(OnInkCanvasStylusOutOfRange)); 414StylusDevice stylusDevice = Stylus.CurrentStylusDevice; 957_inkCanvas.AddHandler(Stylus.StylusMoveEvent, new StylusEventHandler(OnInkCanvasDeviceMove<StylusEventArgs>)); 1010_inkCanvas.RemoveHandler(Stylus.StylusMoveEvent, new StylusEventHandler(OnInkCanvasDeviceMove<StylusEventArgs>));
System\Windows\Controls\InkCanvas.cs (5)
55EventManager.RegisterClassHandler(ownerType, Stylus.StylusDownEvent, 61EventManager.RegisterClassHandler(ownerType, Stylus.StylusUpEvent, 99defaultStyle.Setters.Add(new Setter(Stylus.IsFlicksEnabledProperty, false)); 101defaultStyle.Setters.Add(new Setter(Stylus.IsTapFeedbackEnabledProperty, false)); 103defaultStyle.Setters.Add(new Setter(Stylus.IsTouchFeedbackEnabledProperty, false));
System\Windows\Controls\StickyNote.cs (1)
84EventManager.RegisterClassHandler(owner, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(_OnPreviewDeviceDown<StylusDownEventArgs>));
System\Windows\FrameworkContentElement.cs (4)
81Stylus.IsPressAndHoldEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 82Stylus.IsFlicksEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 83Stylus.IsTapFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 84Stylus.IsTouchFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
System\Windows\FrameworkElement.cs (4)
2376Stylus.IsPressAndHoldEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2377Stylus.IsFlicksEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2378Stylus.IsTapFeedbackEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2379Stylus.IsTouchFeedbackEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
714case 621: t = () => typeof(Stylus); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10742typeof(System.Windows.Input.Stylus),
System\Windows\Markup\KnownTypes.cs (1)
6168case KnownElements.Stylus: t = typeof(System.Windows.Input.Stylus); break;
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\KeyTipService.cs (1)
693routedEvent == Stylus.PreviewStylusDownEvent)