393 references to Stylus
PresentationCore (369)
System\Windows\ContentElement.cs (3)
418return (Stylus.DirectlyOver == this); 434return Stylus.Capture(this); 442Stylus.Capture(null);
System\Windows\Generated\ContentElement.cs (66)
1221public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 1228add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 1229remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 1240public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 1247add { AddHandler(Stylus.StylusDownEvent, value, false); } 1248remove { RemoveHandler(Stylus.StylusDownEvent, value); } 1259public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 1266add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 1267remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 1278public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 1285add { AddHandler(Stylus.StylusUpEvent, value, false); } 1286remove { RemoveHandler(Stylus.StylusUpEvent, value); } 1297public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 1304add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 1305remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 1316public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 1323add { AddHandler(Stylus.StylusMoveEvent, value, false); } 1324remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 1335public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 1342add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 1343remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 1354public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 1361add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 1362remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 1373public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 1380add { AddHandler(Stylus.StylusEnterEvent, value, false); } 1381remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 1392public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 1399add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 1400remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 1411public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 1418add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 1419remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 1430public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 1437add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 1438remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 1449public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 1456add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 1457remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 1468public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 1475add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 1476remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 1487public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 1494add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 1495remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 1506public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 1513add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 1514remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 1525public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 1532add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 1533remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 1544public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 1551add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 1552remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 1563public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 1570add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 1571remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 1582public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 1589add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 1590remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 1601public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 1608add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 1609remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 1620public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 1627add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 1628remove { RemoveHandler(Stylus.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement.cs (88)
763EventManager.RegisterClassHandler(type, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(UIElement.OnPreviewStylusDownThunk), false); 764EventManager.RegisterClassHandler(type, Stylus.StylusDownEvent, new StylusDownEventHandler(UIElement.OnStylusDownThunk), false); 765EventManager.RegisterClassHandler(type, Stylus.PreviewStylusUpEvent, new StylusEventHandler(UIElement.OnPreviewStylusUpThunk), false); 766EventManager.RegisterClassHandler(type, Stylus.StylusUpEvent, new StylusEventHandler(UIElement.OnStylusUpThunk), false); 767EventManager.RegisterClassHandler(type, Stylus.PreviewStylusMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusMoveThunk), false); 768EventManager.RegisterClassHandler(type, Stylus.StylusMoveEvent, new StylusEventHandler(UIElement.OnStylusMoveThunk), false); 769EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInAirMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusInAirMoveThunk), false); 770EventManager.RegisterClassHandler(type, Stylus.StylusInAirMoveEvent, new StylusEventHandler(UIElement.OnStylusInAirMoveThunk), false); 771EventManager.RegisterClassHandler(type, Stylus.StylusEnterEvent, new StylusEventHandler(UIElement.OnStylusEnterThunk), false); 772EventManager.RegisterClassHandler(type, Stylus.StylusLeaveEvent, new StylusEventHandler(UIElement.OnStylusLeaveThunk), false); 773EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusInRangeThunk), false); 774EventManager.RegisterClassHandler(type, Stylus.StylusInRangeEvent, new StylusEventHandler(UIElement.OnStylusInRangeThunk), false); 775EventManager.RegisterClassHandler(type, Stylus.PreviewStylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusOutOfRangeThunk), false); 776EventManager.RegisterClassHandler(type, Stylus.StylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnStylusOutOfRangeThunk), false); 777EventManager.RegisterClassHandler(type, Stylus.PreviewStylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnPreviewStylusSystemGestureThunk), false); 778EventManager.RegisterClassHandler(type, Stylus.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnStylusSystemGestureThunk), false); 779EventManager.RegisterClassHandler(type, Stylus.GotStylusCaptureEvent, new StylusEventHandler(UIElement.OnGotStylusCaptureThunk), false); 780EventManager.RegisterClassHandler(type, Stylus.LostStylusCaptureEvent, new StylusEventHandler(UIElement.OnLostStylusCaptureThunk), false); 781EventManager.RegisterClassHandler(type, Stylus.StylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonDownThunk), false); 782EventManager.RegisterClassHandler(type, Stylus.StylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonUpThunk), false); 783EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonDownThunk), false); 784EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonUpThunk), false); 3174public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 3181add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 3182remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 3193public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 3200add { AddHandler(Stylus.StylusDownEvent, value, false); } 3201remove { RemoveHandler(Stylus.StylusDownEvent, value); } 3212public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 3219add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 3220remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 3231public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 3238add { AddHandler(Stylus.StylusUpEvent, value, false); } 3239remove { RemoveHandler(Stylus.StylusUpEvent, value); } 3250public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 3257add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 3258remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 3269public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 3276add { AddHandler(Stylus.StylusMoveEvent, value, false); } 3277remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 3288public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 3295add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 3296remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 3307public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 3314add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 3315remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 3326public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 3333add { AddHandler(Stylus.StylusEnterEvent, value, false); } 3334remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 3345public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 3352add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 3353remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 3364public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 3371add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 3372remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 3383public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 3390add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 3391remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 3402public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 3409add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 3410remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 3421public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 3428add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 3429remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 3440public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 3447add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 3448remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 3459public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 3466add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 3467remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 3478public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 3485add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 3486remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 3497public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 3504add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 3505remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 3516public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 3523add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 3524remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 3535public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 3542add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 3543remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 3554public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 3561add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 3562remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 3573public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 3580add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 3581remove { RemoveHandler(Stylus.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement3D.cs (66)
942public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 949add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 950remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 961public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 968add { AddHandler(Stylus.StylusDownEvent, value, false); } 969remove { RemoveHandler(Stylus.StylusDownEvent, value); } 980public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 987add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 988remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 999public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 1006add { AddHandler(Stylus.StylusUpEvent, value, false); } 1007remove { RemoveHandler(Stylus.StylusUpEvent, value); } 1018public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 1025add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 1026remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 1037public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 1044add { AddHandler(Stylus.StylusMoveEvent, value, false); } 1045remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 1056public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 1063add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 1064remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 1075public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 1082add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 1083remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 1094public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 1101add { AddHandler(Stylus.StylusEnterEvent, value, false); } 1102remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 1113public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 1120add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 1121remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 1132public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 1139add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 1140remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 1151public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 1158add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 1159remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 1170public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 1177add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 1178remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 1189public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 1196add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 1197remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 1208public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 1215add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 1216remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 1227public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 1234add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 1235remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 1246public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 1253add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 1254remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 1265public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 1272add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 1273remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 1284public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 1291add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 1292remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 1303public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 1310add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 1311remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 1322public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 1329add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 1330remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 1341public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 1348add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 1349remove { 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)
614if (routedEvent == Stylus.PreviewStylusDownEvent) 615return Stylus.StylusDownEvent; 616if (routedEvent == Stylus.PreviewStylusUpEvent) 617return Stylus.StylusUpEvent; 618if (routedEvent == Stylus.PreviewStylusMoveEvent) 619return Stylus.StylusMoveEvent; 620if (routedEvent == Stylus.PreviewStylusInAirMoveEvent) 621return Stylus.StylusInAirMoveEvent; 622if (routedEvent == Stylus.PreviewStylusInRangeEvent) 623return Stylus.StylusInRangeEvent; 624if (routedEvent == Stylus.PreviewStylusOutOfRangeEvent) 625return Stylus.StylusOutOfRangeEvent; 626if (routedEvent == Stylus.PreviewStylusSystemGestureEvent) 627return Stylus.StylusSystemGestureEvent; 628if (routedEvent == Stylus.PreviewStylusButtonDownEvent) 629return Stylus.StylusButtonDownEvent; 630if (routedEvent == Stylus.PreviewStylusButtonUpEvent) 631return Stylus.StylusButtonUpEvent; 643previewEvent = Stylus.PreviewStylusDownEvent; 648previewEvent = Stylus.PreviewStylusUpEvent; 653previewEvent = Stylus.PreviewStylusMoveEvent; 658previewEvent = Stylus.PreviewStylusInAirMoveEvent; 663previewEvent = Stylus.PreviewStylusInRangeEvent; 668previewEvent = Stylus.PreviewStylusOutOfRangeEvent; 673previewEvent = 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)
1073lostCapture.RoutedEvent = Stylus.LostStylusCaptureEvent; 1080gotCapture.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)
663lostCapture.RoutedEvent = Stylus.LostStylusCaptureEvent; 670gotCapture.RoutedEvent = Stylus.GotStylusCaptureEvent; 1769if (stylusEvent == Stylus.StylusSystemGestureEvent) 1808else if (stylusEvent == Stylus.StylusInAirMoveEvent) 1812else if (stylusEvent == Stylus.StylusDownEvent) 1823else if (stylusEvent == Stylus.StylusMoveEvent) 1830else 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)
110bool isPressAndHoldEnabled = Stylus.GetIsPressAndHoldEnabled(elementCur); 111bool isFlicksEnabled = Stylus.GetIsFlicksEnabled(elementCur); 112bool isTapFeedbackEnabled = Stylus.GetIsTapFeedbackEnabled(elementCur); 113bool 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)
2532return (Stylus.DirectlyOver == this); 2548return Stylus.Capture(this); 2556Stylus.Capture(null); 4372if (IsDefaultValue(this, Stylus.IsFlicksEnabledProperty)) 4374SetCurrentValueInternal(Stylus.IsFlicksEnabledProperty, BooleanBoxes.FalseBox);
System\Windows\UIElement3D.cs (3)
511return (Stylus.DirectlyOver == this); 527return Stylus.Capture(this); 535Stylus.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)
2389Stylus.IsPressAndHoldEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2390Stylus.IsFlicksEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2391Stylus.IsTapFeedbackEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2392Stylus.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)