16 references to As
PresentationCore (16)
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
234PenContext newContext = _stylusLogic.TabletDevices[(int)index].As<WispTabletDevice>().CreateContext(_inputSource.Value.CriticalHandle, this);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (9)
298var tablet = report.StylusDevice.TabletDevice.As<WispTabletDevice>(); 329tabletDevice = rawStylusInputReport?.StylusDevice?.TabletDevice?.As<WispTabletDevice>(); 942WispTabletDevice tabletDevice = stylusDevice.TabletDevice?.As<WispTabletDevice>(); 1067WispTabletDevice tabletDevice = stylusDevice.TabletDevice.As<WispTabletDevice>(); 1359WispTabletDevice tabletDevice = stylusArgs?.StylusDeviceImpl?.TabletDevice.As<WispTabletDevice>(); 2616tablet.As<WispTabletDevice>().InvalidateSizeDeltas(); // Will be recalc'd on next stylus down. 3477penThread = tabletDeviceCollection[0].As<WispTabletDevice>().PenThread; 3567tablet.As<WispTabletDevice>()?.UpdateScreenMeasurements(); 3585return matrix * tabletDevice.As<TabletDeviceBase>().TabletToScreen;
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (6)
266PenThread penThread = _tablets.Length > 0 ? _tablets[0].As<WispTabletDevice>().PenThread : 414PenThread penThread = _tablets.Length > 0 ? _tablets[0].As<WispTabletDevice>().PenThread : 566WispTabletDevice removeTablet = _tablets[index].As<WispTabletDevice>(); 598WispTabletDevice tablet = _tablets[iTablet].As<WispTabletDevice>(); 671ctxs[i++] = tablet.As<WispTabletDevice>().CreateContext(hwnd, contexts); 681ctxs[i++] = tablet.As<WispTabletDevice>().CreateContext(hwnd, contexts);