393 references to Stylus
PresentationCore (369)
System\Windows\ContentElement.cs (3)
405
return (
Stylus
.DirectlyOver == this);
421
return
Stylus
.Capture(this);
429
Stylus
.Capture(null);
System\Windows\Generated\ContentElement.cs (66)
1215
public static readonly RoutedEvent PreviewStylusDownEvent =
Stylus
.PreviewStylusDownEvent.AddOwner(_typeofThis);
1222
add { AddHandler(
Stylus
.PreviewStylusDownEvent, value, false); }
1223
remove { RemoveHandler(
Stylus
.PreviewStylusDownEvent, value); }
1234
public static readonly RoutedEvent StylusDownEvent =
Stylus
.StylusDownEvent.AddOwner(_typeofThis);
1241
add { AddHandler(
Stylus
.StylusDownEvent, value, false); }
1242
remove { RemoveHandler(
Stylus
.StylusDownEvent, value); }
1253
public static readonly RoutedEvent PreviewStylusUpEvent =
Stylus
.PreviewStylusUpEvent.AddOwner(_typeofThis);
1260
add { AddHandler(
Stylus
.PreviewStylusUpEvent, value, false); }
1261
remove { RemoveHandler(
Stylus
.PreviewStylusUpEvent, value); }
1272
public static readonly RoutedEvent StylusUpEvent =
Stylus
.StylusUpEvent.AddOwner(_typeofThis);
1279
add { AddHandler(
Stylus
.StylusUpEvent, value, false); }
1280
remove { RemoveHandler(
Stylus
.StylusUpEvent, value); }
1291
public static readonly RoutedEvent PreviewStylusMoveEvent =
Stylus
.PreviewStylusMoveEvent.AddOwner(_typeofThis);
1298
add { AddHandler(
Stylus
.PreviewStylusMoveEvent, value, false); }
1299
remove { RemoveHandler(
Stylus
.PreviewStylusMoveEvent, value); }
1310
public static readonly RoutedEvent StylusMoveEvent =
Stylus
.StylusMoveEvent.AddOwner(_typeofThis);
1317
add { AddHandler(
Stylus
.StylusMoveEvent, value, false); }
1318
remove { RemoveHandler(
Stylus
.StylusMoveEvent, value); }
1329
public static readonly RoutedEvent PreviewStylusInAirMoveEvent =
Stylus
.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis);
1336
add { AddHandler(
Stylus
.PreviewStylusInAirMoveEvent, value, false); }
1337
remove { RemoveHandler(
Stylus
.PreviewStylusInAirMoveEvent, value); }
1348
public static readonly RoutedEvent StylusInAirMoveEvent =
Stylus
.StylusInAirMoveEvent.AddOwner(_typeofThis);
1355
add { AddHandler(
Stylus
.StylusInAirMoveEvent, value, false); }
1356
remove { RemoveHandler(
Stylus
.StylusInAirMoveEvent, value); }
1367
public static readonly RoutedEvent StylusEnterEvent =
Stylus
.StylusEnterEvent.AddOwner(_typeofThis);
1374
add { AddHandler(
Stylus
.StylusEnterEvent, value, false); }
1375
remove { RemoveHandler(
Stylus
.StylusEnterEvent, value); }
1386
public static readonly RoutedEvent StylusLeaveEvent =
Stylus
.StylusLeaveEvent.AddOwner(_typeofThis);
1393
add { AddHandler(
Stylus
.StylusLeaveEvent, value, false); }
1394
remove { RemoveHandler(
Stylus
.StylusLeaveEvent, value); }
1405
public static readonly RoutedEvent PreviewStylusInRangeEvent =
Stylus
.PreviewStylusInRangeEvent.AddOwner(_typeofThis);
1412
add { AddHandler(
Stylus
.PreviewStylusInRangeEvent, value, false); }
1413
remove { RemoveHandler(
Stylus
.PreviewStylusInRangeEvent, value); }
1424
public static readonly RoutedEvent StylusInRangeEvent =
Stylus
.StylusInRangeEvent.AddOwner(_typeofThis);
1431
add { AddHandler(
Stylus
.StylusInRangeEvent, value, false); }
1432
remove { RemoveHandler(
Stylus
.StylusInRangeEvent, value); }
1443
public static readonly RoutedEvent PreviewStylusOutOfRangeEvent =
Stylus
.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis);
1450
add { AddHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value, false); }
1451
remove { RemoveHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value); }
1462
public static readonly RoutedEvent StylusOutOfRangeEvent =
Stylus
.StylusOutOfRangeEvent.AddOwner(_typeofThis);
1469
add { AddHandler(
Stylus
.StylusOutOfRangeEvent, value, false); }
1470
remove { RemoveHandler(
Stylus
.StylusOutOfRangeEvent, value); }
1481
public static readonly RoutedEvent PreviewStylusSystemGestureEvent =
Stylus
.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis);
1488
add { AddHandler(
Stylus
.PreviewStylusSystemGestureEvent, value, false); }
1489
remove { RemoveHandler(
Stylus
.PreviewStylusSystemGestureEvent, value); }
1500
public static readonly RoutedEvent StylusSystemGestureEvent =
Stylus
.StylusSystemGestureEvent.AddOwner(_typeofThis);
1507
add { AddHandler(
Stylus
.StylusSystemGestureEvent, value, false); }
1508
remove { RemoveHandler(
Stylus
.StylusSystemGestureEvent, value); }
1519
public static readonly RoutedEvent GotStylusCaptureEvent =
Stylus
.GotStylusCaptureEvent.AddOwner(_typeofThis);
1526
add { AddHandler(
Stylus
.GotStylusCaptureEvent, value, false); }
1527
remove { RemoveHandler(
Stylus
.GotStylusCaptureEvent, value); }
1538
public static readonly RoutedEvent LostStylusCaptureEvent =
Stylus
.LostStylusCaptureEvent.AddOwner(_typeofThis);
1545
add { AddHandler(
Stylus
.LostStylusCaptureEvent, value, false); }
1546
remove { RemoveHandler(
Stylus
.LostStylusCaptureEvent, value); }
1557
public static readonly RoutedEvent StylusButtonDownEvent =
Stylus
.StylusButtonDownEvent.AddOwner(_typeofThis);
1564
add { AddHandler(
Stylus
.StylusButtonDownEvent, value, false); }
1565
remove { RemoveHandler(
Stylus
.StylusButtonDownEvent, value); }
1576
public static readonly RoutedEvent StylusButtonUpEvent =
Stylus
.StylusButtonUpEvent.AddOwner(_typeofThis);
1583
add { AddHandler(
Stylus
.StylusButtonUpEvent, value, false); }
1584
remove { RemoveHandler(
Stylus
.StylusButtonUpEvent, value); }
1595
public static readonly RoutedEvent PreviewStylusButtonDownEvent =
Stylus
.PreviewStylusButtonDownEvent.AddOwner(_typeofThis);
1602
add { AddHandler(
Stylus
.PreviewStylusButtonDownEvent, value, false); }
1603
remove { RemoveHandler(
Stylus
.PreviewStylusButtonDownEvent, value); }
1614
public static readonly RoutedEvent PreviewStylusButtonUpEvent =
Stylus
.PreviewStylusButtonUpEvent.AddOwner(_typeofThis);
1621
add { AddHandler(
Stylus
.PreviewStylusButtonUpEvent, value, false); }
1622
remove { RemoveHandler(
Stylus
.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement.cs (88)
757
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusDownEvent, new StylusDownEventHandler(UIElement.OnPreviewStylusDownThunk), false);
758
EventManager.RegisterClassHandler(type,
Stylus
.StylusDownEvent, new StylusDownEventHandler(UIElement.OnStylusDownThunk), false);
759
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusUpEvent, new StylusEventHandler(UIElement.OnPreviewStylusUpThunk), false);
760
EventManager.RegisterClassHandler(type,
Stylus
.StylusUpEvent, new StylusEventHandler(UIElement.OnStylusUpThunk), false);
761
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusMoveThunk), false);
762
EventManager.RegisterClassHandler(type,
Stylus
.StylusMoveEvent, new StylusEventHandler(UIElement.OnStylusMoveThunk), false);
763
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusInAirMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusInAirMoveThunk), false);
764
EventManager.RegisterClassHandler(type,
Stylus
.StylusInAirMoveEvent, new StylusEventHandler(UIElement.OnStylusInAirMoveThunk), false);
765
EventManager.RegisterClassHandler(type,
Stylus
.StylusEnterEvent, new StylusEventHandler(UIElement.OnStylusEnterThunk), false);
766
EventManager.RegisterClassHandler(type,
Stylus
.StylusLeaveEvent, new StylusEventHandler(UIElement.OnStylusLeaveThunk), false);
767
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusInRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusInRangeThunk), false);
768
EventManager.RegisterClassHandler(type,
Stylus
.StylusInRangeEvent, new StylusEventHandler(UIElement.OnStylusInRangeThunk), false);
769
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusOutOfRangeThunk), false);
770
EventManager.RegisterClassHandler(type,
Stylus
.StylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnStylusOutOfRangeThunk), false);
771
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnPreviewStylusSystemGestureThunk), false);
772
EventManager.RegisterClassHandler(type,
Stylus
.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnStylusSystemGestureThunk), false);
773
EventManager.RegisterClassHandler(type,
Stylus
.GotStylusCaptureEvent, new StylusEventHandler(UIElement.OnGotStylusCaptureThunk), false);
774
EventManager.RegisterClassHandler(type,
Stylus
.LostStylusCaptureEvent, new StylusEventHandler(UIElement.OnLostStylusCaptureThunk), false);
775
EventManager.RegisterClassHandler(type,
Stylus
.StylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonDownThunk), false);
776
EventManager.RegisterClassHandler(type,
Stylus
.StylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonUpThunk), false);
777
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonDownThunk), false);
778
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonUpThunk), false);
3168
public static readonly RoutedEvent PreviewStylusDownEvent =
Stylus
.PreviewStylusDownEvent.AddOwner(_typeofThis);
3175
add { AddHandler(
Stylus
.PreviewStylusDownEvent, value, false); }
3176
remove { RemoveHandler(
Stylus
.PreviewStylusDownEvent, value); }
3187
public static readonly RoutedEvent StylusDownEvent =
Stylus
.StylusDownEvent.AddOwner(_typeofThis);
3194
add { AddHandler(
Stylus
.StylusDownEvent, value, false); }
3195
remove { RemoveHandler(
Stylus
.StylusDownEvent, value); }
3206
public static readonly RoutedEvent PreviewStylusUpEvent =
Stylus
.PreviewStylusUpEvent.AddOwner(_typeofThis);
3213
add { AddHandler(
Stylus
.PreviewStylusUpEvent, value, false); }
3214
remove { RemoveHandler(
Stylus
.PreviewStylusUpEvent, value); }
3225
public static readonly RoutedEvent StylusUpEvent =
Stylus
.StylusUpEvent.AddOwner(_typeofThis);
3232
add { AddHandler(
Stylus
.StylusUpEvent, value, false); }
3233
remove { RemoveHandler(
Stylus
.StylusUpEvent, value); }
3244
public static readonly RoutedEvent PreviewStylusMoveEvent =
Stylus
.PreviewStylusMoveEvent.AddOwner(_typeofThis);
3251
add { AddHandler(
Stylus
.PreviewStylusMoveEvent, value, false); }
3252
remove { RemoveHandler(
Stylus
.PreviewStylusMoveEvent, value); }
3263
public static readonly RoutedEvent StylusMoveEvent =
Stylus
.StylusMoveEvent.AddOwner(_typeofThis);
3270
add { AddHandler(
Stylus
.StylusMoveEvent, value, false); }
3271
remove { RemoveHandler(
Stylus
.StylusMoveEvent, value); }
3282
public static readonly RoutedEvent PreviewStylusInAirMoveEvent =
Stylus
.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis);
3289
add { AddHandler(
Stylus
.PreviewStylusInAirMoveEvent, value, false); }
3290
remove { RemoveHandler(
Stylus
.PreviewStylusInAirMoveEvent, value); }
3301
public static readonly RoutedEvent StylusInAirMoveEvent =
Stylus
.StylusInAirMoveEvent.AddOwner(_typeofThis);
3308
add { AddHandler(
Stylus
.StylusInAirMoveEvent, value, false); }
3309
remove { RemoveHandler(
Stylus
.StylusInAirMoveEvent, value); }
3320
public static readonly RoutedEvent StylusEnterEvent =
Stylus
.StylusEnterEvent.AddOwner(_typeofThis);
3327
add { AddHandler(
Stylus
.StylusEnterEvent, value, false); }
3328
remove { RemoveHandler(
Stylus
.StylusEnterEvent, value); }
3339
public static readonly RoutedEvent StylusLeaveEvent =
Stylus
.StylusLeaveEvent.AddOwner(_typeofThis);
3346
add { AddHandler(
Stylus
.StylusLeaveEvent, value, false); }
3347
remove { RemoveHandler(
Stylus
.StylusLeaveEvent, value); }
3358
public static readonly RoutedEvent PreviewStylusInRangeEvent =
Stylus
.PreviewStylusInRangeEvent.AddOwner(_typeofThis);
3365
add { AddHandler(
Stylus
.PreviewStylusInRangeEvent, value, false); }
3366
remove { RemoveHandler(
Stylus
.PreviewStylusInRangeEvent, value); }
3377
public static readonly RoutedEvent StylusInRangeEvent =
Stylus
.StylusInRangeEvent.AddOwner(_typeofThis);
3384
add { AddHandler(
Stylus
.StylusInRangeEvent, value, false); }
3385
remove { RemoveHandler(
Stylus
.StylusInRangeEvent, value); }
3396
public static readonly RoutedEvent PreviewStylusOutOfRangeEvent =
Stylus
.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis);
3403
add { AddHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value, false); }
3404
remove { RemoveHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value); }
3415
public static readonly RoutedEvent StylusOutOfRangeEvent =
Stylus
.StylusOutOfRangeEvent.AddOwner(_typeofThis);
3422
add { AddHandler(
Stylus
.StylusOutOfRangeEvent, value, false); }
3423
remove { RemoveHandler(
Stylus
.StylusOutOfRangeEvent, value); }
3434
public static readonly RoutedEvent PreviewStylusSystemGestureEvent =
Stylus
.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis);
3441
add { AddHandler(
Stylus
.PreviewStylusSystemGestureEvent, value, false); }
3442
remove { RemoveHandler(
Stylus
.PreviewStylusSystemGestureEvent, value); }
3453
public static readonly RoutedEvent StylusSystemGestureEvent =
Stylus
.StylusSystemGestureEvent.AddOwner(_typeofThis);
3460
add { AddHandler(
Stylus
.StylusSystemGestureEvent, value, false); }
3461
remove { RemoveHandler(
Stylus
.StylusSystemGestureEvent, value); }
3472
public static readonly RoutedEvent GotStylusCaptureEvent =
Stylus
.GotStylusCaptureEvent.AddOwner(_typeofThis);
3479
add { AddHandler(
Stylus
.GotStylusCaptureEvent, value, false); }
3480
remove { RemoveHandler(
Stylus
.GotStylusCaptureEvent, value); }
3491
public static readonly RoutedEvent LostStylusCaptureEvent =
Stylus
.LostStylusCaptureEvent.AddOwner(_typeofThis);
3498
add { AddHandler(
Stylus
.LostStylusCaptureEvent, value, false); }
3499
remove { RemoveHandler(
Stylus
.LostStylusCaptureEvent, value); }
3510
public static readonly RoutedEvent StylusButtonDownEvent =
Stylus
.StylusButtonDownEvent.AddOwner(_typeofThis);
3517
add { AddHandler(
Stylus
.StylusButtonDownEvent, value, false); }
3518
remove { RemoveHandler(
Stylus
.StylusButtonDownEvent, value); }
3529
public static readonly RoutedEvent StylusButtonUpEvent =
Stylus
.StylusButtonUpEvent.AddOwner(_typeofThis);
3536
add { AddHandler(
Stylus
.StylusButtonUpEvent, value, false); }
3537
remove { RemoveHandler(
Stylus
.StylusButtonUpEvent, value); }
3548
public static readonly RoutedEvent PreviewStylusButtonDownEvent =
Stylus
.PreviewStylusButtonDownEvent.AddOwner(_typeofThis);
3555
add { AddHandler(
Stylus
.PreviewStylusButtonDownEvent, value, false); }
3556
remove { RemoveHandler(
Stylus
.PreviewStylusButtonDownEvent, value); }
3567
public static readonly RoutedEvent PreviewStylusButtonUpEvent =
Stylus
.PreviewStylusButtonUpEvent.AddOwner(_typeofThis);
3574
add { AddHandler(
Stylus
.PreviewStylusButtonUpEvent, value, false); }
3575
remove { RemoveHandler(
Stylus
.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement3D.cs (66)
934
public static readonly RoutedEvent PreviewStylusDownEvent =
Stylus
.PreviewStylusDownEvent.AddOwner(_typeofThis);
941
add { AddHandler(
Stylus
.PreviewStylusDownEvent, value, false); }
942
remove { RemoveHandler(
Stylus
.PreviewStylusDownEvent, value); }
953
public static readonly RoutedEvent StylusDownEvent =
Stylus
.StylusDownEvent.AddOwner(_typeofThis);
960
add { AddHandler(
Stylus
.StylusDownEvent, value, false); }
961
remove { RemoveHandler(
Stylus
.StylusDownEvent, value); }
972
public static readonly RoutedEvent PreviewStylusUpEvent =
Stylus
.PreviewStylusUpEvent.AddOwner(_typeofThis);
979
add { AddHandler(
Stylus
.PreviewStylusUpEvent, value, false); }
980
remove { RemoveHandler(
Stylus
.PreviewStylusUpEvent, value); }
991
public static readonly RoutedEvent StylusUpEvent =
Stylus
.StylusUpEvent.AddOwner(_typeofThis);
998
add { AddHandler(
Stylus
.StylusUpEvent, value, false); }
999
remove { RemoveHandler(
Stylus
.StylusUpEvent, value); }
1010
public static readonly RoutedEvent PreviewStylusMoveEvent =
Stylus
.PreviewStylusMoveEvent.AddOwner(_typeofThis);
1017
add { AddHandler(
Stylus
.PreviewStylusMoveEvent, value, false); }
1018
remove { RemoveHandler(
Stylus
.PreviewStylusMoveEvent, value); }
1029
public static readonly RoutedEvent StylusMoveEvent =
Stylus
.StylusMoveEvent.AddOwner(_typeofThis);
1036
add { AddHandler(
Stylus
.StylusMoveEvent, value, false); }
1037
remove { RemoveHandler(
Stylus
.StylusMoveEvent, value); }
1048
public static readonly RoutedEvent PreviewStylusInAirMoveEvent =
Stylus
.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis);
1055
add { AddHandler(
Stylus
.PreviewStylusInAirMoveEvent, value, false); }
1056
remove { RemoveHandler(
Stylus
.PreviewStylusInAirMoveEvent, value); }
1067
public static readonly RoutedEvent StylusInAirMoveEvent =
Stylus
.StylusInAirMoveEvent.AddOwner(_typeofThis);
1074
add { AddHandler(
Stylus
.StylusInAirMoveEvent, value, false); }
1075
remove { RemoveHandler(
Stylus
.StylusInAirMoveEvent, value); }
1086
public static readonly RoutedEvent StylusEnterEvent =
Stylus
.StylusEnterEvent.AddOwner(_typeofThis);
1093
add { AddHandler(
Stylus
.StylusEnterEvent, value, false); }
1094
remove { RemoveHandler(
Stylus
.StylusEnterEvent, value); }
1105
public static readonly RoutedEvent StylusLeaveEvent =
Stylus
.StylusLeaveEvent.AddOwner(_typeofThis);
1112
add { AddHandler(
Stylus
.StylusLeaveEvent, value, false); }
1113
remove { RemoveHandler(
Stylus
.StylusLeaveEvent, value); }
1124
public static readonly RoutedEvent PreviewStylusInRangeEvent =
Stylus
.PreviewStylusInRangeEvent.AddOwner(_typeofThis);
1131
add { AddHandler(
Stylus
.PreviewStylusInRangeEvent, value, false); }
1132
remove { RemoveHandler(
Stylus
.PreviewStylusInRangeEvent, value); }
1143
public static readonly RoutedEvent StylusInRangeEvent =
Stylus
.StylusInRangeEvent.AddOwner(_typeofThis);
1150
add { AddHandler(
Stylus
.StylusInRangeEvent, value, false); }
1151
remove { RemoveHandler(
Stylus
.StylusInRangeEvent, value); }
1162
public static readonly RoutedEvent PreviewStylusOutOfRangeEvent =
Stylus
.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis);
1169
add { AddHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value, false); }
1170
remove { RemoveHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value); }
1181
public static readonly RoutedEvent StylusOutOfRangeEvent =
Stylus
.StylusOutOfRangeEvent.AddOwner(_typeofThis);
1188
add { AddHandler(
Stylus
.StylusOutOfRangeEvent, value, false); }
1189
remove { RemoveHandler(
Stylus
.StylusOutOfRangeEvent, value); }
1200
public static readonly RoutedEvent PreviewStylusSystemGestureEvent =
Stylus
.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis);
1207
add { AddHandler(
Stylus
.PreviewStylusSystemGestureEvent, value, false); }
1208
remove { RemoveHandler(
Stylus
.PreviewStylusSystemGestureEvent, value); }
1219
public static readonly RoutedEvent StylusSystemGestureEvent =
Stylus
.StylusSystemGestureEvent.AddOwner(_typeofThis);
1226
add { AddHandler(
Stylus
.StylusSystemGestureEvent, value, false); }
1227
remove { RemoveHandler(
Stylus
.StylusSystemGestureEvent, value); }
1238
public static readonly RoutedEvent GotStylusCaptureEvent =
Stylus
.GotStylusCaptureEvent.AddOwner(_typeofThis);
1245
add { AddHandler(
Stylus
.GotStylusCaptureEvent, value, false); }
1246
remove { RemoveHandler(
Stylus
.GotStylusCaptureEvent, value); }
1257
public static readonly RoutedEvent LostStylusCaptureEvent =
Stylus
.LostStylusCaptureEvent.AddOwner(_typeofThis);
1264
add { AddHandler(
Stylus
.LostStylusCaptureEvent, value, false); }
1265
remove { RemoveHandler(
Stylus
.LostStylusCaptureEvent, value); }
1276
public static readonly RoutedEvent StylusButtonDownEvent =
Stylus
.StylusButtonDownEvent.AddOwner(_typeofThis);
1283
add { AddHandler(
Stylus
.StylusButtonDownEvent, value, false); }
1284
remove { RemoveHandler(
Stylus
.StylusButtonDownEvent, value); }
1295
public static readonly RoutedEvent StylusButtonUpEvent =
Stylus
.StylusButtonUpEvent.AddOwner(_typeofThis);
1302
add { AddHandler(
Stylus
.StylusButtonUpEvent, value, false); }
1303
remove { RemoveHandler(
Stylus
.StylusButtonUpEvent, value); }
1314
public static readonly RoutedEvent PreviewStylusButtonDownEvent =
Stylus
.PreviewStylusButtonDownEvent.AddOwner(_typeofThis);
1321
add { AddHandler(
Stylus
.PreviewStylusButtonDownEvent, value, false); }
1322
remove { RemoveHandler(
Stylus
.PreviewStylusButtonDownEvent, value); }
1333
public static readonly RoutedEvent PreviewStylusButtonUpEvent =
Stylus
.PreviewStylusButtonUpEvent.AddOwner(_typeofThis);
1340
add { AddHandler(
Stylus
.PreviewStylusButtonUpEvent, value, false); }
1341
remove { RemoveHandler(
Stylus
.PreviewStylusButtonUpEvent, value); }
System\Windows\Input\Stylus\Common\Stylus.cs (44)
18
public static readonly RoutedEvent PreviewStylusDownEvent = EventManager.RegisterRoutedEvent("PreviewStylusDown", RoutingStrategy.Tunnel, typeof(StylusDownEventHandler), typeof(
Stylus
));
43
public static readonly RoutedEvent StylusDownEvent = EventManager.RegisterRoutedEvent("StylusDown", RoutingStrategy.Bubble, typeof(StylusDownEventHandler), typeof(
Stylus
));
68
public static readonly RoutedEvent PreviewStylusUpEvent = EventManager.RegisterRoutedEvent("PreviewStylusUp", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(
Stylus
));
93
public static readonly RoutedEvent StylusUpEvent = EventManager.RegisterRoutedEvent("StylusUp", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
118
public static readonly RoutedEvent PreviewStylusMoveEvent = EventManager.RegisterRoutedEvent("PreviewStylusMove", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(
Stylus
));
143
public static readonly RoutedEvent StylusMoveEvent = EventManager.RegisterRoutedEvent("StylusMove", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
168
public static readonly RoutedEvent PreviewStylusInAirMoveEvent = EventManager.RegisterRoutedEvent("PreviewStylusInAirMove", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(
Stylus
));
193
public static readonly RoutedEvent StylusInAirMoveEvent = EventManager.RegisterRoutedEvent("StylusInAirMove", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
218
public static readonly RoutedEvent StylusEnterEvent = EventManager.RegisterRoutedEvent("StylusEnter", RoutingStrategy.Direct, typeof(StylusEventHandler), typeof(
Stylus
));
243
public static readonly RoutedEvent StylusLeaveEvent = EventManager.RegisterRoutedEvent("StylusLeave", RoutingStrategy.Direct, typeof(StylusEventHandler), typeof(
Stylus
));
268
public static readonly RoutedEvent PreviewStylusInRangeEvent = EventManager.RegisterRoutedEvent("PreviewStylusInRange", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(
Stylus
));
293
public static readonly RoutedEvent StylusInRangeEvent = EventManager.RegisterRoutedEvent("StylusInRange", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
318
public static readonly RoutedEvent PreviewStylusOutOfRangeEvent = EventManager.RegisterRoutedEvent("PreviewStylusOutOfRange", RoutingStrategy.Tunnel, typeof(StylusEventHandler), typeof(
Stylus
));
343
public static readonly RoutedEvent StylusOutOfRangeEvent = EventManager.RegisterRoutedEvent("StylusOutOfRange", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
368
public static readonly RoutedEvent PreviewStylusSystemGestureEvent = EventManager.RegisterRoutedEvent("PreviewStylusSystemGesture", RoutingStrategy.Tunnel, typeof(StylusSystemGestureEventHandler), typeof(
Stylus
));
393
public static readonly RoutedEvent StylusSystemGestureEvent = EventManager.RegisterRoutedEvent("StylusSystemGesture", RoutingStrategy.Bubble, typeof(StylusSystemGestureEventHandler), typeof(
Stylus
));
418
public static readonly RoutedEvent GotStylusCaptureEvent = EventManager.RegisterRoutedEvent("GotStylusCapture", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
443
public static readonly RoutedEvent LostStylusCaptureEvent = EventManager.RegisterRoutedEvent("LostStylusCapture", RoutingStrategy.Bubble, typeof(StylusEventHandler), typeof(
Stylus
));
468
public static readonly RoutedEvent StylusButtonDownEvent = EventManager.RegisterRoutedEvent("StylusButtonDown", RoutingStrategy.Bubble, typeof(StylusButtonEventHandler), typeof(
Stylus
));
494
public static readonly RoutedEvent StylusButtonUpEvent = EventManager.RegisterRoutedEvent("StylusButtonUp", RoutingStrategy.Bubble, typeof(StylusButtonEventHandler), typeof(
Stylus
));
520
public static readonly RoutedEvent PreviewStylusButtonDownEvent = EventManager.RegisterRoutedEvent("PreviewStylusButtonDown", RoutingStrategy.Tunnel, typeof(StylusButtonEventHandler), typeof(
Stylus
));
546
public static readonly RoutedEvent PreviewStylusButtonUpEvent = EventManager.RegisterRoutedEvent("PreviewStylusButtonUp", RoutingStrategy.Tunnel, typeof(StylusButtonEventHandler), typeof(
Stylus
));
574
/// <seealso cref="
Stylus
.IsPressAndHoldEnabledProperty" />
592
/// <seealso cref="
Stylus
.IsPressAndHoldEnabledProperty" />
603
/// <seealso cref="
Stylus
.GetIsPressAndHoldEnabled" />
604
/// <seealso cref="
Stylus
.SetIsPressAndHoldEnabled" />
606
= DependencyProperty.RegisterAttached("IsPressAndHoldEnabled", typeof(bool), typeof(
Stylus
), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits)
614
/// <seealso cref="
Stylus
.IsFlicksEnabledProperty" />
632
/// <seealso cref="
Stylus
.IsFlicksEnabledProperty" />
643
/// <seealso cref="
Stylus
.GetIsFlicksEnabled" />
644
/// <seealso cref="
Stylus
.SetIsFlicksEnabled" />
646
= DependencyProperty.RegisterAttached("IsFlicksEnabled", typeof(bool), typeof(
Stylus
), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits)
654
/// <seealso cref="
Stylus
.IsTapFeedbackEnabledProperty" />
672
/// <seealso cref="
Stylus
.IsTapFeedbackEnabledProperty" />
683
/// <seealso cref="
Stylus
.GetIsTapFeedbackEnabled" />
684
/// <seealso cref="
Stylus
.SetIsTapFeedbackEnabled" />
686
= DependencyProperty.RegisterAttached("IsTapFeedbackEnabled", typeof(bool), typeof(
Stylus
), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits)
694
/// <seealso cref="
Stylus
.IsTouchFeedbackEnabledProperty" />
711
/// <seealso cref="
Stylus
.IsTouchFeedbackEnabledProperty" />
722
/// <seealso cref="
Stylus
.GetIsTouchFeedbackEnabled" />
723
/// <seealso cref="
Stylus
.SetIsTouchFeedbackEnabled" />
725
= DependencyProperty.RegisterAttached("IsTouchFeedbackEnabled", typeof(bool), typeof(
Stylus
), new PropertyMetadata(true)); // note we can't specify inherits in frameworkcore. new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.Inherits)
736
return
Stylus
.CurrentStylusDevice?.DirectlyOver;
748
return
Stylus
.CurrentStylusDevice?.Captured ?? Mouse.Captured;
System\Windows\Input\Stylus\Common\StylusLogic.cs (25)
597
if (routedEvent ==
Stylus
.PreviewStylusDownEvent)
598
return
Stylus
.StylusDownEvent;
599
if (routedEvent ==
Stylus
.PreviewStylusUpEvent)
600
return
Stylus
.StylusUpEvent;
601
if (routedEvent ==
Stylus
.PreviewStylusMoveEvent)
602
return
Stylus
.StylusMoveEvent;
603
if (routedEvent ==
Stylus
.PreviewStylusInAirMoveEvent)
604
return
Stylus
.StylusInAirMoveEvent;
605
if (routedEvent ==
Stylus
.PreviewStylusInRangeEvent)
606
return
Stylus
.StylusInRangeEvent;
607
if (routedEvent ==
Stylus
.PreviewStylusOutOfRangeEvent)
608
return
Stylus
.StylusOutOfRangeEvent;
609
if (routedEvent ==
Stylus
.PreviewStylusSystemGestureEvent)
610
return
Stylus
.StylusSystemGestureEvent;
611
if (routedEvent ==
Stylus
.PreviewStylusButtonDownEvent)
612
return
Stylus
.StylusButtonDownEvent;
613
if (routedEvent ==
Stylus
.PreviewStylusButtonUpEvent)
614
return
Stylus
.StylusButtonUpEvent;
626
previewEvent =
Stylus
.PreviewStylusDownEvent;
631
previewEvent =
Stylus
.PreviewStylusUpEvent;
636
previewEvent =
Stylus
.PreviewStylusMoveEvent;
641
previewEvent =
Stylus
.PreviewStylusInAirMoveEvent;
646
previewEvent =
Stylus
.PreviewStylusInRangeEvent;
651
previewEvent =
Stylus
.PreviewStylusOutOfRangeEvent;
656
previewEvent =
Stylus
.PreviewStylusSystemGestureEvent;
System\Windows\Input\Stylus\Common\Tablet.cs (1)
22
StylusDevice stylus =
Stylus
.CurrentStylusDevice;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (18)
808
Stylus
.Capture(null);
969
(routedEvent ==
Stylus
.StylusMoveEvent ||
970
routedEvent ==
Stylus
.StylusDownEvent ||
971
routedEvent ==
Stylus
.StylusUpEvent));
991
if (routedEvent !=
Stylus
.PreviewStylusSystemGestureEvent)
993
if (routedEvent ==
Stylus
.PreviewStylusDownEvent)
1033
if (eventMain ==
Stylus
.StylusDownEvent ||
1034
eventMain ==
Stylus
.PreviewStylusDownEvent)
1039
else if (eventMain ==
Stylus
.StylusButtonDownEvent ||
1040
eventMain ==
Stylus
.StylusButtonUpEvent)
1045
else if (eventMain !=
Stylus
.StylusSystemGestureEvent)
1072
stylusEventArgs.RoutedEvent ==
Stylus
.PreviewStylusUpEvent &&
1103
if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusUpEvent &&
1126
if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusMoveEvent)
1130
else if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusDownEvent)
1134
else if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusUpEvent)
1263
if (args.StagingItem.Input.RoutedEvent ==
Stylus
.PreviewStylusDownEvent)
1300
else if (args.StagingItem.Input.RoutedEvent ==
Stylus
.PreviewStylusSystemGestureEvent)
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1048
lostCapture.RoutedEvent =
Stylus
.LostStylusCaptureEvent;
1055
gotCapture.RoutedEvent =
Stylus
.GotStylusCaptureEvent;
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (2)
184
return
Stylus
.CurrentStylusDevice?.Target;
195
return
Stylus
.CurrentStylusDevice?.ActiveSource;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (29)
1047
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.PreviewStylusDownEvent)
1250
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusOutOfRangeEvent)
1312
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusMoveEvent)
1324
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusSystemGestureEvent)
1346
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusOutOfRangeEvent)
1368
if (routedEvent !=
Stylus
.PreviewStylusSystemGestureEvent)
1370
if (routedEvent ==
Stylus
.PreviewStylusDownEvent)
1408
if (eventMain ==
Stylus
.StylusDownEvent ||
1409
eventMain ==
Stylus
.PreviewStylusDownEvent)
1414
else if (eventMain ==
Stylus
.StylusButtonDownEvent ||
1415
eventMain ==
Stylus
.StylusButtonUpEvent)
1420
else if (eventMain !=
Stylus
.StylusSystemGestureEvent)
1446
if (stylusEventArgs?.RoutedEvent ==
Stylus
.PreviewStylusUpEvent &&
1474
if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusUpEvent &&
1488
else if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusSystemGestureEvent)
1518
(routedEvent ==
Stylus
.StylusMoveEvent ||
1519
routedEvent ==
Stylus
.StylusDownEvent ||
1520
routedEvent ==
Stylus
.StylusUpEvent));
1536
if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusMoveEvent)
1540
else if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusDownEvent)
1544
else if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusUpEvent)
1586
storedStagingItems[stagingItemCount - 1].Input.RoutedEvent ==
Stylus
.StylusMoveEvent)
2450
Stylus
.Capture(null);
2866
if (routedEvent != null && (routedEvent ==
Stylus
.StylusDownEvent
2867
|| routedEvent ==
Stylus
.StylusUpEvent
2868
|| routedEvent ==
Stylus
.StylusMoveEvent
2869
|| routedEvent ==
Stylus
.StylusInAirMoveEvent))
2897
args.RoutedEvent =
Stylus
.PreviewStylusButtonDownEvent;
2901
args.RoutedEvent =
Stylus
.PreviewStylusButtonUpEvent;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (7)
629
lostCapture.RoutedEvent =
Stylus
.LostStylusCaptureEvent;
636
gotCapture.RoutedEvent =
Stylus
.GotStylusCaptureEvent;
1735
if (stylusEvent ==
Stylus
.StylusSystemGestureEvent)
1774
else if (stylusEvent ==
Stylus
.StylusInAirMoveEvent)
1778
else if (stylusEvent ==
Stylus
.StylusDownEvent)
1789
else if (stylusEvent ==
Stylus
.StylusMoveEvent)
1796
else if (stylusEvent ==
Stylus
.StylusUpEvent)
System\Windows\Input\Stylus\Wisp\WispTabletDevice.cs (2)
131
StylusDevice stylusDevice =
Stylus
.CurrentStylusDevice;
150
StylusDevice stylusDevice =
Stylus
.CurrentStylusDevice;
System\Windows\InterOp\HwndStylusInputProvider.cs (4)
99
bool isPressAndHoldEnabled =
Stylus
.GetIsPressAndHoldEnabled(elementCur);
100
bool isFlicksEnabled =
Stylus
.GetIsFlicksEnabled(elementCur);
101
bool isTapFeedbackEnabled =
Stylus
.GetIsTapFeedbackEnabled(elementCur);
102
bool isTouchFeedbackEnabled =
Stylus
.GetIsTouchFeedbackEnabled(elementCur);
System\Windows\StylusOverProperty.cs (4)
34
if(
Stylus
.CurrentStylusDevice == null)
39
StylusEventArgs stylusEventArgs = new StylusEventArgs(
Stylus
.CurrentStylusDevice, Environment.TickCount);
40
stylusEventArgs.RoutedEvent = oldValue ?
Stylus
.StylusLeaveEvent :
Stylus
.StylusEnterEvent;
System\Windows\UIElement.cs (5)
2524
return (
Stylus
.DirectlyOver == this);
2540
return
Stylus
.Capture(this);
2548
Stylus
.Capture(null);
4361
if (IsDefaultValue(this,
Stylus
.IsFlicksEnabledProperty))
4363
SetCurrentValueInternal(
Stylus
.IsFlicksEnabledProperty, BooleanBoxes.FalseBox);
System\Windows\UIElement3D.cs (3)
495
return (
Stylus
.DirectlyOver == this);
511
return
Stylus
.Capture(this);
519
Stylus
.Capture(null);
PresentationFramework (23)
MS\Internal\Ink\EditingCoordinator.cs (6)
48
_inkCanvas.AddHandler(
Stylus
.StylusInRangeEvent, new StylusEventHandler(OnInkCanvasStylusInAirOrInRangeMove));
49
_inkCanvas.AddHandler(
Stylus
.StylusInAirMoveEvent, new StylusEventHandler(OnInkCanvasStylusInAirOrInRangeMove));
50
_inkCanvas.AddHandler(
Stylus
.StylusOutOfRangeEvent, new StylusEventHandler(OnInkCanvasStylusOutOfRange));
415
StylusDevice stylusDevice =
Stylus
.CurrentStylusDevice;
967
_inkCanvas.AddHandler(
Stylus
.StylusMoveEvent, new StylusEventHandler(OnInkCanvasDeviceMove<StylusEventArgs>));
1020
_inkCanvas.RemoveHandler(
Stylus
.StylusMoveEvent, new StylusEventHandler(OnInkCanvasDeviceMove<StylusEventArgs>));
System\Windows\Controls\InkCanvas.cs (5)
56
EventManager.RegisterClassHandler(ownerType,
Stylus
.StylusDownEvent,
62
EventManager.RegisterClassHandler(ownerType,
Stylus
.StylusUpEvent,
100
defaultStyle.Setters.Add(new Setter(
Stylus
.IsFlicksEnabledProperty, false));
102
defaultStyle.Setters.Add(new Setter(
Stylus
.IsTapFeedbackEnabledProperty, false));
104
defaultStyle.Setters.Add(new Setter(
Stylus
.IsTouchFeedbackEnabledProperty, false));
System\Windows\Controls\StickyNote.cs (1)
96
EventManager.RegisterClassHandler(owner,
Stylus
.PreviewStylusDownEvent, new StylusDownEventHandler(_OnPreviewDeviceDown<StylusDownEventArgs>));
System\Windows\FrameworkContentElement.cs (4)
91
Stylus
.IsPressAndHoldEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
92
Stylus
.IsFlicksEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
93
Stylus
.IsTapFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
94
Stylus
.IsTouchFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
System\Windows\FrameworkElement.cs (4)
2385
Stylus
.IsPressAndHoldEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
2386
Stylus
.IsFlicksEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
2387
Stylus
.IsTapFeedbackEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
2388
Stylus
.IsTouchFeedbackEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
715
case 621: t = () => typeof(
Stylus
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9685
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)
697
routedEvent ==
Stylus
.PreviewStylusDownEvent)