393 references to Stylus
PresentationCore (369)
System\Windows\ContentElement.cs (3)
404
return (
Stylus
.DirectlyOver == this);
420
return
Stylus
.Capture(this);
428
Stylus
.Capture(null);
System\Windows\Generated\ContentElement.cs (66)
1203
public static readonly RoutedEvent PreviewStylusDownEvent =
Stylus
.PreviewStylusDownEvent.AddOwner(_typeofThis);
1210
add { AddHandler(
Stylus
.PreviewStylusDownEvent, value, false); }
1211
remove { RemoveHandler(
Stylus
.PreviewStylusDownEvent, value); }
1222
public static readonly RoutedEvent StylusDownEvent =
Stylus
.StylusDownEvent.AddOwner(_typeofThis);
1229
add { AddHandler(
Stylus
.StylusDownEvent, value, false); }
1230
remove { RemoveHandler(
Stylus
.StylusDownEvent, value); }
1241
public static readonly RoutedEvent PreviewStylusUpEvent =
Stylus
.PreviewStylusUpEvent.AddOwner(_typeofThis);
1248
add { AddHandler(
Stylus
.PreviewStylusUpEvent, value, false); }
1249
remove { RemoveHandler(
Stylus
.PreviewStylusUpEvent, value); }
1260
public static readonly RoutedEvent StylusUpEvent =
Stylus
.StylusUpEvent.AddOwner(_typeofThis);
1267
add { AddHandler(
Stylus
.StylusUpEvent, value, false); }
1268
remove { RemoveHandler(
Stylus
.StylusUpEvent, value); }
1279
public static readonly RoutedEvent PreviewStylusMoveEvent =
Stylus
.PreviewStylusMoveEvent.AddOwner(_typeofThis);
1286
add { AddHandler(
Stylus
.PreviewStylusMoveEvent, value, false); }
1287
remove { RemoveHandler(
Stylus
.PreviewStylusMoveEvent, value); }
1298
public static readonly RoutedEvent StylusMoveEvent =
Stylus
.StylusMoveEvent.AddOwner(_typeofThis);
1305
add { AddHandler(
Stylus
.StylusMoveEvent, value, false); }
1306
remove { RemoveHandler(
Stylus
.StylusMoveEvent, value); }
1317
public static readonly RoutedEvent PreviewStylusInAirMoveEvent =
Stylus
.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis);
1324
add { AddHandler(
Stylus
.PreviewStylusInAirMoveEvent, value, false); }
1325
remove { RemoveHandler(
Stylus
.PreviewStylusInAirMoveEvent, value); }
1336
public static readonly RoutedEvent StylusInAirMoveEvent =
Stylus
.StylusInAirMoveEvent.AddOwner(_typeofThis);
1343
add { AddHandler(
Stylus
.StylusInAirMoveEvent, value, false); }
1344
remove { RemoveHandler(
Stylus
.StylusInAirMoveEvent, value); }
1355
public static readonly RoutedEvent StylusEnterEvent =
Stylus
.StylusEnterEvent.AddOwner(_typeofThis);
1362
add { AddHandler(
Stylus
.StylusEnterEvent, value, false); }
1363
remove { RemoveHandler(
Stylus
.StylusEnterEvent, value); }
1374
public static readonly RoutedEvent StylusLeaveEvent =
Stylus
.StylusLeaveEvent.AddOwner(_typeofThis);
1381
add { AddHandler(
Stylus
.StylusLeaveEvent, value, false); }
1382
remove { RemoveHandler(
Stylus
.StylusLeaveEvent, value); }
1393
public static readonly RoutedEvent PreviewStylusInRangeEvent =
Stylus
.PreviewStylusInRangeEvent.AddOwner(_typeofThis);
1400
add { AddHandler(
Stylus
.PreviewStylusInRangeEvent, value, false); }
1401
remove { RemoveHandler(
Stylus
.PreviewStylusInRangeEvent, value); }
1412
public static readonly RoutedEvent StylusInRangeEvent =
Stylus
.StylusInRangeEvent.AddOwner(_typeofThis);
1419
add { AddHandler(
Stylus
.StylusInRangeEvent, value, false); }
1420
remove { RemoveHandler(
Stylus
.StylusInRangeEvent, value); }
1431
public static readonly RoutedEvent PreviewStylusOutOfRangeEvent =
Stylus
.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis);
1438
add { AddHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value, false); }
1439
remove { RemoveHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value); }
1450
public static readonly RoutedEvent StylusOutOfRangeEvent =
Stylus
.StylusOutOfRangeEvent.AddOwner(_typeofThis);
1457
add { AddHandler(
Stylus
.StylusOutOfRangeEvent, value, false); }
1458
remove { RemoveHandler(
Stylus
.StylusOutOfRangeEvent, value); }
1469
public static readonly RoutedEvent PreviewStylusSystemGestureEvent =
Stylus
.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis);
1476
add { AddHandler(
Stylus
.PreviewStylusSystemGestureEvent, value, false); }
1477
remove { RemoveHandler(
Stylus
.PreviewStylusSystemGestureEvent, value); }
1488
public static readonly RoutedEvent StylusSystemGestureEvent =
Stylus
.StylusSystemGestureEvent.AddOwner(_typeofThis);
1495
add { AddHandler(
Stylus
.StylusSystemGestureEvent, value, false); }
1496
remove { RemoveHandler(
Stylus
.StylusSystemGestureEvent, value); }
1507
public static readonly RoutedEvent GotStylusCaptureEvent =
Stylus
.GotStylusCaptureEvent.AddOwner(_typeofThis);
1514
add { AddHandler(
Stylus
.GotStylusCaptureEvent, value, false); }
1515
remove { RemoveHandler(
Stylus
.GotStylusCaptureEvent, value); }
1526
public static readonly RoutedEvent LostStylusCaptureEvent =
Stylus
.LostStylusCaptureEvent.AddOwner(_typeofThis);
1533
add { AddHandler(
Stylus
.LostStylusCaptureEvent, value, false); }
1534
remove { RemoveHandler(
Stylus
.LostStylusCaptureEvent, value); }
1545
public static readonly RoutedEvent StylusButtonDownEvent =
Stylus
.StylusButtonDownEvent.AddOwner(_typeofThis);
1552
add { AddHandler(
Stylus
.StylusButtonDownEvent, value, false); }
1553
remove { RemoveHandler(
Stylus
.StylusButtonDownEvent, value); }
1564
public static readonly RoutedEvent StylusButtonUpEvent =
Stylus
.StylusButtonUpEvent.AddOwner(_typeofThis);
1571
add { AddHandler(
Stylus
.StylusButtonUpEvent, value, false); }
1572
remove { RemoveHandler(
Stylus
.StylusButtonUpEvent, value); }
1583
public static readonly RoutedEvent PreviewStylusButtonDownEvent =
Stylus
.PreviewStylusButtonDownEvent.AddOwner(_typeofThis);
1590
add { AddHandler(
Stylus
.PreviewStylusButtonDownEvent, value, false); }
1591
remove { RemoveHandler(
Stylus
.PreviewStylusButtonDownEvent, value); }
1602
public static readonly RoutedEvent PreviewStylusButtonUpEvent =
Stylus
.PreviewStylusButtonUpEvent.AddOwner(_typeofThis);
1609
add { AddHandler(
Stylus
.PreviewStylusButtonUpEvent, value, false); }
1610
remove { RemoveHandler(
Stylus
.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement.cs (88)
745
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusDownEvent, new StylusDownEventHandler(UIElement.OnPreviewStylusDownThunk), false);
746
EventManager.RegisterClassHandler(type,
Stylus
.StylusDownEvent, new StylusDownEventHandler(UIElement.OnStylusDownThunk), false);
747
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusUpEvent, new StylusEventHandler(UIElement.OnPreviewStylusUpThunk), false);
748
EventManager.RegisterClassHandler(type,
Stylus
.StylusUpEvent, new StylusEventHandler(UIElement.OnStylusUpThunk), false);
749
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusMoveThunk), false);
750
EventManager.RegisterClassHandler(type,
Stylus
.StylusMoveEvent, new StylusEventHandler(UIElement.OnStylusMoveThunk), false);
751
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusInAirMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusInAirMoveThunk), false);
752
EventManager.RegisterClassHandler(type,
Stylus
.StylusInAirMoveEvent, new StylusEventHandler(UIElement.OnStylusInAirMoveThunk), false);
753
EventManager.RegisterClassHandler(type,
Stylus
.StylusEnterEvent, new StylusEventHandler(UIElement.OnStylusEnterThunk), false);
754
EventManager.RegisterClassHandler(type,
Stylus
.StylusLeaveEvent, new StylusEventHandler(UIElement.OnStylusLeaveThunk), false);
755
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusInRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusInRangeThunk), false);
756
EventManager.RegisterClassHandler(type,
Stylus
.StylusInRangeEvent, new StylusEventHandler(UIElement.OnStylusInRangeThunk), false);
757
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusOutOfRangeThunk), false);
758
EventManager.RegisterClassHandler(type,
Stylus
.StylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnStylusOutOfRangeThunk), false);
759
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnPreviewStylusSystemGestureThunk), false);
760
EventManager.RegisterClassHandler(type,
Stylus
.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnStylusSystemGestureThunk), false);
761
EventManager.RegisterClassHandler(type,
Stylus
.GotStylusCaptureEvent, new StylusEventHandler(UIElement.OnGotStylusCaptureThunk), false);
762
EventManager.RegisterClassHandler(type,
Stylus
.LostStylusCaptureEvent, new StylusEventHandler(UIElement.OnLostStylusCaptureThunk), false);
763
EventManager.RegisterClassHandler(type,
Stylus
.StylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonDownThunk), false);
764
EventManager.RegisterClassHandler(type,
Stylus
.StylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonUpThunk), false);
765
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonDownThunk), false);
766
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonUpThunk), false);
3156
public static readonly RoutedEvent PreviewStylusDownEvent =
Stylus
.PreviewStylusDownEvent.AddOwner(_typeofThis);
3163
add { AddHandler(
Stylus
.PreviewStylusDownEvent, value, false); }
3164
remove { RemoveHandler(
Stylus
.PreviewStylusDownEvent, value); }
3175
public static readonly RoutedEvent StylusDownEvent =
Stylus
.StylusDownEvent.AddOwner(_typeofThis);
3182
add { AddHandler(
Stylus
.StylusDownEvent, value, false); }
3183
remove { RemoveHandler(
Stylus
.StylusDownEvent, value); }
3194
public static readonly RoutedEvent PreviewStylusUpEvent =
Stylus
.PreviewStylusUpEvent.AddOwner(_typeofThis);
3201
add { AddHandler(
Stylus
.PreviewStylusUpEvent, value, false); }
3202
remove { RemoveHandler(
Stylus
.PreviewStylusUpEvent, value); }
3213
public static readonly RoutedEvent StylusUpEvent =
Stylus
.StylusUpEvent.AddOwner(_typeofThis);
3220
add { AddHandler(
Stylus
.StylusUpEvent, value, false); }
3221
remove { RemoveHandler(
Stylus
.StylusUpEvent, value); }
3232
public static readonly RoutedEvent PreviewStylusMoveEvent =
Stylus
.PreviewStylusMoveEvent.AddOwner(_typeofThis);
3239
add { AddHandler(
Stylus
.PreviewStylusMoveEvent, value, false); }
3240
remove { RemoveHandler(
Stylus
.PreviewStylusMoveEvent, value); }
3251
public static readonly RoutedEvent StylusMoveEvent =
Stylus
.StylusMoveEvent.AddOwner(_typeofThis);
3258
add { AddHandler(
Stylus
.StylusMoveEvent, value, false); }
3259
remove { RemoveHandler(
Stylus
.StylusMoveEvent, value); }
3270
public static readonly RoutedEvent PreviewStylusInAirMoveEvent =
Stylus
.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis);
3277
add { AddHandler(
Stylus
.PreviewStylusInAirMoveEvent, value, false); }
3278
remove { RemoveHandler(
Stylus
.PreviewStylusInAirMoveEvent, value); }
3289
public static readonly RoutedEvent StylusInAirMoveEvent =
Stylus
.StylusInAirMoveEvent.AddOwner(_typeofThis);
3296
add { AddHandler(
Stylus
.StylusInAirMoveEvent, value, false); }
3297
remove { RemoveHandler(
Stylus
.StylusInAirMoveEvent, value); }
3308
public static readonly RoutedEvent StylusEnterEvent =
Stylus
.StylusEnterEvent.AddOwner(_typeofThis);
3315
add { AddHandler(
Stylus
.StylusEnterEvent, value, false); }
3316
remove { RemoveHandler(
Stylus
.StylusEnterEvent, value); }
3327
public static readonly RoutedEvent StylusLeaveEvent =
Stylus
.StylusLeaveEvent.AddOwner(_typeofThis);
3334
add { AddHandler(
Stylus
.StylusLeaveEvent, value, false); }
3335
remove { RemoveHandler(
Stylus
.StylusLeaveEvent, value); }
3346
public static readonly RoutedEvent PreviewStylusInRangeEvent =
Stylus
.PreviewStylusInRangeEvent.AddOwner(_typeofThis);
3353
add { AddHandler(
Stylus
.PreviewStylusInRangeEvent, value, false); }
3354
remove { RemoveHandler(
Stylus
.PreviewStylusInRangeEvent, value); }
3365
public static readonly RoutedEvent StylusInRangeEvent =
Stylus
.StylusInRangeEvent.AddOwner(_typeofThis);
3372
add { AddHandler(
Stylus
.StylusInRangeEvent, value, false); }
3373
remove { RemoveHandler(
Stylus
.StylusInRangeEvent, value); }
3384
public static readonly RoutedEvent PreviewStylusOutOfRangeEvent =
Stylus
.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis);
3391
add { AddHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value, false); }
3392
remove { RemoveHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value); }
3403
public static readonly RoutedEvent StylusOutOfRangeEvent =
Stylus
.StylusOutOfRangeEvent.AddOwner(_typeofThis);
3410
add { AddHandler(
Stylus
.StylusOutOfRangeEvent, value, false); }
3411
remove { RemoveHandler(
Stylus
.StylusOutOfRangeEvent, value); }
3422
public static readonly RoutedEvent PreviewStylusSystemGestureEvent =
Stylus
.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis);
3429
add { AddHandler(
Stylus
.PreviewStylusSystemGestureEvent, value, false); }
3430
remove { RemoveHandler(
Stylus
.PreviewStylusSystemGestureEvent, value); }
3441
public static readonly RoutedEvent StylusSystemGestureEvent =
Stylus
.StylusSystemGestureEvent.AddOwner(_typeofThis);
3448
add { AddHandler(
Stylus
.StylusSystemGestureEvent, value, false); }
3449
remove { RemoveHandler(
Stylus
.StylusSystemGestureEvent, value); }
3460
public static readonly RoutedEvent GotStylusCaptureEvent =
Stylus
.GotStylusCaptureEvent.AddOwner(_typeofThis);
3467
add { AddHandler(
Stylus
.GotStylusCaptureEvent, value, false); }
3468
remove { RemoveHandler(
Stylus
.GotStylusCaptureEvent, value); }
3479
public static readonly RoutedEvent LostStylusCaptureEvent =
Stylus
.LostStylusCaptureEvent.AddOwner(_typeofThis);
3486
add { AddHandler(
Stylus
.LostStylusCaptureEvent, value, false); }
3487
remove { RemoveHandler(
Stylus
.LostStylusCaptureEvent, value); }
3498
public static readonly RoutedEvent StylusButtonDownEvent =
Stylus
.StylusButtonDownEvent.AddOwner(_typeofThis);
3505
add { AddHandler(
Stylus
.StylusButtonDownEvent, value, false); }
3506
remove { RemoveHandler(
Stylus
.StylusButtonDownEvent, value); }
3517
public static readonly RoutedEvent StylusButtonUpEvent =
Stylus
.StylusButtonUpEvent.AddOwner(_typeofThis);
3524
add { AddHandler(
Stylus
.StylusButtonUpEvent, value, false); }
3525
remove { RemoveHandler(
Stylus
.StylusButtonUpEvent, value); }
3536
public static readonly RoutedEvent PreviewStylusButtonDownEvent =
Stylus
.PreviewStylusButtonDownEvent.AddOwner(_typeofThis);
3543
add { AddHandler(
Stylus
.PreviewStylusButtonDownEvent, value, false); }
3544
remove { RemoveHandler(
Stylus
.PreviewStylusButtonDownEvent, value); }
3555
public static readonly RoutedEvent PreviewStylusButtonUpEvent =
Stylus
.PreviewStylusButtonUpEvent.AddOwner(_typeofThis);
3562
add { AddHandler(
Stylus
.PreviewStylusButtonUpEvent, value, false); }
3563
remove { RemoveHandler(
Stylus
.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement3D.cs (66)
933
public static readonly RoutedEvent PreviewStylusDownEvent =
Stylus
.PreviewStylusDownEvent.AddOwner(_typeofThis);
940
add { AddHandler(
Stylus
.PreviewStylusDownEvent, value, false); }
941
remove { RemoveHandler(
Stylus
.PreviewStylusDownEvent, value); }
952
public static readonly RoutedEvent StylusDownEvent =
Stylus
.StylusDownEvent.AddOwner(_typeofThis);
959
add { AddHandler(
Stylus
.StylusDownEvent, value, false); }
960
remove { RemoveHandler(
Stylus
.StylusDownEvent, value); }
971
public static readonly RoutedEvent PreviewStylusUpEvent =
Stylus
.PreviewStylusUpEvent.AddOwner(_typeofThis);
978
add { AddHandler(
Stylus
.PreviewStylusUpEvent, value, false); }
979
remove { RemoveHandler(
Stylus
.PreviewStylusUpEvent, value); }
990
public static readonly RoutedEvent StylusUpEvent =
Stylus
.StylusUpEvent.AddOwner(_typeofThis);
997
add { AddHandler(
Stylus
.StylusUpEvent, value, false); }
998
remove { RemoveHandler(
Stylus
.StylusUpEvent, value); }
1009
public static readonly RoutedEvent PreviewStylusMoveEvent =
Stylus
.PreviewStylusMoveEvent.AddOwner(_typeofThis);
1016
add { AddHandler(
Stylus
.PreviewStylusMoveEvent, value, false); }
1017
remove { RemoveHandler(
Stylus
.PreviewStylusMoveEvent, value); }
1028
public static readonly RoutedEvent StylusMoveEvent =
Stylus
.StylusMoveEvent.AddOwner(_typeofThis);
1035
add { AddHandler(
Stylus
.StylusMoveEvent, value, false); }
1036
remove { RemoveHandler(
Stylus
.StylusMoveEvent, value); }
1047
public static readonly RoutedEvent PreviewStylusInAirMoveEvent =
Stylus
.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis);
1054
add { AddHandler(
Stylus
.PreviewStylusInAirMoveEvent, value, false); }
1055
remove { RemoveHandler(
Stylus
.PreviewStylusInAirMoveEvent, value); }
1066
public static readonly RoutedEvent StylusInAirMoveEvent =
Stylus
.StylusInAirMoveEvent.AddOwner(_typeofThis);
1073
add { AddHandler(
Stylus
.StylusInAirMoveEvent, value, false); }
1074
remove { RemoveHandler(
Stylus
.StylusInAirMoveEvent, value); }
1085
public static readonly RoutedEvent StylusEnterEvent =
Stylus
.StylusEnterEvent.AddOwner(_typeofThis);
1092
add { AddHandler(
Stylus
.StylusEnterEvent, value, false); }
1093
remove { RemoveHandler(
Stylus
.StylusEnterEvent, value); }
1104
public static readonly RoutedEvent StylusLeaveEvent =
Stylus
.StylusLeaveEvent.AddOwner(_typeofThis);
1111
add { AddHandler(
Stylus
.StylusLeaveEvent, value, false); }
1112
remove { RemoveHandler(
Stylus
.StylusLeaveEvent, value); }
1123
public static readonly RoutedEvent PreviewStylusInRangeEvent =
Stylus
.PreviewStylusInRangeEvent.AddOwner(_typeofThis);
1130
add { AddHandler(
Stylus
.PreviewStylusInRangeEvent, value, false); }
1131
remove { RemoveHandler(
Stylus
.PreviewStylusInRangeEvent, value); }
1142
public static readonly RoutedEvent StylusInRangeEvent =
Stylus
.StylusInRangeEvent.AddOwner(_typeofThis);
1149
add { AddHandler(
Stylus
.StylusInRangeEvent, value, false); }
1150
remove { RemoveHandler(
Stylus
.StylusInRangeEvent, value); }
1161
public static readonly RoutedEvent PreviewStylusOutOfRangeEvent =
Stylus
.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis);
1168
add { AddHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value, false); }
1169
remove { RemoveHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value); }
1180
public static readonly RoutedEvent StylusOutOfRangeEvent =
Stylus
.StylusOutOfRangeEvent.AddOwner(_typeofThis);
1187
add { AddHandler(
Stylus
.StylusOutOfRangeEvent, value, false); }
1188
remove { RemoveHandler(
Stylus
.StylusOutOfRangeEvent, value); }
1199
public static readonly RoutedEvent PreviewStylusSystemGestureEvent =
Stylus
.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis);
1206
add { AddHandler(
Stylus
.PreviewStylusSystemGestureEvent, value, false); }
1207
remove { RemoveHandler(
Stylus
.PreviewStylusSystemGestureEvent, value); }
1218
public static readonly RoutedEvent StylusSystemGestureEvent =
Stylus
.StylusSystemGestureEvent.AddOwner(_typeofThis);
1225
add { AddHandler(
Stylus
.StylusSystemGestureEvent, value, false); }
1226
remove { RemoveHandler(
Stylus
.StylusSystemGestureEvent, value); }
1237
public static readonly RoutedEvent GotStylusCaptureEvent =
Stylus
.GotStylusCaptureEvent.AddOwner(_typeofThis);
1244
add { AddHandler(
Stylus
.GotStylusCaptureEvent, value, false); }
1245
remove { RemoveHandler(
Stylus
.GotStylusCaptureEvent, value); }
1256
public static readonly RoutedEvent LostStylusCaptureEvent =
Stylus
.LostStylusCaptureEvent.AddOwner(_typeofThis);
1263
add { AddHandler(
Stylus
.LostStylusCaptureEvent, value, false); }
1264
remove { RemoveHandler(
Stylus
.LostStylusCaptureEvent, value); }
1275
public static readonly RoutedEvent StylusButtonDownEvent =
Stylus
.StylusButtonDownEvent.AddOwner(_typeofThis);
1282
add { AddHandler(
Stylus
.StylusButtonDownEvent, value, false); }
1283
remove { RemoveHandler(
Stylus
.StylusButtonDownEvent, value); }
1294
public static readonly RoutedEvent StylusButtonUpEvent =
Stylus
.StylusButtonUpEvent.AddOwner(_typeofThis);
1301
add { AddHandler(
Stylus
.StylusButtonUpEvent, value, false); }
1302
remove { RemoveHandler(
Stylus
.StylusButtonUpEvent, value); }
1313
public static readonly RoutedEvent PreviewStylusButtonDownEvent =
Stylus
.PreviewStylusButtonDownEvent.AddOwner(_typeofThis);
1320
add { AddHandler(
Stylus
.PreviewStylusButtonDownEvent, value, false); }
1321
remove { RemoveHandler(
Stylus
.PreviewStylusButtonDownEvent, value); }
1332
public static readonly RoutedEvent PreviewStylusButtonUpEvent =
Stylus
.PreviewStylusButtonUpEvent.AddOwner(_typeofThis);
1339
add { AddHandler(
Stylus
.PreviewStylusButtonUpEvent, value, false); }
1340
remove { RemoveHandler(
Stylus
.PreviewStylusButtonUpEvent, value); }
System\Windows\Input\Stylus\Common\Stylus.cs (44)
17
public static readonly RoutedEvent PreviewStylusDownEvent = EventManager.RegisterRoutedEvent("PreviewStylusDown", RoutingStrategy.Tunnel, typeof(StylusDownEventHandler), typeof(
Stylus
));
42
public static readonly RoutedEvent StylusDownEvent = EventManager.RegisterRoutedEvent("StylusDown", RoutingStrategy.Bubble, typeof(StylusDownEventHandler), typeof(
Stylus
));
67
public static readonly RoutedEvent PreviewStylusUpEvent = EventManager.RegisterRoutedEvent("PreviewStylusUp", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(
Stylus
));
92
public static readonly RoutedEvent StylusUpEvent = EventManager.RegisterRoutedEvent("StylusUp", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
117
public static readonly RoutedEvent PreviewStylusMoveEvent = EventManager.RegisterRoutedEvent("PreviewStylusMove", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(
Stylus
));
142
public static readonly RoutedEvent StylusMoveEvent = EventManager.RegisterRoutedEvent("StylusMove", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
167
public static readonly RoutedEvent PreviewStylusInAirMoveEvent = EventManager.RegisterRoutedEvent("PreviewStylusInAirMove", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(
Stylus
));
192
public static readonly RoutedEvent StylusInAirMoveEvent = EventManager.RegisterRoutedEvent("StylusInAirMove", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
217
public static readonly RoutedEvent StylusEnterEvent = EventManager.RegisterRoutedEvent("StylusEnter", RoutingStrategy.Direct, typeof(StylusEventHandler), typeof(
Stylus
));
242
public static readonly RoutedEvent StylusLeaveEvent = EventManager.RegisterRoutedEvent("StylusLeave", RoutingStrategy.Direct, typeof(StylusEventHandler), typeof(
Stylus
));
267
public static readonly RoutedEvent PreviewStylusInRangeEvent = EventManager.RegisterRoutedEvent("PreviewStylusInRange", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(
Stylus
));
292
public static readonly RoutedEvent StylusInRangeEvent = EventManager.RegisterRoutedEvent("StylusInRange", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
317
public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = EventManager.RegisterRoutedEvent("PreviewStylusOutOfRange", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(
Stylus
));
342
public static readonly RoutedEvent StylusOutOfRangeEvent = EventManager.RegisterRoutedEvent("StylusOutOfRange", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
367
public static readonly RoutedEvent PreviewStylusSystemGestureEvent = EventManager.RegisterRoutedEvent("PreviewStylusSystemGesture", RoutingStrategy.Tunnel, typeof(StylusSystemGestureEventHandler), typeof(
Stylus
));
392
public static readonly RoutedEvent StylusSystemGestureEvent = EventManager.RegisterRoutedEvent("StylusSystemGesture", RoutingStrategy.Bubble, typeof(StylusSystemGestureEventHandler), typeof(
Stylus
));
417
public static readonly RoutedEvent GotStylusCaptureEvent = EventManager.RegisterRoutedEvent("GotStylusCapture", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
442
public static readonly RoutedEvent LostStylusCaptureEvent = EventManager.RegisterRoutedEvent("LostStylusCapture", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
467
public static readonly RoutedEvent StylusButtonDownEvent = EventManager.RegisterRoutedEvent("StylusButtonDown", RoutingStrategy.Bubble, typeof(StylusButtonEventHandler), typeof(
Stylus
));
493
public static readonly RoutedEvent StylusButtonUpEvent = EventManager.RegisterRoutedEvent("StylusButtonUp", RoutingStrategy.Bubble, typeof(StylusButtonEventHandler), typeof(
Stylus
));
519
public static readonly RoutedEvent PreviewStylusButtonDownEvent = EventManager.RegisterRoutedEvent("PreviewStylusButtonDown", RoutingStrategy.Tunnel, typeof(StylusButtonEventHandler), typeof(
Stylus
));
545
public static readonly RoutedEvent PreviewStylusButtonUpEvent = EventManager.RegisterRoutedEvent("PreviewStylusButtonUp", RoutingStrategy.Tunnel, typeof(StylusButtonEventHandler), typeof(
Stylus
));
573
/// <seealso cref="
Stylus
.IsPressAndHoldEnabledProperty" />
591
/// <seealso cref="
Stylus
.IsPressAndHoldEnabledProperty" />
602
/// <seealso cref="
Stylus
.GetIsPressAndHoldEnabled" />
603
/// <seealso cref="
Stylus
.SetIsPressAndHoldEnabled" />
605
= DependencyProperty.RegisterAttached("IsPressAndHoldEnabled", typeof(bool), typeof(
Stylus
), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits)
613
/// <seealso cref="
Stylus
.IsFlicksEnabledProperty" />
631
/// <seealso cref="
Stylus
.IsFlicksEnabledProperty" />
642
/// <seealso cref="
Stylus
.GetIsFlicksEnabled" />
643
/// <seealso cref="
Stylus
.SetIsFlicksEnabled" />
645
= DependencyProperty.RegisterAttached("IsFlicksEnabled", typeof(bool), typeof(
Stylus
), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits)
653
/// <seealso cref="
Stylus
.IsTapFeedbackEnabledProperty" />
671
/// <seealso cref="
Stylus
.IsTapFeedbackEnabledProperty" />
682
/// <seealso cref="
Stylus
.GetIsTapFeedbackEnabled" />
683
/// <seealso cref="
Stylus
.SetIsTapFeedbackEnabled" />
685
= DependencyProperty.RegisterAttached("IsTapFeedbackEnabled", typeof(bool), typeof(
Stylus
), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits)
693
/// <seealso cref="
Stylus
.IsTouchFeedbackEnabledProperty" />
710
/// <seealso cref="
Stylus
.IsTouchFeedbackEnabledProperty" />
721
/// <seealso cref="
Stylus
.GetIsTouchFeedbackEnabled" />
722
/// <seealso cref="
Stylus
.SetIsTouchFeedbackEnabled" />
724
= DependencyProperty.RegisterAttached("IsTouchFeedbackEnabled", typeof(bool), typeof(
Stylus
), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits)
735
return
Stylus
.CurrentStylusDevice?.DirectlyOver;
747
return
Stylus
.CurrentStylusDevice?.Captured ?? Mouse.Captured;
System\Windows\Input\Stylus\Common\StylusLogic.cs (25)
590
if (routedEvent ==
Stylus
.PreviewStylusDownEvent)
591
return
Stylus
.StylusDownEvent;
592
if (routedEvent ==
Stylus
.PreviewStylusUpEvent)
593
return
Stylus
.StylusUpEvent;
594
if (routedEvent ==
Stylus
.PreviewStylusMoveEvent)
595
return
Stylus
.StylusMoveEvent;
596
if (routedEvent ==
Stylus
.PreviewStylusInAirMoveEvent)
597
return
Stylus
.StylusInAirMoveEvent;
598
if (routedEvent ==
Stylus
.PreviewStylusInRangeEvent)
599
return
Stylus
.StylusInRangeEvent;
600
if (routedEvent ==
Stylus
.PreviewStylusOutOfRangeEvent)
601
return
Stylus
.StylusOutOfRangeEvent;
602
if (routedEvent ==
Stylus
.PreviewStylusSystemGestureEvent)
603
return
Stylus
.StylusSystemGestureEvent;
604
if (routedEvent ==
Stylus
.PreviewStylusButtonDownEvent)
605
return
Stylus
.StylusButtonDownEvent;
606
if (routedEvent ==
Stylus
.PreviewStylusButtonUpEvent)
607
return
Stylus
.StylusButtonUpEvent;
619
previewEvent =
Stylus
.PreviewStylusDownEvent;
624
previewEvent =
Stylus
.PreviewStylusUpEvent;
629
previewEvent =
Stylus
.PreviewStylusMoveEvent;
634
previewEvent =
Stylus
.PreviewStylusInAirMoveEvent;
639
previewEvent =
Stylus
.PreviewStylusInRangeEvent;
644
previewEvent =
Stylus
.PreviewStylusOutOfRangeEvent;
649
previewEvent =
Stylus
.PreviewStylusSystemGestureEvent;
System\Windows\Input\Stylus\Common\Tablet.cs (1)
21
StylusDevice stylus =
Stylus
.CurrentStylusDevice;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (18)
809
Stylus
.Capture(null);
970
(routedEvent ==
Stylus
.StylusMoveEvent ||
971
routedEvent ==
Stylus
.StylusDownEvent ||
972
routedEvent ==
Stylus
.StylusUpEvent));
992
if (routedEvent !=
Stylus
.PreviewStylusSystemGestureEvent)
994
if (routedEvent ==
Stylus
.PreviewStylusDownEvent)
1034
if (eventMain ==
Stylus
.StylusDownEvent ||
1035
eventMain ==
Stylus
.PreviewStylusDownEvent)
1040
else if (eventMain ==
Stylus
.StylusButtonDownEvent ||
1041
eventMain ==
Stylus
.StylusButtonUpEvent)
1046
else if (eventMain !=
Stylus
.StylusSystemGestureEvent)
1073
stylusEventArgs.RoutedEvent ==
Stylus
.PreviewStylusUpEvent &&
1104
if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusUpEvent &&
1127
if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusMoveEvent)
1131
else if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusDownEvent)
1135
else if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusUpEvent)
1264
if (args.StagingItem.Input.RoutedEvent ==
Stylus
.PreviewStylusDownEvent)
1301
else if (args.StagingItem.Input.RoutedEvent ==
Stylus
.PreviewStylusSystemGestureEvent)
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1050
RoutedEvent =
Stylus
.LostStylusCaptureEvent,
1059
RoutedEvent =
Stylus
.GotStylusCaptureEvent,
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (2)
183
return
Stylus
.CurrentStylusDevice?.Target;
194
return
Stylus
.CurrentStylusDevice?.ActiveSource;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (29)
1055
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.PreviewStylusDownEvent)
1258
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusOutOfRangeEvent)
1322
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusMoveEvent)
1334
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusSystemGestureEvent)
1356
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusOutOfRangeEvent)
1378
if (routedEvent !=
Stylus
.PreviewStylusSystemGestureEvent)
1380
if (routedEvent ==
Stylus
.PreviewStylusDownEvent)
1418
if (eventMain ==
Stylus
.StylusDownEvent ||
1419
eventMain ==
Stylus
.PreviewStylusDownEvent)
1424
else if (eventMain ==
Stylus
.StylusButtonDownEvent ||
1425
eventMain ==
Stylus
.StylusButtonUpEvent)
1430
else if (eventMain !=
Stylus
.StylusSystemGestureEvent)
1456
if (stylusEventArgs?.RoutedEvent ==
Stylus
.PreviewStylusUpEvent &&
1484
if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusUpEvent &&
1498
else if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusSystemGestureEvent)
1528
(routedEvent ==
Stylus
.StylusMoveEvent ||
1529
routedEvent ==
Stylus
.StylusDownEvent ||
1530
routedEvent ==
Stylus
.StylusUpEvent));
1546
if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusMoveEvent)
1550
else if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusDownEvent)
1554
else if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusUpEvent)
1596
storedStagingItems[stagingItemCount - 1].Input.RoutedEvent ==
Stylus
.StylusMoveEvent)
2462
Stylus
.Capture(null);
2886
if (routedEvent != null && (routedEvent ==
Stylus
.StylusDownEvent
2887
|| routedEvent ==
Stylus
.StylusUpEvent
2888
|| routedEvent ==
Stylus
.StylusMoveEvent
2889
|| routedEvent ==
Stylus
.StylusInAirMoveEvent))
2919
args.RoutedEvent =
Stylus
.PreviewStylusButtonDownEvent;
2923
args.RoutedEvent =
Stylus
.PreviewStylusButtonUpEvent;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (7)
628
RoutedEvent =
Stylus
.LostStylusCaptureEvent,
637
RoutedEvent =
Stylus
.GotStylusCaptureEvent,
1739
if (stylusEvent ==
Stylus
.StylusSystemGestureEvent)
1778
else if (stylusEvent ==
Stylus
.StylusInAirMoveEvent)
1782
else if (stylusEvent ==
Stylus
.StylusDownEvent)
1793
else if (stylusEvent ==
Stylus
.StylusMoveEvent)
1800
else if (stylusEvent ==
Stylus
.StylusUpEvent)
System\Windows\Input\Stylus\Wisp\WispTabletDevice.cs (2)
130
StylusDevice stylusDevice =
Stylus
.CurrentStylusDevice;
149
StylusDevice stylusDevice =
Stylus
.CurrentStylusDevice;
System\Windows\InterOp\HwndStylusInputProvider.cs (4)
98
bool isPressAndHoldEnabled =
Stylus
.GetIsPressAndHoldEnabled(elementCur);
99
bool isFlicksEnabled =
Stylus
.GetIsFlicksEnabled(elementCur);
100
bool isTapFeedbackEnabled =
Stylus
.GetIsTapFeedbackEnabled(elementCur);
101
bool isTouchFeedbackEnabled =
Stylus
.GetIsTouchFeedbackEnabled(elementCur);
System\Windows\StylusOverProperty.cs (4)
33
if(
Stylus
.CurrentStylusDevice == null)
38
StylusEventArgs stylusEventArgs = new StylusEventArgs(
Stylus
.CurrentStylusDevice, Environment.TickCount)
40
RoutedEvent = oldValue ?
Stylus
.StylusLeaveEvent :
Stylus
.StylusEnterEvent
System\Windows\UIElement.cs (5)
2515
return (
Stylus
.DirectlyOver == this);
2531
return
Stylus
.Capture(this);
2539
Stylus
.Capture(null);
4345
if (IsDefaultValue(this,
Stylus
.IsFlicksEnabledProperty))
4347
SetCurrentValueInternal(
Stylus
.IsFlicksEnabledProperty, BooleanBoxes.FalseBox);
System\Windows\UIElement3D.cs (3)
494
return (
Stylus
.DirectlyOver == this);
510
return
Stylus
.Capture(this);
518
Stylus
.Capture(null);
PresentationFramework (23)
MS\Internal\Ink\EditingCoordinator.cs (6)
47
_inkCanvas.AddHandler(
Stylus
.StylusInRangeEvent, new StylusEventHandler(OnInkCanvasStylusInAirOrInRangeMove));
48
_inkCanvas.AddHandler(
Stylus
.StylusInAirMoveEvent, new StylusEventHandler(OnInkCanvasStylusInAirOrInRangeMove));
49
_inkCanvas.AddHandler(
Stylus
.StylusOutOfRangeEvent, new StylusEventHandler(OnInkCanvasStylusOutOfRange));
414
StylusDevice stylusDevice =
Stylus
.CurrentStylusDevice;
957
_inkCanvas.AddHandler(
Stylus
.StylusMoveEvent, new StylusEventHandler(OnInkCanvasDeviceMove<StylusEventArgs>));
1010
_inkCanvas.RemoveHandler(
Stylus
.StylusMoveEvent, new StylusEventHandler(OnInkCanvasDeviceMove<StylusEventArgs>));
System\Windows\Controls\InkCanvas.cs (5)
55
EventManager.RegisterClassHandler(ownerType,
Stylus
.StylusDownEvent,
61
EventManager.RegisterClassHandler(ownerType,
Stylus
.StylusUpEvent,
99
defaultStyle.Setters.Add(new Setter(
Stylus
.IsFlicksEnabledProperty, false));
101
defaultStyle.Setters.Add(new Setter(
Stylus
.IsTapFeedbackEnabledProperty, false));
103
defaultStyle.Setters.Add(new Setter(
Stylus
.IsTouchFeedbackEnabledProperty, false));
System\Windows\Controls\StickyNote.cs (1)
84
EventManager.RegisterClassHandler(owner,
Stylus
.PreviewStylusDownEvent, new StylusDownEventHandler(_OnPreviewDeviceDown<StylusDownEventArgs>));
System\Windows\FrameworkContentElement.cs (4)
81
Stylus
.IsPressAndHoldEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
82
Stylus
.IsFlicksEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
83
Stylus
.IsTapFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
84
Stylus
.IsTouchFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
System\Windows\FrameworkElement.cs (4)
2376
Stylus
.IsPressAndHoldEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
2377
Stylus
.IsFlicksEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
2378
Stylus
.IsTapFeedbackEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
2379
Stylus
.IsTouchFeedbackEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
714
case 621: t = () => typeof(
Stylus
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10742
typeof(System.Windows.Input.
Stylus
),
System\Windows\Markup\KnownTypes.cs (1)
6168
case KnownElements.Stylus: t = typeof(System.Windows.Input.
Stylus
); break;
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\KeyTipService.cs (1)
693
routedEvent ==
Stylus
.PreviewStylusDownEvent)