393 references to Stylus
PresentationCore (369)
System\Windows\ContentElement.cs (3)
405return (Stylus.DirectlyOver == this); 421return Stylus.Capture(this); 429Stylus.Capture(null);
System\Windows\Generated\ContentElement.cs (66)
1204public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 1211add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 1212remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 1223public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 1230add { AddHandler(Stylus.StylusDownEvent, value, false); } 1231remove { RemoveHandler(Stylus.StylusDownEvent, value); } 1242public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 1249add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 1250remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 1261public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 1268add { AddHandler(Stylus.StylusUpEvent, value, false); } 1269remove { RemoveHandler(Stylus.StylusUpEvent, value); } 1280public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 1287add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 1288remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 1299public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 1306add { AddHandler(Stylus.StylusMoveEvent, value, false); } 1307remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 1318public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 1325add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 1326remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 1337public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 1344add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 1345remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 1356public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 1363add { AddHandler(Stylus.StylusEnterEvent, value, false); } 1364remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 1375public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 1382add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 1383remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 1394public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 1401add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 1402remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 1413public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 1420add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 1421remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 1432public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 1439add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 1440remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 1451public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 1458add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 1459remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 1470public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 1477add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 1478remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 1489public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 1496add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 1497remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 1508public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 1515add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 1516remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 1527public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 1534add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 1535remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 1546public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 1553add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 1554remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 1565public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 1572add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 1573remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 1584public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 1591add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 1592remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 1603public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 1610add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 1611remove { RemoveHandler(Stylus.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement.cs (88)
746EventManager.RegisterClassHandler(type, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(UIElement.OnPreviewStylusDownThunk), false); 747EventManager.RegisterClassHandler(type, Stylus.StylusDownEvent, new StylusDownEventHandler(UIElement.OnStylusDownThunk), false); 748EventManager.RegisterClassHandler(type, Stylus.PreviewStylusUpEvent, new StylusEventHandler(UIElement.OnPreviewStylusUpThunk), false); 749EventManager.RegisterClassHandler(type, Stylus.StylusUpEvent, new StylusEventHandler(UIElement.OnStylusUpThunk), false); 750EventManager.RegisterClassHandler(type, Stylus.PreviewStylusMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusMoveThunk), false); 751EventManager.RegisterClassHandler(type, Stylus.StylusMoveEvent, new StylusEventHandler(UIElement.OnStylusMoveThunk), false); 752EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInAirMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusInAirMoveThunk), false); 753EventManager.RegisterClassHandler(type, Stylus.StylusInAirMoveEvent, new StylusEventHandler(UIElement.OnStylusInAirMoveThunk), false); 754EventManager.RegisterClassHandler(type, Stylus.StylusEnterEvent, new StylusEventHandler(UIElement.OnStylusEnterThunk), false); 755EventManager.RegisterClassHandler(type, Stylus.StylusLeaveEvent, new StylusEventHandler(UIElement.OnStylusLeaveThunk), false); 756EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusInRangeThunk), false); 757EventManager.RegisterClassHandler(type, Stylus.StylusInRangeEvent, new StylusEventHandler(UIElement.OnStylusInRangeThunk), false); 758EventManager.RegisterClassHandler(type, Stylus.PreviewStylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusOutOfRangeThunk), false); 759EventManager.RegisterClassHandler(type, Stylus.StylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnStylusOutOfRangeThunk), false); 760EventManager.RegisterClassHandler(type, Stylus.PreviewStylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnPreviewStylusSystemGestureThunk), false); 761EventManager.RegisterClassHandler(type, Stylus.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnStylusSystemGestureThunk), false); 762EventManager.RegisterClassHandler(type, Stylus.GotStylusCaptureEvent, new StylusEventHandler(UIElement.OnGotStylusCaptureThunk), false); 763EventManager.RegisterClassHandler(type, Stylus.LostStylusCaptureEvent, new StylusEventHandler(UIElement.OnLostStylusCaptureThunk), false); 764EventManager.RegisterClassHandler(type, Stylus.StylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonDownThunk), false); 765EventManager.RegisterClassHandler(type, Stylus.StylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonUpThunk), false); 766EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonDownThunk), false); 767EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonUpThunk), false); 3157public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 3164add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 3165remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 3176public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 3183add { AddHandler(Stylus.StylusDownEvent, value, false); } 3184remove { RemoveHandler(Stylus.StylusDownEvent, value); } 3195public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 3202add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 3203remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 3214public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 3221add { AddHandler(Stylus.StylusUpEvent, value, false); } 3222remove { RemoveHandler(Stylus.StylusUpEvent, value); } 3233public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 3240add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 3241remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 3252public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 3259add { AddHandler(Stylus.StylusMoveEvent, value, false); } 3260remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 3271public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 3278add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 3279remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 3290public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 3297add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 3298remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 3309public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 3316add { AddHandler(Stylus.StylusEnterEvent, value, false); } 3317remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 3328public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 3335add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 3336remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 3347public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 3354add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 3355remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 3366public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 3373add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 3374remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 3385public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 3392add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 3393remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 3404public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 3411add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 3412remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 3423public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 3430add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 3431remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 3442public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 3449add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 3450remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 3461public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 3468add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 3469remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 3480public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 3487add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 3488remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 3499public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 3506add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 3507remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 3518public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 3525add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 3526remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 3537public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 3544add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 3545remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 3556public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 3563add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 3564remove { RemoveHandler(Stylus.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement3D.cs (66)
932public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 939add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 940remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 951public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 958add { AddHandler(Stylus.StylusDownEvent, value, false); } 959remove { RemoveHandler(Stylus.StylusDownEvent, value); } 970public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 977add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 978remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 989public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 996add { AddHandler(Stylus.StylusUpEvent, value, false); } 997remove { RemoveHandler(Stylus.StylusUpEvent, value); } 1008public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 1015add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 1016remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 1027public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 1034add { AddHandler(Stylus.StylusMoveEvent, value, false); } 1035remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 1046public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 1053add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 1054remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 1065public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 1072add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 1073remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 1084public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 1091add { AddHandler(Stylus.StylusEnterEvent, value, false); } 1092remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 1103public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 1110add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 1111remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 1122public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 1129add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 1130remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 1141public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 1148add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 1149remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 1160public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 1167add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 1168remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 1179public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 1186add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 1187remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 1198public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 1205add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 1206remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 1217public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 1224add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 1225remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 1236public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 1243add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 1244remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 1255public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 1262add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 1263remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 1274public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 1281add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 1282remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 1293public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 1300add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 1301remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 1312public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 1319add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 1320remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 1331public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 1338add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 1339remove { RemoveHandler(Stylus.PreviewStylusButtonUpEvent, value); }
System\Windows\Input\Stylus\Common\Stylus.cs (44)
18public static readonly RoutedEvent PreviewStylusDownEvent = EventManager.RegisterRoutedEvent("PreviewStylusDown", RoutingStrategy.Tunnel, typeof(StylusDownEventHandler), typeof(Stylus)); 43public static readonly RoutedEvent StylusDownEvent = EventManager.RegisterRoutedEvent("StylusDown", RoutingStrategy.Bubble, typeof(StylusDownEventHandler), typeof(Stylus)); 68public static readonly RoutedEvent PreviewStylusUpEvent = EventManager.RegisterRoutedEvent("PreviewStylusUp", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 93public static readonly RoutedEvent StylusUpEvent = EventManager.RegisterRoutedEvent("StylusUp", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 118public static readonly RoutedEvent PreviewStylusMoveEvent = EventManager.RegisterRoutedEvent("PreviewStylusMove", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 143public static readonly RoutedEvent StylusMoveEvent = EventManager.RegisterRoutedEvent("StylusMove", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 168public static readonly RoutedEvent PreviewStylusInAirMoveEvent = EventManager.RegisterRoutedEvent("PreviewStylusInAirMove", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 193public static readonly RoutedEvent StylusInAirMoveEvent = EventManager.RegisterRoutedEvent("StylusInAirMove", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 218public static readonly RoutedEvent StylusEnterEvent = EventManager.RegisterRoutedEvent("StylusEnter", RoutingStrategy.Direct, typeof(StylusEventHandler), typeof(Stylus)); 243public static readonly RoutedEvent StylusLeaveEvent = EventManager.RegisterRoutedEvent("StylusLeave", RoutingStrategy.Direct, typeof(StylusEventHandler), typeof(Stylus)); 268public static readonly RoutedEvent PreviewStylusInRangeEvent = EventManager.RegisterRoutedEvent("PreviewStylusInRange", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 293public static readonly RoutedEvent StylusInRangeEvent = EventManager.RegisterRoutedEvent("StylusInRange", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 318public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = EventManager.RegisterRoutedEvent("PreviewStylusOutOfRange", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(Stylus)); 343public static readonly RoutedEvent StylusOutOfRangeEvent = EventManager.RegisterRoutedEvent("StylusOutOfRange", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 368public static readonly RoutedEvent PreviewStylusSystemGestureEvent = EventManager.RegisterRoutedEvent("PreviewStylusSystemGesture", RoutingStrategy.Tunnel, typeof(StylusSystemGestureEventHandler), typeof(Stylus)); 393public static readonly RoutedEvent StylusSystemGestureEvent = EventManager.RegisterRoutedEvent("StylusSystemGesture", RoutingStrategy.Bubble, typeof(StylusSystemGestureEventHandler), typeof(Stylus)); 418public static readonly RoutedEvent GotStylusCaptureEvent = EventManager.RegisterRoutedEvent("GotStylusCapture", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 443public static readonly RoutedEvent LostStylusCaptureEvent = EventManager.RegisterRoutedEvent("LostStylusCapture", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(Stylus)); 468public static readonly RoutedEvent StylusButtonDownEvent = EventManager.RegisterRoutedEvent("StylusButtonDown", RoutingStrategy.Bubble, typeof(StylusButtonEventHandler), typeof(Stylus)); 494public static readonly RoutedEvent StylusButtonUpEvent = EventManager.RegisterRoutedEvent("StylusButtonUp", RoutingStrategy.Bubble, typeof(StylusButtonEventHandler), typeof(Stylus)); 520public static readonly RoutedEvent PreviewStylusButtonDownEvent = EventManager.RegisterRoutedEvent("PreviewStylusButtonDown", RoutingStrategy.Tunnel, typeof(StylusButtonEventHandler), typeof(Stylus)); 546public static readonly RoutedEvent PreviewStylusButtonUpEvent = EventManager.RegisterRoutedEvent("PreviewStylusButtonUp", RoutingStrategy.Tunnel, typeof(StylusButtonEventHandler), typeof(Stylus)); 574/// <seealso cref="Stylus.IsPressAndHoldEnabledProperty" /> 592/// <seealso cref="Stylus.IsPressAndHoldEnabledProperty" /> 603/// <seealso cref="Stylus.GetIsPressAndHoldEnabled" /> 604/// <seealso cref="Stylus.SetIsPressAndHoldEnabled" /> 606= DependencyProperty.RegisterAttached("IsPressAndHoldEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) 614/// <seealso cref="Stylus.IsFlicksEnabledProperty" /> 632/// <seealso cref="Stylus.IsFlicksEnabledProperty" /> 643/// <seealso cref="Stylus.GetIsFlicksEnabled" /> 644/// <seealso cref="Stylus.SetIsFlicksEnabled" /> 646= DependencyProperty.RegisterAttached("IsFlicksEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) 654/// <seealso cref="Stylus.IsTapFeedbackEnabledProperty" /> 672/// <seealso cref="Stylus.IsTapFeedbackEnabledProperty" /> 683/// <seealso cref="Stylus.GetIsTapFeedbackEnabled" /> 684/// <seealso cref="Stylus.SetIsTapFeedbackEnabled" /> 686= DependencyProperty.RegisterAttached("IsTapFeedbackEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) 694/// <seealso cref="Stylus.IsTouchFeedbackEnabledProperty" /> 711/// <seealso cref="Stylus.IsTouchFeedbackEnabledProperty" /> 722/// <seealso cref="Stylus.GetIsTouchFeedbackEnabled" /> 723/// <seealso cref="Stylus.SetIsTouchFeedbackEnabled" /> 725= DependencyProperty.RegisterAttached("IsTouchFeedbackEnabled", typeof(bool), typeof(Stylus), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits) 736return Stylus.CurrentStylusDevice?.DirectlyOver; 748return Stylus.CurrentStylusDevice?.Captured ?? Mouse.Captured;
System\Windows\Input\Stylus\Common\StylusLogic.cs (25)
591if (routedEvent == Stylus.PreviewStylusDownEvent) 592return Stylus.StylusDownEvent; 593if (routedEvent == Stylus.PreviewStylusUpEvent) 594return Stylus.StylusUpEvent; 595if (routedEvent == Stylus.PreviewStylusMoveEvent) 596return Stylus.StylusMoveEvent; 597if (routedEvent == Stylus.PreviewStylusInAirMoveEvent) 598return Stylus.StylusInAirMoveEvent; 599if (routedEvent == Stylus.PreviewStylusInRangeEvent) 600return Stylus.StylusInRangeEvent; 601if (routedEvent == Stylus.PreviewStylusOutOfRangeEvent) 602return Stylus.StylusOutOfRangeEvent; 603if (routedEvent == Stylus.PreviewStylusSystemGestureEvent) 604return Stylus.StylusSystemGestureEvent; 605if (routedEvent == Stylus.PreviewStylusButtonDownEvent) 606return Stylus.StylusButtonDownEvent; 607if (routedEvent == Stylus.PreviewStylusButtonUpEvent) 608return Stylus.StylusButtonUpEvent; 620previewEvent = Stylus.PreviewStylusDownEvent; 625previewEvent = Stylus.PreviewStylusUpEvent; 630previewEvent = Stylus.PreviewStylusMoveEvent; 635previewEvent = Stylus.PreviewStylusInAirMoveEvent; 640previewEvent = Stylus.PreviewStylusInRangeEvent; 645previewEvent = Stylus.PreviewStylusOutOfRangeEvent; 650previewEvent = Stylus.PreviewStylusSystemGestureEvent;
System\Windows\Input\Stylus\Common\Tablet.cs (1)
22StylusDevice stylus = Stylus.CurrentStylusDevice;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (18)
810Stylus.Capture(null); 971(routedEvent == Stylus.StylusMoveEvent || 972routedEvent == Stylus.StylusDownEvent || 973routedEvent == Stylus.StylusUpEvent)); 993if (routedEvent != Stylus.PreviewStylusSystemGestureEvent) 995if (routedEvent == Stylus.PreviewStylusDownEvent) 1035if (eventMain == Stylus.StylusDownEvent || 1036eventMain == Stylus.PreviewStylusDownEvent) 1041else if (eventMain == Stylus.StylusButtonDownEvent || 1042eventMain == Stylus.StylusButtonUpEvent) 1047else if (eventMain != Stylus.StylusSystemGestureEvent) 1074stylusEventArgs.RoutedEvent == Stylus.PreviewStylusUpEvent && 1105if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent && 1128if (stylusEventArgs.RoutedEvent == Stylus.StylusMoveEvent) 1132else if (stylusEventArgs.RoutedEvent == Stylus.StylusDownEvent) 1136else if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent) 1265if (args.StagingItem.Input.RoutedEvent == Stylus.PreviewStylusDownEvent) 1302else if (args.StagingItem.Input.RoutedEvent == Stylus.PreviewStylusSystemGestureEvent)
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1051RoutedEvent = Stylus.LostStylusCaptureEvent, 1060RoutedEvent = Stylus.GotStylusCaptureEvent,
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (2)
184return Stylus.CurrentStylusDevice?.Target; 195return 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) 1323if (e.StagingItem.Input.RoutedEvent == Stylus.StylusMoveEvent) 1335if (e.StagingItem.Input.RoutedEvent == Stylus.StylusSystemGestureEvent) 1357if (e.StagingItem.Input.RoutedEvent == Stylus.StylusOutOfRangeEvent) 1379if (routedEvent != Stylus.PreviewStylusSystemGestureEvent) 1381if (routedEvent == Stylus.PreviewStylusDownEvent) 1419if (eventMain == Stylus.StylusDownEvent || 1420eventMain == Stylus.PreviewStylusDownEvent) 1425else if (eventMain == Stylus.StylusButtonDownEvent || 1426eventMain == Stylus.StylusButtonUpEvent) 1431else if (eventMain != Stylus.StylusSystemGestureEvent) 1457if (stylusEventArgs?.RoutedEvent == Stylus.PreviewStylusUpEvent && 1485if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent && 1499else if (e.StagingItem.Input.RoutedEvent == Stylus.StylusSystemGestureEvent) 1529(routedEvent == Stylus.StylusMoveEvent || 1530routedEvent == Stylus.StylusDownEvent || 1531routedEvent == Stylus.StylusUpEvent)); 1547if (stylusEventArgs.RoutedEvent == Stylus.StylusMoveEvent) 1551else if (stylusEventArgs.RoutedEvent == Stylus.StylusDownEvent) 1555else if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent) 1597storedStagingItems[stagingItemCount - 1].Input.RoutedEvent == Stylus.StylusMoveEvent) 2463Stylus.Capture(null); 2887if (routedEvent != null && (routedEvent == Stylus.StylusDownEvent 2888|| routedEvent == Stylus.StylusUpEvent 2889|| routedEvent == Stylus.StylusMoveEvent 2890|| routedEvent == Stylus.StylusInAirMoveEvent)) 2920args.RoutedEvent = Stylus.PreviewStylusButtonDownEvent; 2924args.RoutedEvent = Stylus.PreviewStylusButtonUpEvent;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (7)
629RoutedEvent = Stylus.LostStylusCaptureEvent, 638RoutedEvent = Stylus.GotStylusCaptureEvent, 1740if (stylusEvent == Stylus.StylusSystemGestureEvent) 1779else if (stylusEvent == Stylus.StylusInAirMoveEvent) 1783else if (stylusEvent == Stylus.StylusDownEvent) 1794else if (stylusEvent == Stylus.StylusMoveEvent) 1801else if (stylusEvent == Stylus.StylusUpEvent)
System\Windows\Input\Stylus\Wisp\WispTabletDevice.cs (2)
131StylusDevice stylusDevice = Stylus.CurrentStylusDevice; 150StylusDevice stylusDevice = Stylus.CurrentStylusDevice;
System\Windows\InterOp\HwndStylusInputProvider.cs (4)
99bool isPressAndHoldEnabled = Stylus.GetIsPressAndHoldEnabled(elementCur); 100bool isFlicksEnabled = Stylus.GetIsFlicksEnabled(elementCur); 101bool isTapFeedbackEnabled = Stylus.GetIsTapFeedbackEnabled(elementCur); 102bool isTouchFeedbackEnabled = Stylus.GetIsTouchFeedbackEnabled(elementCur);
System\Windows\StylusOverProperty.cs (4)
34if(Stylus.CurrentStylusDevice == null) 39StylusEventArgs stylusEventArgs = new StylusEventArgs(Stylus.CurrentStylusDevice, Environment.TickCount) 41RoutedEvent = oldValue ? Stylus.StylusLeaveEvent : Stylus.StylusEnterEvent
System\Windows\UIElement.cs (5)
2516return (Stylus.DirectlyOver == this); 2532return Stylus.Capture(this); 2540Stylus.Capture(null); 4346if (IsDefaultValue(this, Stylus.IsFlicksEnabledProperty)) 4348SetCurrentValueInternal(Stylus.IsFlicksEnabledProperty, BooleanBoxes.FalseBox);
System\Windows\UIElement3D.cs (3)
495return (Stylus.DirectlyOver == this); 511return Stylus.Capture(this); 519Stylus.Capture(null);
PresentationFramework (23)
MS\Internal\Ink\EditingCoordinator.cs (6)
48_inkCanvas.AddHandler(Stylus.StylusInRangeEvent, new StylusEventHandler(OnInkCanvasStylusInAirOrInRangeMove)); 49_inkCanvas.AddHandler(Stylus.StylusInAirMoveEvent, new StylusEventHandler(OnInkCanvasStylusInAirOrInRangeMove)); 50_inkCanvas.AddHandler(Stylus.StylusOutOfRangeEvent, new StylusEventHandler(OnInkCanvasStylusOutOfRange)); 415StylusDevice stylusDevice = Stylus.CurrentStylusDevice; 958_inkCanvas.AddHandler(Stylus.StylusMoveEvent, new StylusEventHandler(OnInkCanvasDeviceMove<StylusEventArgs>)); 1011_inkCanvas.RemoveHandler(Stylus.StylusMoveEvent, new StylusEventHandler(OnInkCanvasDeviceMove<StylusEventArgs>));
System\Windows\Controls\InkCanvas.cs (5)
56EventManager.RegisterClassHandler(ownerType, Stylus.StylusDownEvent, 62EventManager.RegisterClassHandler(ownerType, Stylus.StylusUpEvent, 100defaultStyle.Setters.Add(new Setter(Stylus.IsFlicksEnabledProperty, false)); 102defaultStyle.Setters.Add(new Setter(Stylus.IsTapFeedbackEnabledProperty, false)); 104defaultStyle.Setters.Add(new Setter(Stylus.IsTouchFeedbackEnabledProperty, false));
System\Windows\Controls\StickyNote.cs (1)
85EventManager.RegisterClassHandler(owner, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(_OnPreviewDeviceDown<StylusDownEventArgs>));
System\Windows\FrameworkContentElement.cs (4)
82Stylus.IsPressAndHoldEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 83Stylus.IsFlicksEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 84Stylus.IsTapFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 85Stylus.IsTouchFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
System\Windows\FrameworkElement.cs (4)
2377Stylus.IsPressAndHoldEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2378Stylus.IsFlicksEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2379Stylus.IsTapFeedbackEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2380Stylus.IsTouchFeedbackEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
715case 621: t = () => typeof(Stylus); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10743typeof(System.Windows.Input.Stylus),
System\Windows\Markup\KnownTypes.cs (1)
6169case KnownElements.Stylus: t = typeof(System.Windows.Input.Stylus); break;
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\KeyTipService.cs (1)
694routedEvent == Stylus.PreviewStylusDownEvent)