22 references to As
PresentationCore (22)
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (5)
173PointerStylusDevice stylusDevice = rawStylusInputReport.StylusDevice.As<PointerStylusDevice>(); 358PointerStylusDevice stylusDevice = report.StylusDevice.As<PointerStylusDevice>(); 1269PointerStylusDevice stylusDevice = stylusDownEventArgs.StylusDevice.As<PointerStylusDevice>(); 1306PointerStylusDevice stylusDevice = stylusGestureEventArgs.StylusDevice.As<PointerStylusDevice>(); 1324PointerStylusDevice stylusDevice = rawStylusInputReport.StylusDevice.As<PointerStylusDevice>();
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (5)
141PointerStylusDevice stylusDevice = inputReport.StylusDevice.As<PointerStylusDevice>(); 283transformTabletToView.Children.Add(rawStylusInputReport.StylusDevice.As<PointerStylusDevice>().GetTabletToElementTransform(null)); // this gives matrix in measured units (not device) 292PointerStylusDevice stylusDevice = rawStylusInputReport.StylusDevice.As<PointerStylusDevice>(); 350rawStylusInputReport.StylusDevice.As<PointerStylusDevice>().UpdateEventStylusPoints(rawStylusInputReport, true); 435PointerStylusDevice stylusDevice = inputReport.StylusDevice.As<PointerStylusDevice>();
System\Windows\Input\Stylus\Wisp\PenContexts.cs (2)
411WispStylusDevice stylusDevice = inputReport.StylusDevice.As<WispStylusDevice>(); 469WispStylusDevice 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>(); 1376if (routedEvent != null && report.StylusDevice != null && !report.StylusDevice.As<WispStylusDevice>().IgnoreStroke) 1732WispStylusDevice stylusDevice = stylusArgs.StylusDevice.As<WispStylusDevice>(); 2495WispStylusDevice stylusDevice = rawStylusInputReport.StylusDevice.As<WispStylusDevice>(); 2688WispStylusDevice stylusDevice = rawStylusInputReport.StylusDevice.As<WispStylusDevice>(); 2764rawStylusInputReport.StylusDevice.As<WispStylusDevice>().UpdateEventStylusPoints(rawStylusInputReport, true); 3055return stylusDevice?.As<WispStylusDevice>(); 3065return stylusDevice?.As<WispStylusDevice>();