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)
1215public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 1222add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 1223remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 1234public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 1241add { AddHandler(Stylus.StylusDownEvent, value, false); } 1242remove { RemoveHandler(Stylus.StylusDownEvent, value); } 1253public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 1260add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 1261remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 1272public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 1279add { AddHandler(Stylus.StylusUpEvent, value, false); } 1280remove { RemoveHandler(Stylus.StylusUpEvent, value); } 1291public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 1298add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 1299remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 1310public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 1317add { AddHandler(Stylus.StylusMoveEvent, value, false); } 1318remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 1329public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 1336add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 1337remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 1348public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 1355add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 1356remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 1367public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 1374add { AddHandler(Stylus.StylusEnterEvent, value, false); } 1375remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 1386public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 1393add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 1394remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 1405public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 1412add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 1413remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 1424public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 1431add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 1432remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 1443public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 1450add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 1451remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 1462public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 1469add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 1470remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 1481public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 1488add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 1489remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 1500public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 1507add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 1508remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 1519public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 1526add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 1527remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 1538public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 1545add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 1546remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 1557public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 1564add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 1565remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 1576public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 1583add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 1584remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 1595public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 1602add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 1603remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 1614public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 1621add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 1622remove { RemoveHandler(Stylus.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement.cs (88)
757EventManager.RegisterClassHandler(type, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(UIElement.OnPreviewStylusDownThunk), false); 758EventManager.RegisterClassHandler(type, Stylus.StylusDownEvent, new StylusDownEventHandler(UIElement.OnStylusDownThunk), false); 759EventManager.RegisterClassHandler(type, Stylus.PreviewStylusUpEvent, new StylusEventHandler(UIElement.OnPreviewStylusUpThunk), false); 760EventManager.RegisterClassHandler(type, Stylus.StylusUpEvent, new StylusEventHandler(UIElement.OnStylusUpThunk), false); 761EventManager.RegisterClassHandler(type, Stylus.PreviewStylusMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusMoveThunk), false); 762EventManager.RegisterClassHandler(type, Stylus.StylusMoveEvent, new StylusEventHandler(UIElement.OnStylusMoveThunk), false); 763EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInAirMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusInAirMoveThunk), false); 764EventManager.RegisterClassHandler(type, Stylus.StylusInAirMoveEvent, new StylusEventHandler(UIElement.OnStylusInAirMoveThunk), false); 765EventManager.RegisterClassHandler(type, Stylus.StylusEnterEvent, new StylusEventHandler(UIElement.OnStylusEnterThunk), false); 766EventManager.RegisterClassHandler(type, Stylus.StylusLeaveEvent, new StylusEventHandler(UIElement.OnStylusLeaveThunk), false); 767EventManager.RegisterClassHandler(type, Stylus.PreviewStylusInRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusInRangeThunk), false); 768EventManager.RegisterClassHandler(type, Stylus.StylusInRangeEvent, new StylusEventHandler(UIElement.OnStylusInRangeThunk), false); 769EventManager.RegisterClassHandler(type, Stylus.PreviewStylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusOutOfRangeThunk), false); 770EventManager.RegisterClassHandler(type, Stylus.StylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnStylusOutOfRangeThunk), false); 771EventManager.RegisterClassHandler(type, Stylus.PreviewStylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnPreviewStylusSystemGestureThunk), false); 772EventManager.RegisterClassHandler(type, Stylus.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnStylusSystemGestureThunk), false); 773EventManager.RegisterClassHandler(type, Stylus.GotStylusCaptureEvent, new StylusEventHandler(UIElement.OnGotStylusCaptureThunk), false); 774EventManager.RegisterClassHandler(type, Stylus.LostStylusCaptureEvent, new StylusEventHandler(UIElement.OnLostStylusCaptureThunk), false); 775EventManager.RegisterClassHandler(type, Stylus.StylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonDownThunk), false); 776EventManager.RegisterClassHandler(type, Stylus.StylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonUpThunk), false); 777EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonDownThunk), false); 778EventManager.RegisterClassHandler(type, Stylus.PreviewStylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonUpThunk), false); 3168public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 3175add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 3176remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 3187public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 3194add { AddHandler(Stylus.StylusDownEvent, value, false); } 3195remove { RemoveHandler(Stylus.StylusDownEvent, value); } 3206public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 3213add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 3214remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 3225public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 3232add { AddHandler(Stylus.StylusUpEvent, value, false); } 3233remove { RemoveHandler(Stylus.StylusUpEvent, value); } 3244public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 3251add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 3252remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 3263public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 3270add { AddHandler(Stylus.StylusMoveEvent, value, false); } 3271remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 3282public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 3289add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 3290remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 3301public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 3308add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 3309remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 3320public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 3327add { AddHandler(Stylus.StylusEnterEvent, value, false); } 3328remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 3339public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 3346add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 3347remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 3358public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 3365add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 3366remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 3377public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 3384add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 3385remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 3396public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 3403add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 3404remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 3415public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 3422add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 3423remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 3434public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 3441add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 3442remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 3453public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 3460add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 3461remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 3472public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 3479add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 3480remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 3491public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 3498add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 3499remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 3510public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 3517add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 3518remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 3529public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 3536add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 3537remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 3548public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 3555add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 3556remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 3567public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 3574add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 3575remove { RemoveHandler(Stylus.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement3D.cs (66)
934public static readonly RoutedEvent PreviewStylusDownEvent = Stylus.PreviewStylusDownEvent.AddOwner(_typeofThis); 941add { AddHandler(Stylus.PreviewStylusDownEvent, value, false); } 942remove { RemoveHandler(Stylus.PreviewStylusDownEvent, value); } 953public static readonly RoutedEvent StylusDownEvent = Stylus.StylusDownEvent.AddOwner(_typeofThis); 960add { AddHandler(Stylus.StylusDownEvent, value, false); } 961remove { RemoveHandler(Stylus.StylusDownEvent, value); } 972public static readonly RoutedEvent PreviewStylusUpEvent = Stylus.PreviewStylusUpEvent.AddOwner(_typeofThis); 979add { AddHandler(Stylus.PreviewStylusUpEvent, value, false); } 980remove { RemoveHandler(Stylus.PreviewStylusUpEvent, value); } 991public static readonly RoutedEvent StylusUpEvent = Stylus.StylusUpEvent.AddOwner(_typeofThis); 998add { AddHandler(Stylus.StylusUpEvent, value, false); } 999remove { RemoveHandler(Stylus.StylusUpEvent, value); } 1010public static readonly RoutedEvent PreviewStylusMoveEvent = Stylus.PreviewStylusMoveEvent.AddOwner(_typeofThis); 1017add { AddHandler(Stylus.PreviewStylusMoveEvent, value, false); } 1018remove { RemoveHandler(Stylus.PreviewStylusMoveEvent, value); } 1029public static readonly RoutedEvent StylusMoveEvent = Stylus.StylusMoveEvent.AddOwner(_typeofThis); 1036add { AddHandler(Stylus.StylusMoveEvent, value, false); } 1037remove { RemoveHandler(Stylus.StylusMoveEvent, value); } 1048public static readonly RoutedEvent PreviewStylusInAirMoveEvent = Stylus.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis); 1055add { AddHandler(Stylus.PreviewStylusInAirMoveEvent, value, false); } 1056remove { RemoveHandler(Stylus.PreviewStylusInAirMoveEvent, value); } 1067public static readonly RoutedEvent StylusInAirMoveEvent = Stylus.StylusInAirMoveEvent.AddOwner(_typeofThis); 1074add { AddHandler(Stylus.StylusInAirMoveEvent, value, false); } 1075remove { RemoveHandler(Stylus.StylusInAirMoveEvent, value); } 1086public static readonly RoutedEvent StylusEnterEvent = Stylus.StylusEnterEvent.AddOwner(_typeofThis); 1093add { AddHandler(Stylus.StylusEnterEvent, value, false); } 1094remove { RemoveHandler(Stylus.StylusEnterEvent, value); } 1105public static readonly RoutedEvent StylusLeaveEvent = Stylus.StylusLeaveEvent.AddOwner(_typeofThis); 1112add { AddHandler(Stylus.StylusLeaveEvent, value, false); } 1113remove { RemoveHandler(Stylus.StylusLeaveEvent, value); } 1124public static readonly RoutedEvent PreviewStylusInRangeEvent = Stylus.PreviewStylusInRangeEvent.AddOwner(_typeofThis); 1131add { AddHandler(Stylus.PreviewStylusInRangeEvent, value, false); } 1132remove { RemoveHandler(Stylus.PreviewStylusInRangeEvent, value); } 1143public static readonly RoutedEvent StylusInRangeEvent = Stylus.StylusInRangeEvent.AddOwner(_typeofThis); 1150add { AddHandler(Stylus.StylusInRangeEvent, value, false); } 1151remove { RemoveHandler(Stylus.StylusInRangeEvent, value); } 1162public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = Stylus.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis); 1169add { AddHandler(Stylus.PreviewStylusOutOfRangeEvent, value, false); } 1170remove { RemoveHandler(Stylus.PreviewStylusOutOfRangeEvent, value); } 1181public static readonly RoutedEvent StylusOutOfRangeEvent = Stylus.StylusOutOfRangeEvent.AddOwner(_typeofThis); 1188add { AddHandler(Stylus.StylusOutOfRangeEvent, value, false); } 1189remove { RemoveHandler(Stylus.StylusOutOfRangeEvent, value); } 1200public static readonly RoutedEvent PreviewStylusSystemGestureEvent = Stylus.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis); 1207add { AddHandler(Stylus.PreviewStylusSystemGestureEvent, value, false); } 1208remove { RemoveHandler(Stylus.PreviewStylusSystemGestureEvent, value); } 1219public static readonly RoutedEvent StylusSystemGestureEvent = Stylus.StylusSystemGestureEvent.AddOwner(_typeofThis); 1226add { AddHandler(Stylus.StylusSystemGestureEvent, value, false); } 1227remove { RemoveHandler(Stylus.StylusSystemGestureEvent, value); } 1238public static readonly RoutedEvent GotStylusCaptureEvent = Stylus.GotStylusCaptureEvent.AddOwner(_typeofThis); 1245add { AddHandler(Stylus.GotStylusCaptureEvent, value, false); } 1246remove { RemoveHandler(Stylus.GotStylusCaptureEvent, value); } 1257public static readonly RoutedEvent LostStylusCaptureEvent = Stylus.LostStylusCaptureEvent.AddOwner(_typeofThis); 1264add { AddHandler(Stylus.LostStylusCaptureEvent, value, false); } 1265remove { RemoveHandler(Stylus.LostStylusCaptureEvent, value); } 1276public static readonly RoutedEvent StylusButtonDownEvent = Stylus.StylusButtonDownEvent.AddOwner(_typeofThis); 1283add { AddHandler(Stylus.StylusButtonDownEvent, value, false); } 1284remove { RemoveHandler(Stylus.StylusButtonDownEvent, value); } 1295public static readonly RoutedEvent StylusButtonUpEvent = Stylus.StylusButtonUpEvent.AddOwner(_typeofThis); 1302add { AddHandler(Stylus.StylusButtonUpEvent, value, false); } 1303remove { RemoveHandler(Stylus.StylusButtonUpEvent, value); } 1314public static readonly RoutedEvent PreviewStylusButtonDownEvent = Stylus.PreviewStylusButtonDownEvent.AddOwner(_typeofThis); 1321add { AddHandler(Stylus.PreviewStylusButtonDownEvent, value, false); } 1322remove { RemoveHandler(Stylus.PreviewStylusButtonDownEvent, value); } 1333public static readonly RoutedEvent PreviewStylusButtonUpEvent = Stylus.PreviewStylusButtonUpEvent.AddOwner(_typeofThis); 1340add { AddHandler(Stylus.PreviewStylusButtonUpEvent, value, false); } 1341remove { 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)
597if (routedEvent == Stylus.PreviewStylusDownEvent) 598return Stylus.StylusDownEvent; 599if (routedEvent == Stylus.PreviewStylusUpEvent) 600return Stylus.StylusUpEvent; 601if (routedEvent == Stylus.PreviewStylusMoveEvent) 602return Stylus.StylusMoveEvent; 603if (routedEvent == Stylus.PreviewStylusInAirMoveEvent) 604return Stylus.StylusInAirMoveEvent; 605if (routedEvent == Stylus.PreviewStylusInRangeEvent) 606return Stylus.StylusInRangeEvent; 607if (routedEvent == Stylus.PreviewStylusOutOfRangeEvent) 608return Stylus.StylusOutOfRangeEvent; 609if (routedEvent == Stylus.PreviewStylusSystemGestureEvent) 610return Stylus.StylusSystemGestureEvent; 611if (routedEvent == Stylus.PreviewStylusButtonDownEvent) 612return Stylus.StylusButtonDownEvent; 613if (routedEvent == Stylus.PreviewStylusButtonUpEvent) 614return Stylus.StylusButtonUpEvent; 626previewEvent = Stylus.PreviewStylusDownEvent; 631previewEvent = Stylus.PreviewStylusUpEvent; 636previewEvent = Stylus.PreviewStylusMoveEvent; 641previewEvent = Stylus.PreviewStylusInAirMoveEvent; 646previewEvent = Stylus.PreviewStylusInRangeEvent; 651previewEvent = Stylus.PreviewStylusOutOfRangeEvent; 656previewEvent = Stylus.PreviewStylusSystemGestureEvent;
System\Windows\Input\Stylus\Common\Tablet.cs (1)
22StylusDevice stylus = Stylus.CurrentStylusDevice;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (18)
808Stylus.Capture(null); 969(routedEvent == Stylus.StylusMoveEvent || 970routedEvent == Stylus.StylusDownEvent || 971routedEvent == Stylus.StylusUpEvent)); 991if (routedEvent != Stylus.PreviewStylusSystemGestureEvent) 993if (routedEvent == Stylus.PreviewStylusDownEvent) 1033if (eventMain == Stylus.StylusDownEvent || 1034eventMain == Stylus.PreviewStylusDownEvent) 1039else if (eventMain == Stylus.StylusButtonDownEvent || 1040eventMain == Stylus.StylusButtonUpEvent) 1045else if (eventMain != Stylus.StylusSystemGestureEvent) 1072stylusEventArgs.RoutedEvent == Stylus.PreviewStylusUpEvent && 1103if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent && 1126if (stylusEventArgs.RoutedEvent == Stylus.StylusMoveEvent) 1130else if (stylusEventArgs.RoutedEvent == Stylus.StylusDownEvent) 1134else if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent) 1263if (args.StagingItem.Input.RoutedEvent == Stylus.PreviewStylusDownEvent) 1300else if (args.StagingItem.Input.RoutedEvent == Stylus.PreviewStylusSystemGestureEvent)
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1048lostCapture.RoutedEvent = Stylus.LostStylusCaptureEvent; 1055gotCapture.RoutedEvent = 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)
1047if (e.StagingItem.Input.RoutedEvent == Stylus.PreviewStylusDownEvent) 1250if (e.StagingItem.Input.RoutedEvent == Stylus.StylusOutOfRangeEvent) 1312if (e.StagingItem.Input.RoutedEvent == Stylus.StylusMoveEvent) 1324if (e.StagingItem.Input.RoutedEvent == Stylus.StylusSystemGestureEvent) 1346if (e.StagingItem.Input.RoutedEvent == Stylus.StylusOutOfRangeEvent) 1368if (routedEvent != Stylus.PreviewStylusSystemGestureEvent) 1370if (routedEvent == Stylus.PreviewStylusDownEvent) 1408if (eventMain == Stylus.StylusDownEvent || 1409eventMain == Stylus.PreviewStylusDownEvent) 1414else if (eventMain == Stylus.StylusButtonDownEvent || 1415eventMain == Stylus.StylusButtonUpEvent) 1420else if (eventMain != Stylus.StylusSystemGestureEvent) 1446if (stylusEventArgs?.RoutedEvent == Stylus.PreviewStylusUpEvent && 1474if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent && 1488else if (e.StagingItem.Input.RoutedEvent == Stylus.StylusSystemGestureEvent) 1518(routedEvent == Stylus.StylusMoveEvent || 1519routedEvent == Stylus.StylusDownEvent || 1520routedEvent == Stylus.StylusUpEvent)); 1536if (stylusEventArgs.RoutedEvent == Stylus.StylusMoveEvent) 1540else if (stylusEventArgs.RoutedEvent == Stylus.StylusDownEvent) 1544else if (stylusEventArgs.RoutedEvent == Stylus.StylusUpEvent) 1586storedStagingItems[stagingItemCount - 1].Input.RoutedEvent == Stylus.StylusMoveEvent) 2450Stylus.Capture(null); 2866if (routedEvent != null && (routedEvent == Stylus.StylusDownEvent 2867|| routedEvent == Stylus.StylusUpEvent 2868|| routedEvent == Stylus.StylusMoveEvent 2869|| routedEvent == Stylus.StylusInAirMoveEvent)) 2897args.RoutedEvent = Stylus.PreviewStylusButtonDownEvent; 2901args.RoutedEvent = Stylus.PreviewStylusButtonUpEvent;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (7)
629lostCapture.RoutedEvent = Stylus.LostStylusCaptureEvent; 636gotCapture.RoutedEvent = Stylus.GotStylusCaptureEvent; 1735if (stylusEvent == Stylus.StylusSystemGestureEvent) 1774else if (stylusEvent == Stylus.StylusInAirMoveEvent) 1778else if (stylusEvent == Stylus.StylusDownEvent) 1789else if (stylusEvent == Stylus.StylusMoveEvent) 1796else 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); 40stylusEventArgs.RoutedEvent = oldValue ? Stylus.StylusLeaveEvent : Stylus.StylusEnterEvent;
System\Windows\UIElement.cs (5)
2524return (Stylus.DirectlyOver == this); 2540return Stylus.Capture(this); 2548Stylus.Capture(null); 4361if (IsDefaultValue(this, Stylus.IsFlicksEnabledProperty)) 4363SetCurrentValueInternal(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; 967_inkCanvas.AddHandler(Stylus.StylusMoveEvent, new StylusEventHandler(OnInkCanvasDeviceMove<StylusEventArgs>)); 1020_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)
96EventManager.RegisterClassHandler(owner, Stylus.PreviewStylusDownEvent, new StylusDownEventHandler(_OnPreviewDeviceDown<StylusDownEventArgs>));
System\Windows\FrameworkContentElement.cs (4)
91Stylus.IsPressAndHoldEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 92Stylus.IsFlicksEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 93Stylus.IsTapFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 94Stylus.IsTouchFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
System\Windows\FrameworkElement.cs (4)
2385Stylus.IsPressAndHoldEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2386Stylus.IsFlicksEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2387Stylus.IsTapFeedbackEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits)); 2388Stylus.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)
9685typeof(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)
697routedEvent == Stylus.PreviewStylusDownEvent)