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