22 references to As
PresentationCore (22)
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (5)
190PointerStylusDevice stylusDevice = rawStylusInputReport.StylusDevice.As<PointerStylusDevice>(); 373PointerStylusDevice stylusDevice = report.StylusDevice.As<PointerStylusDevice>(); 1284PointerStylusDevice stylusDevice = stylusDownEventArgs.StylusDevice.As<PointerStylusDevice>(); 1321PointerStylusDevice stylusDevice = stylusGestureEventArgs.StylusDevice.As<PointerStylusDevice>(); 1339PointerStylusDevice stylusDevice = rawStylusInputReport.StylusDevice.As<PointerStylusDevice>();
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (5)
153PointerStylusDevice stylusDevice = inputReport.StylusDevice.As<PointerStylusDevice>(); 295transformTabletToView.Children.Add(rawStylusInputReport.StylusDevice.As<PointerStylusDevice>().GetTabletToElementTransform(null)); // this gives matrix in measured units (not device) 304PointerStylusDevice stylusDevice = rawStylusInputReport.StylusDevice.As<PointerStylusDevice>(); 362rawStylusInputReport.StylusDevice.As<PointerStylusDevice>().UpdateEventStylusPoints(rawStylusInputReport, true); 447PointerStylusDevice stylusDevice = inputReport.StylusDevice.As<PointerStylusDevice>();
System\Windows\Input\Stylus\Wisp\PenContexts.cs (2)
433WispStylusDevice stylusDevice = inputReport.StylusDevice.As<WispStylusDevice>(); 491WispStylusDevice stylusDevice = inputReport.StylusDevice.As<WispStylusDevice>();
System\Windows\Input\Stylus\Wisp\WispLogic.cs (10)
888WispStylusDevice stylusDevice = stylusInputReport?.StylusDevice?.As<WispStylusDevice>(); // RTI sets this if it finds StylusDevice based on Id. 994WispStylusDevice stylusDevice = rawStylusInputReport.StylusDevice?.As<WispStylusDevice>(); 1183WispStylusDevice stylusDevice = report.StylusDevice.As<WispStylusDevice>(); 1374if (routedEvent != null && report.StylusDevice != null && !report.StylusDevice.As<WispStylusDevice>().IgnoreStroke) 1730WispStylusDevice stylusDevice = stylusArgs.StylusDevice.As<WispStylusDevice>(); 2491WispStylusDevice stylusDevice = rawStylusInputReport.StylusDevice.As<WispStylusDevice>(); 2682WispStylusDevice stylusDevice = rawStylusInputReport.StylusDevice.As<WispStylusDevice>(); 2758rawStylusInputReport.StylusDevice.As<WispStylusDevice>().UpdateEventStylusPoints(rawStylusInputReport, true); 3041return stylusDevice?.As<WispStylusDevice>(); 3051return stylusDevice?.As<WispStylusDevice>();