17 references to As
PresentationCore (17)
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (7)
225
var stylusDevice = (input.Device as StylusDevice)?.StylusDeviceImpl?.
As
<PointerStylusDevice>();
231
&& !(CurrentStylusDevice?.
As
<PointerStylusDevice>()?.TouchDevice?.PromotingToOther ?? false)
232
&& (CurrentStylusDevice?.
As
<PointerStylusDevice>()?.TouchDevice?.PromotingToManipulation ?? false))
1090
stylusEventArgs.StylusDeviceImpl.
As
<PointerStylusDevice>().TouchDevice.IsActive)
1092
stylusEventArgs.StylusDeviceImpl.
As
<PointerStylusDevice>().TouchDevice.OnDeactivate();
1109
PointerStylusDevice stylusDevice = stylusEventArgs.StylusDeviceImpl.
As
<PointerStylusDevice>();
1141
PointerStylusDevice stylusDevice = stylusEventArgs.StylusDeviceImpl.
As
<PointerStylusDevice>();
System\Windows\Input\Stylus\Wisp\WispLogic.cs (10)
1060
WispStylusDevice stylusDevice = stylusDownEventArgs.StylusDeviceImpl.
As
<WispStylusDevice>();
1274
WispStylusDevice stylusDevice = eventArgsOutOfRange.StylusDeviceImpl.
As
<WispStylusDevice>();
1324
WispStylusDevice stylusDevice = stylusMove.StylusDeviceImpl.
As
<WispStylusDevice>();
1456
stylusEventArgs.StylusDeviceImpl.
As
<WispStylusDevice>().TouchDevice.IsActive)
1458
stylusEventArgs.StylusDeviceImpl.
As
<WispStylusDevice>().TouchDevice.OnDeactivate();
1471
WispStylusDevice stylusDevice = stylusEventArgs.StylusDeviceImpl.
As
<WispStylusDevice>();
1526
return (IsTouchStylusDevice(stylusEventArgs.StylusDeviceImpl.
As
<WispStylusDevice>()) &&
1542
WispStylusDevice stylusDevice = stylusEventArgs.StylusDeviceImpl.
As
<WispStylusDevice>();
1658
if (!ShouldPromoteToMouse(touchDevice.StylusDevice.
As
<WispStylusDevice>()))
1689
touchDevice.StylusDevice.
As
<WispStylusDevice>().PlayBackCachedDownInputReport(inputReportArgs.Report.Timestamp);