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