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)
1204
public static readonly RoutedEvent PreviewStylusDownEvent =
Stylus
.PreviewStylusDownEvent.AddOwner(_typeofThis);
1211
add { AddHandler(
Stylus
.PreviewStylusDownEvent, value, false); }
1212
remove { RemoveHandler(
Stylus
.PreviewStylusDownEvent, value); }
1223
public static readonly RoutedEvent StylusDownEvent =
Stylus
.StylusDownEvent.AddOwner(_typeofThis);
1230
add { AddHandler(
Stylus
.StylusDownEvent, value, false); }
1231
remove { RemoveHandler(
Stylus
.StylusDownEvent, value); }
1242
public static readonly RoutedEvent PreviewStylusUpEvent =
Stylus
.PreviewStylusUpEvent.AddOwner(_typeofThis);
1249
add { AddHandler(
Stylus
.PreviewStylusUpEvent, value, false); }
1250
remove { RemoveHandler(
Stylus
.PreviewStylusUpEvent, value); }
1261
public static readonly RoutedEvent StylusUpEvent =
Stylus
.StylusUpEvent.AddOwner(_typeofThis);
1268
add { AddHandler(
Stylus
.StylusUpEvent, value, false); }
1269
remove { RemoveHandler(
Stylus
.StylusUpEvent, value); }
1280
public static readonly RoutedEvent PreviewStylusMoveEvent =
Stylus
.PreviewStylusMoveEvent.AddOwner(_typeofThis);
1287
add { AddHandler(
Stylus
.PreviewStylusMoveEvent, value, false); }
1288
remove { RemoveHandler(
Stylus
.PreviewStylusMoveEvent, value); }
1299
public static readonly RoutedEvent StylusMoveEvent =
Stylus
.StylusMoveEvent.AddOwner(_typeofThis);
1306
add { AddHandler(
Stylus
.StylusMoveEvent, value, false); }
1307
remove { RemoveHandler(
Stylus
.StylusMoveEvent, value); }
1318
public static readonly RoutedEvent PreviewStylusInAirMoveEvent =
Stylus
.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis);
1325
add { AddHandler(
Stylus
.PreviewStylusInAirMoveEvent, value, false); }
1326
remove { RemoveHandler(
Stylus
.PreviewStylusInAirMoveEvent, value); }
1337
public static readonly RoutedEvent StylusInAirMoveEvent =
Stylus
.StylusInAirMoveEvent.AddOwner(_typeofThis);
1344
add { AddHandler(
Stylus
.StylusInAirMoveEvent, value, false); }
1345
remove { RemoveHandler(
Stylus
.StylusInAirMoveEvent, value); }
1356
public static readonly RoutedEvent StylusEnterEvent =
Stylus
.StylusEnterEvent.AddOwner(_typeofThis);
1363
add { AddHandler(
Stylus
.StylusEnterEvent, value, false); }
1364
remove { RemoveHandler(
Stylus
.StylusEnterEvent, value); }
1375
public static readonly RoutedEvent StylusLeaveEvent =
Stylus
.StylusLeaveEvent.AddOwner(_typeofThis);
1382
add { AddHandler(
Stylus
.StylusLeaveEvent, value, false); }
1383
remove { RemoveHandler(
Stylus
.StylusLeaveEvent, value); }
1394
public static readonly RoutedEvent PreviewStylusInRangeEvent =
Stylus
.PreviewStylusInRangeEvent.AddOwner(_typeofThis);
1401
add { AddHandler(
Stylus
.PreviewStylusInRangeEvent, value, false); }
1402
remove { RemoveHandler(
Stylus
.PreviewStylusInRangeEvent, value); }
1413
public static readonly RoutedEvent StylusInRangeEvent =
Stylus
.StylusInRangeEvent.AddOwner(_typeofThis);
1420
add { AddHandler(
Stylus
.StylusInRangeEvent, value, false); }
1421
remove { RemoveHandler(
Stylus
.StylusInRangeEvent, value); }
1432
public static readonly RoutedEvent PreviewStylusOutOfRangeEvent =
Stylus
.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis);
1439
add { AddHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value, false); }
1440
remove { RemoveHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value); }
1451
public static readonly RoutedEvent StylusOutOfRangeEvent =
Stylus
.StylusOutOfRangeEvent.AddOwner(_typeofThis);
1458
add { AddHandler(
Stylus
.StylusOutOfRangeEvent, value, false); }
1459
remove { RemoveHandler(
Stylus
.StylusOutOfRangeEvent, value); }
1470
public static readonly RoutedEvent PreviewStylusSystemGestureEvent =
Stylus
.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis);
1477
add { AddHandler(
Stylus
.PreviewStylusSystemGestureEvent, value, false); }
1478
remove { RemoveHandler(
Stylus
.PreviewStylusSystemGestureEvent, value); }
1489
public static readonly RoutedEvent StylusSystemGestureEvent =
Stylus
.StylusSystemGestureEvent.AddOwner(_typeofThis);
1496
add { AddHandler(
Stylus
.StylusSystemGestureEvent, value, false); }
1497
remove { RemoveHandler(
Stylus
.StylusSystemGestureEvent, value); }
1508
public static readonly RoutedEvent GotStylusCaptureEvent =
Stylus
.GotStylusCaptureEvent.AddOwner(_typeofThis);
1515
add { AddHandler(
Stylus
.GotStylusCaptureEvent, value, false); }
1516
remove { RemoveHandler(
Stylus
.GotStylusCaptureEvent, value); }
1527
public static readonly RoutedEvent LostStylusCaptureEvent =
Stylus
.LostStylusCaptureEvent.AddOwner(_typeofThis);
1534
add { AddHandler(
Stylus
.LostStylusCaptureEvent, value, false); }
1535
remove { RemoveHandler(
Stylus
.LostStylusCaptureEvent, value); }
1546
public static readonly RoutedEvent StylusButtonDownEvent =
Stylus
.StylusButtonDownEvent.AddOwner(_typeofThis);
1553
add { AddHandler(
Stylus
.StylusButtonDownEvent, value, false); }
1554
remove { RemoveHandler(
Stylus
.StylusButtonDownEvent, value); }
1565
public static readonly RoutedEvent StylusButtonUpEvent =
Stylus
.StylusButtonUpEvent.AddOwner(_typeofThis);
1572
add { AddHandler(
Stylus
.StylusButtonUpEvent, value, false); }
1573
remove { RemoveHandler(
Stylus
.StylusButtonUpEvent, value); }
1584
public static readonly RoutedEvent PreviewStylusButtonDownEvent =
Stylus
.PreviewStylusButtonDownEvent.AddOwner(_typeofThis);
1591
add { AddHandler(
Stylus
.PreviewStylusButtonDownEvent, value, false); }
1592
remove { RemoveHandler(
Stylus
.PreviewStylusButtonDownEvent, value); }
1603
public static readonly RoutedEvent PreviewStylusButtonUpEvent =
Stylus
.PreviewStylusButtonUpEvent.AddOwner(_typeofThis);
1610
add { AddHandler(
Stylus
.PreviewStylusButtonUpEvent, value, false); }
1611
remove { RemoveHandler(
Stylus
.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement.cs (88)
746
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusDownEvent, new StylusDownEventHandler(UIElement.OnPreviewStylusDownThunk), false);
747
EventManager.RegisterClassHandler(type,
Stylus
.StylusDownEvent, new StylusDownEventHandler(UIElement.OnStylusDownThunk), false);
748
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusUpEvent, new StylusEventHandler(UIElement.OnPreviewStylusUpThunk), false);
749
EventManager.RegisterClassHandler(type,
Stylus
.StylusUpEvent, new StylusEventHandler(UIElement.OnStylusUpThunk), false);
750
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusMoveThunk), false);
751
EventManager.RegisterClassHandler(type,
Stylus
.StylusMoveEvent, new StylusEventHandler(UIElement.OnStylusMoveThunk), false);
752
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusInAirMoveEvent, new StylusEventHandler(UIElement.OnPreviewStylusInAirMoveThunk), false);
753
EventManager.RegisterClassHandler(type,
Stylus
.StylusInAirMoveEvent, new StylusEventHandler(UIElement.OnStylusInAirMoveThunk), false);
754
EventManager.RegisterClassHandler(type,
Stylus
.StylusEnterEvent, new StylusEventHandler(UIElement.OnStylusEnterThunk), false);
755
EventManager.RegisterClassHandler(type,
Stylus
.StylusLeaveEvent, new StylusEventHandler(UIElement.OnStylusLeaveThunk), false);
756
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusInRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusInRangeThunk), false);
757
EventManager.RegisterClassHandler(type,
Stylus
.StylusInRangeEvent, new StylusEventHandler(UIElement.OnStylusInRangeThunk), false);
758
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnPreviewStylusOutOfRangeThunk), false);
759
EventManager.RegisterClassHandler(type,
Stylus
.StylusOutOfRangeEvent, new StylusEventHandler(UIElement.OnStylusOutOfRangeThunk), false);
760
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnPreviewStylusSystemGestureThunk), false);
761
EventManager.RegisterClassHandler(type,
Stylus
.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(UIElement.OnStylusSystemGestureThunk), false);
762
EventManager.RegisterClassHandler(type,
Stylus
.GotStylusCaptureEvent, new StylusEventHandler(UIElement.OnGotStylusCaptureThunk), false);
763
EventManager.RegisterClassHandler(type,
Stylus
.LostStylusCaptureEvent, new StylusEventHandler(UIElement.OnLostStylusCaptureThunk), false);
764
EventManager.RegisterClassHandler(type,
Stylus
.StylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonDownThunk), false);
765
EventManager.RegisterClassHandler(type,
Stylus
.StylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnStylusButtonUpThunk), false);
766
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusButtonDownEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonDownThunk), false);
767
EventManager.RegisterClassHandler(type,
Stylus
.PreviewStylusButtonUpEvent, new StylusButtonEventHandler(UIElement.OnPreviewStylusButtonUpThunk), false);
3157
public static readonly RoutedEvent PreviewStylusDownEvent =
Stylus
.PreviewStylusDownEvent.AddOwner(_typeofThis);
3164
add { AddHandler(
Stylus
.PreviewStylusDownEvent, value, false); }
3165
remove { RemoveHandler(
Stylus
.PreviewStylusDownEvent, value); }
3176
public static readonly RoutedEvent StylusDownEvent =
Stylus
.StylusDownEvent.AddOwner(_typeofThis);
3183
add { AddHandler(
Stylus
.StylusDownEvent, value, false); }
3184
remove { RemoveHandler(
Stylus
.StylusDownEvent, value); }
3195
public static readonly RoutedEvent PreviewStylusUpEvent =
Stylus
.PreviewStylusUpEvent.AddOwner(_typeofThis);
3202
add { AddHandler(
Stylus
.PreviewStylusUpEvent, value, false); }
3203
remove { RemoveHandler(
Stylus
.PreviewStylusUpEvent, value); }
3214
public static readonly RoutedEvent StylusUpEvent =
Stylus
.StylusUpEvent.AddOwner(_typeofThis);
3221
add { AddHandler(
Stylus
.StylusUpEvent, value, false); }
3222
remove { RemoveHandler(
Stylus
.StylusUpEvent, value); }
3233
public static readonly RoutedEvent PreviewStylusMoveEvent =
Stylus
.PreviewStylusMoveEvent.AddOwner(_typeofThis);
3240
add { AddHandler(
Stylus
.PreviewStylusMoveEvent, value, false); }
3241
remove { RemoveHandler(
Stylus
.PreviewStylusMoveEvent, value); }
3252
public static readonly RoutedEvent StylusMoveEvent =
Stylus
.StylusMoveEvent.AddOwner(_typeofThis);
3259
add { AddHandler(
Stylus
.StylusMoveEvent, value, false); }
3260
remove { RemoveHandler(
Stylus
.StylusMoveEvent, value); }
3271
public static readonly RoutedEvent PreviewStylusInAirMoveEvent =
Stylus
.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis);
3278
add { AddHandler(
Stylus
.PreviewStylusInAirMoveEvent, value, false); }
3279
remove { RemoveHandler(
Stylus
.PreviewStylusInAirMoveEvent, value); }
3290
public static readonly RoutedEvent StylusInAirMoveEvent =
Stylus
.StylusInAirMoveEvent.AddOwner(_typeofThis);
3297
add { AddHandler(
Stylus
.StylusInAirMoveEvent, value, false); }
3298
remove { RemoveHandler(
Stylus
.StylusInAirMoveEvent, value); }
3309
public static readonly RoutedEvent StylusEnterEvent =
Stylus
.StylusEnterEvent.AddOwner(_typeofThis);
3316
add { AddHandler(
Stylus
.StylusEnterEvent, value, false); }
3317
remove { RemoveHandler(
Stylus
.StylusEnterEvent, value); }
3328
public static readonly RoutedEvent StylusLeaveEvent =
Stylus
.StylusLeaveEvent.AddOwner(_typeofThis);
3335
add { AddHandler(
Stylus
.StylusLeaveEvent, value, false); }
3336
remove { RemoveHandler(
Stylus
.StylusLeaveEvent, value); }
3347
public static readonly RoutedEvent PreviewStylusInRangeEvent =
Stylus
.PreviewStylusInRangeEvent.AddOwner(_typeofThis);
3354
add { AddHandler(
Stylus
.PreviewStylusInRangeEvent, value, false); }
3355
remove { RemoveHandler(
Stylus
.PreviewStylusInRangeEvent, value); }
3366
public static readonly RoutedEvent StylusInRangeEvent =
Stylus
.StylusInRangeEvent.AddOwner(_typeofThis);
3373
add { AddHandler(
Stylus
.StylusInRangeEvent, value, false); }
3374
remove { RemoveHandler(
Stylus
.StylusInRangeEvent, value); }
3385
public static readonly RoutedEvent PreviewStylusOutOfRangeEvent =
Stylus
.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis);
3392
add { AddHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value, false); }
3393
remove { RemoveHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value); }
3404
public static readonly RoutedEvent StylusOutOfRangeEvent =
Stylus
.StylusOutOfRangeEvent.AddOwner(_typeofThis);
3411
add { AddHandler(
Stylus
.StylusOutOfRangeEvent, value, false); }
3412
remove { RemoveHandler(
Stylus
.StylusOutOfRangeEvent, value); }
3423
public static readonly RoutedEvent PreviewStylusSystemGestureEvent =
Stylus
.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis);
3430
add { AddHandler(
Stylus
.PreviewStylusSystemGestureEvent, value, false); }
3431
remove { RemoveHandler(
Stylus
.PreviewStylusSystemGestureEvent, value); }
3442
public static readonly RoutedEvent StylusSystemGestureEvent =
Stylus
.StylusSystemGestureEvent.AddOwner(_typeofThis);
3449
add { AddHandler(
Stylus
.StylusSystemGestureEvent, value, false); }
3450
remove { RemoveHandler(
Stylus
.StylusSystemGestureEvent, value); }
3461
public static readonly RoutedEvent GotStylusCaptureEvent =
Stylus
.GotStylusCaptureEvent.AddOwner(_typeofThis);
3468
add { AddHandler(
Stylus
.GotStylusCaptureEvent, value, false); }
3469
remove { RemoveHandler(
Stylus
.GotStylusCaptureEvent, value); }
3480
public static readonly RoutedEvent LostStylusCaptureEvent =
Stylus
.LostStylusCaptureEvent.AddOwner(_typeofThis);
3487
add { AddHandler(
Stylus
.LostStylusCaptureEvent, value, false); }
3488
remove { RemoveHandler(
Stylus
.LostStylusCaptureEvent, value); }
3499
public static readonly RoutedEvent StylusButtonDownEvent =
Stylus
.StylusButtonDownEvent.AddOwner(_typeofThis);
3506
add { AddHandler(
Stylus
.StylusButtonDownEvent, value, false); }
3507
remove { RemoveHandler(
Stylus
.StylusButtonDownEvent, value); }
3518
public static readonly RoutedEvent StylusButtonUpEvent =
Stylus
.StylusButtonUpEvent.AddOwner(_typeofThis);
3525
add { AddHandler(
Stylus
.StylusButtonUpEvent, value, false); }
3526
remove { RemoveHandler(
Stylus
.StylusButtonUpEvent, value); }
3537
public static readonly RoutedEvent PreviewStylusButtonDownEvent =
Stylus
.PreviewStylusButtonDownEvent.AddOwner(_typeofThis);
3544
add { AddHandler(
Stylus
.PreviewStylusButtonDownEvent, value, false); }
3545
remove { RemoveHandler(
Stylus
.PreviewStylusButtonDownEvent, value); }
3556
public static readonly RoutedEvent PreviewStylusButtonUpEvent =
Stylus
.PreviewStylusButtonUpEvent.AddOwner(_typeofThis);
3563
add { AddHandler(
Stylus
.PreviewStylusButtonUpEvent, value, false); }
3564
remove { RemoveHandler(
Stylus
.PreviewStylusButtonUpEvent, value); }
System\Windows\Generated\UIElement3D.cs (66)
932
public static readonly RoutedEvent PreviewStylusDownEvent =
Stylus
.PreviewStylusDownEvent.AddOwner(_typeofThis);
939
add { AddHandler(
Stylus
.PreviewStylusDownEvent, value, false); }
940
remove { RemoveHandler(
Stylus
.PreviewStylusDownEvent, value); }
951
public static readonly RoutedEvent StylusDownEvent =
Stylus
.StylusDownEvent.AddOwner(_typeofThis);
958
add { AddHandler(
Stylus
.StylusDownEvent, value, false); }
959
remove { RemoveHandler(
Stylus
.StylusDownEvent, value); }
970
public static readonly RoutedEvent PreviewStylusUpEvent =
Stylus
.PreviewStylusUpEvent.AddOwner(_typeofThis);
977
add { AddHandler(
Stylus
.PreviewStylusUpEvent, value, false); }
978
remove { RemoveHandler(
Stylus
.PreviewStylusUpEvent, value); }
989
public static readonly RoutedEvent StylusUpEvent =
Stylus
.StylusUpEvent.AddOwner(_typeofThis);
996
add { AddHandler(
Stylus
.StylusUpEvent, value, false); }
997
remove { RemoveHandler(
Stylus
.StylusUpEvent, value); }
1008
public static readonly RoutedEvent PreviewStylusMoveEvent =
Stylus
.PreviewStylusMoveEvent.AddOwner(_typeofThis);
1015
add { AddHandler(
Stylus
.PreviewStylusMoveEvent, value, false); }
1016
remove { RemoveHandler(
Stylus
.PreviewStylusMoveEvent, value); }
1027
public static readonly RoutedEvent StylusMoveEvent =
Stylus
.StylusMoveEvent.AddOwner(_typeofThis);
1034
add { AddHandler(
Stylus
.StylusMoveEvent, value, false); }
1035
remove { RemoveHandler(
Stylus
.StylusMoveEvent, value); }
1046
public static readonly RoutedEvent PreviewStylusInAirMoveEvent =
Stylus
.PreviewStylusInAirMoveEvent.AddOwner(_typeofThis);
1053
add { AddHandler(
Stylus
.PreviewStylusInAirMoveEvent, value, false); }
1054
remove { RemoveHandler(
Stylus
.PreviewStylusInAirMoveEvent, value); }
1065
public static readonly RoutedEvent StylusInAirMoveEvent =
Stylus
.StylusInAirMoveEvent.AddOwner(_typeofThis);
1072
add { AddHandler(
Stylus
.StylusInAirMoveEvent, value, false); }
1073
remove { RemoveHandler(
Stylus
.StylusInAirMoveEvent, value); }
1084
public static readonly RoutedEvent StylusEnterEvent =
Stylus
.StylusEnterEvent.AddOwner(_typeofThis);
1091
add { AddHandler(
Stylus
.StylusEnterEvent, value, false); }
1092
remove { RemoveHandler(
Stylus
.StylusEnterEvent, value); }
1103
public static readonly RoutedEvent StylusLeaveEvent =
Stylus
.StylusLeaveEvent.AddOwner(_typeofThis);
1110
add { AddHandler(
Stylus
.StylusLeaveEvent, value, false); }
1111
remove { RemoveHandler(
Stylus
.StylusLeaveEvent, value); }
1122
public static readonly RoutedEvent PreviewStylusInRangeEvent =
Stylus
.PreviewStylusInRangeEvent.AddOwner(_typeofThis);
1129
add { AddHandler(
Stylus
.PreviewStylusInRangeEvent, value, false); }
1130
remove { RemoveHandler(
Stylus
.PreviewStylusInRangeEvent, value); }
1141
public static readonly RoutedEvent StylusInRangeEvent =
Stylus
.StylusInRangeEvent.AddOwner(_typeofThis);
1148
add { AddHandler(
Stylus
.StylusInRangeEvent, value, false); }
1149
remove { RemoveHandler(
Stylus
.StylusInRangeEvent, value); }
1160
public static readonly RoutedEvent PreviewStylusOutOfRangeEvent =
Stylus
.PreviewStylusOutOfRangeEvent.AddOwner(_typeofThis);
1167
add { AddHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value, false); }
1168
remove { RemoveHandler(
Stylus
.PreviewStylusOutOfRangeEvent, value); }
1179
public static readonly RoutedEvent StylusOutOfRangeEvent =
Stylus
.StylusOutOfRangeEvent.AddOwner(_typeofThis);
1186
add { AddHandler(
Stylus
.StylusOutOfRangeEvent, value, false); }
1187
remove { RemoveHandler(
Stylus
.StylusOutOfRangeEvent, value); }
1198
public static readonly RoutedEvent PreviewStylusSystemGestureEvent =
Stylus
.PreviewStylusSystemGestureEvent.AddOwner(_typeofThis);
1205
add { AddHandler(
Stylus
.PreviewStylusSystemGestureEvent, value, false); }
1206
remove { RemoveHandler(
Stylus
.PreviewStylusSystemGestureEvent, value); }
1217
public static readonly RoutedEvent StylusSystemGestureEvent =
Stylus
.StylusSystemGestureEvent.AddOwner(_typeofThis);
1224
add { AddHandler(
Stylus
.StylusSystemGestureEvent, value, false); }
1225
remove { RemoveHandler(
Stylus
.StylusSystemGestureEvent, value); }
1236
public static readonly RoutedEvent GotStylusCaptureEvent =
Stylus
.GotStylusCaptureEvent.AddOwner(_typeofThis);
1243
add { AddHandler(
Stylus
.GotStylusCaptureEvent, value, false); }
1244
remove { RemoveHandler(
Stylus
.GotStylusCaptureEvent, value); }
1255
public static readonly RoutedEvent LostStylusCaptureEvent =
Stylus
.LostStylusCaptureEvent.AddOwner(_typeofThis);
1262
add { AddHandler(
Stylus
.LostStylusCaptureEvent, value, false); }
1263
remove { RemoveHandler(
Stylus
.LostStylusCaptureEvent, value); }
1274
public static readonly RoutedEvent StylusButtonDownEvent =
Stylus
.StylusButtonDownEvent.AddOwner(_typeofThis);
1281
add { AddHandler(
Stylus
.StylusButtonDownEvent, value, false); }
1282
remove { RemoveHandler(
Stylus
.StylusButtonDownEvent, value); }
1293
public static readonly RoutedEvent StylusButtonUpEvent =
Stylus
.StylusButtonUpEvent.AddOwner(_typeofThis);
1300
add { AddHandler(
Stylus
.StylusButtonUpEvent, value, false); }
1301
remove { RemoveHandler(
Stylus
.StylusButtonUpEvent, value); }
1312
public static readonly RoutedEvent PreviewStylusButtonDownEvent =
Stylus
.PreviewStylusButtonDownEvent.AddOwner(_typeofThis);
1319
add { AddHandler(
Stylus
.PreviewStylusButtonDownEvent, value, false); }
1320
remove { RemoveHandler(
Stylus
.PreviewStylusButtonDownEvent, value); }
1331
public static readonly RoutedEvent PreviewStylusButtonUpEvent =
Stylus
.PreviewStylusButtonUpEvent.AddOwner(_typeofThis);
1338
add { AddHandler(
Stylus
.PreviewStylusButtonUpEvent, value, false); }
1339
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)
591
if (routedEvent ==
Stylus
.PreviewStylusDownEvent)
592
return
Stylus
.StylusDownEvent;
593
if (routedEvent ==
Stylus
.PreviewStylusUpEvent)
594
return
Stylus
.StylusUpEvent;
595
if (routedEvent ==
Stylus
.PreviewStylusMoveEvent)
596
return
Stylus
.StylusMoveEvent;
597
if (routedEvent ==
Stylus
.PreviewStylusInAirMoveEvent)
598
return
Stylus
.StylusInAirMoveEvent;
599
if (routedEvent ==
Stylus
.PreviewStylusInRangeEvent)
600
return
Stylus
.StylusInRangeEvent;
601
if (routedEvent ==
Stylus
.PreviewStylusOutOfRangeEvent)
602
return
Stylus
.StylusOutOfRangeEvent;
603
if (routedEvent ==
Stylus
.PreviewStylusSystemGestureEvent)
604
return
Stylus
.StylusSystemGestureEvent;
605
if (routedEvent ==
Stylus
.PreviewStylusButtonDownEvent)
606
return
Stylus
.StylusButtonDownEvent;
607
if (routedEvent ==
Stylus
.PreviewStylusButtonUpEvent)
608
return
Stylus
.StylusButtonUpEvent;
620
previewEvent =
Stylus
.PreviewStylusDownEvent;
625
previewEvent =
Stylus
.PreviewStylusUpEvent;
630
previewEvent =
Stylus
.PreviewStylusMoveEvent;
635
previewEvent =
Stylus
.PreviewStylusInAirMoveEvent;
640
previewEvent =
Stylus
.PreviewStylusInRangeEvent;
645
previewEvent =
Stylus
.PreviewStylusOutOfRangeEvent;
650
previewEvent =
Stylus
.PreviewStylusSystemGestureEvent;
System\Windows\Input\Stylus\Common\Tablet.cs (1)
22
StylusDevice stylus =
Stylus
.CurrentStylusDevice;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (18)
810
Stylus
.Capture(null);
971
(routedEvent ==
Stylus
.StylusMoveEvent ||
972
routedEvent ==
Stylus
.StylusDownEvent ||
973
routedEvent ==
Stylus
.StylusUpEvent));
993
if (routedEvent !=
Stylus
.PreviewStylusSystemGestureEvent)
995
if (routedEvent ==
Stylus
.PreviewStylusDownEvent)
1035
if (eventMain ==
Stylus
.StylusDownEvent ||
1036
eventMain ==
Stylus
.PreviewStylusDownEvent)
1041
else if (eventMain ==
Stylus
.StylusButtonDownEvent ||
1042
eventMain ==
Stylus
.StylusButtonUpEvent)
1047
else if (eventMain !=
Stylus
.StylusSystemGestureEvent)
1074
stylusEventArgs.RoutedEvent ==
Stylus
.PreviewStylusUpEvent &&
1105
if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusUpEvent &&
1128
if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusMoveEvent)
1132
else if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusDownEvent)
1136
else if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusUpEvent)
1265
if (args.StagingItem.Input.RoutedEvent ==
Stylus
.PreviewStylusDownEvent)
1302
else if (args.StagingItem.Input.RoutedEvent ==
Stylus
.PreviewStylusSystemGestureEvent)
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1051
RoutedEvent =
Stylus
.LostStylusCaptureEvent,
1060
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)
1056
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.PreviewStylusDownEvent)
1259
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusOutOfRangeEvent)
1323
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusMoveEvent)
1335
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusSystemGestureEvent)
1357
if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusOutOfRangeEvent)
1379
if (routedEvent !=
Stylus
.PreviewStylusSystemGestureEvent)
1381
if (routedEvent ==
Stylus
.PreviewStylusDownEvent)
1419
if (eventMain ==
Stylus
.StylusDownEvent ||
1420
eventMain ==
Stylus
.PreviewStylusDownEvent)
1425
else if (eventMain ==
Stylus
.StylusButtonDownEvent ||
1426
eventMain ==
Stylus
.StylusButtonUpEvent)
1431
else if (eventMain !=
Stylus
.StylusSystemGestureEvent)
1457
if (stylusEventArgs?.RoutedEvent ==
Stylus
.PreviewStylusUpEvent &&
1485
if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusUpEvent &&
1499
else if (e.StagingItem.Input.RoutedEvent ==
Stylus
.StylusSystemGestureEvent)
1529
(routedEvent ==
Stylus
.StylusMoveEvent ||
1530
routedEvent ==
Stylus
.StylusDownEvent ||
1531
routedEvent ==
Stylus
.StylusUpEvent));
1547
if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusMoveEvent)
1551
else if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusDownEvent)
1555
else if (stylusEventArgs.RoutedEvent ==
Stylus
.StylusUpEvent)
1597
storedStagingItems[stagingItemCount - 1].Input.RoutedEvent ==
Stylus
.StylusMoveEvent)
2463
Stylus
.Capture(null);
2887
if (routedEvent != null && (routedEvent ==
Stylus
.StylusDownEvent
2888
|| routedEvent ==
Stylus
.StylusUpEvent
2889
|| routedEvent ==
Stylus
.StylusMoveEvent
2890
|| routedEvent ==
Stylus
.StylusInAirMoveEvent))
2920
args.RoutedEvent =
Stylus
.PreviewStylusButtonDownEvent;
2924
args.RoutedEvent =
Stylus
.PreviewStylusButtonUpEvent;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (7)
629
RoutedEvent =
Stylus
.LostStylusCaptureEvent,
638
RoutedEvent =
Stylus
.GotStylusCaptureEvent,
1740
if (stylusEvent ==
Stylus
.StylusSystemGestureEvent)
1779
else if (stylusEvent ==
Stylus
.StylusInAirMoveEvent)
1783
else if (stylusEvent ==
Stylus
.StylusDownEvent)
1794
else if (stylusEvent ==
Stylus
.StylusMoveEvent)
1801
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)
41
RoutedEvent = oldValue ?
Stylus
.StylusLeaveEvent :
Stylus
.StylusEnterEvent
System\Windows\UIElement.cs (5)
2516
return (
Stylus
.DirectlyOver == this);
2532
return
Stylus
.Capture(this);
2540
Stylus
.Capture(null);
4346
if (IsDefaultValue(this,
Stylus
.IsFlicksEnabledProperty))
4348
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;
958
_inkCanvas.AddHandler(
Stylus
.StylusMoveEvent, new StylusEventHandler(OnInkCanvasDeviceMove<StylusEventArgs>));
1011
_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)
85
EventManager.RegisterClassHandler(owner,
Stylus
.PreviewStylusDownEvent, new StylusDownEventHandler(_OnPreviewDeviceDown<StylusDownEventArgs>));
System\Windows\FrameworkContentElement.cs (4)
82
Stylus
.IsPressAndHoldEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
83
Stylus
.IsFlicksEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
84
Stylus
.IsTapFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
85
Stylus
.IsTouchFeedbackEnabledProperty.AddOwner(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
System\Windows\FrameworkElement.cs (4)
2377
Stylus
.IsPressAndHoldEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
2378
Stylus
.IsFlicksEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
2379
Stylus
.IsTapFeedbackEnabledProperty.AddOwner(_typeofThis, new FrameworkPropertyMetadata(BooleanBoxes.TrueBox, FrameworkPropertyMetadataOptions.Inherits));
2380
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)
10743
typeof(System.Windows.Input.
Stylus
),
System\Windows\Markup\KnownTypes.cs (1)
6169
case KnownElements.Stylus: t = typeof(System.Windows.Input.
Stylus
); break;
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\KeyTipService.cs (1)
694
routedEvent ==
Stylus
.PreviewStylusDownEvent)